Guten Abend,
Undzwar mein Problem liegt im Befehl /sirene. Ich kann den Befehl in jedes Fahrzeug ausführen, aber ich weiß nicht warum!
ocmd:sirene(playerid,params[])
{
if(IstSpielerMember(playerid,1))
{
if(GetPlayerVehicleID(playerid) == sultan[0] || sultan[1])
{
Sirene(playerid);
}
if(GetPlayerVehicleID(playerid) == bullet[0] || bullet[1])
{
Sirene1(playerid);
}
}
return 1;
}
stock Sirene(playerid)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(sirene[playerid] == 0)
{
siren[vehicleid] = CreateObject(18646,0.0,0.0,0.0,0.0,0.0,0.0);
AttachObjectToVehicle(siren[vehicleid],vehicleid,0.0,0.100,0.850,0.0,0.1,0.0);
sirene[playerid] = 1;
return 1;
}
else if(sirene[playerid] == 1)
{
DestroyObject(siren[vehicleid]);
sirene[playerid] = 0;
return 1;
}
return 1;
}
sultan[0]=CreateVehicle(560,1578.0684,-1710.7653,5.5389,358.5282,21,1,-1); //
sultan[1]=CreateVehicle(560,1560.0568,-1693.9982,5.5997,227.9516,37,0,-1); //
bullet[0] = CreateVehicle(541,1538.4579,-1643.9453,5.5155,181.8604,0,1,-1); // bullet
bullet[1] = CreateVehicle(541,1534.6125,-1644.1381,5.5154,179.1716,0,1,-1); // bullet2
//edit
Helft mir bitte!
Grüße,
TheBester