09.05.2015, 18:59
uh , well I'm using the good ol' sirens added in 0.3.7 and im having a weird problem (which isnt linked to the new sirens).
When I try to destroy the object, it doesn't do it.
When I try to destroy the object, it doesn't do it.
pawn Код:
public OnVehicleSirenStateChange(playerid, vehicleid, newstate)
{
Siren[vehicleid] = CreateObject(19620, 0, 0, 0, 0, 0, 0, 0);
if(newstate == 1 && !IsACarWithSirenObject(vehicleid))
{
AttachObjectToVehicle(Siren[vehicleid], vehicleid, 0.000000, -0.549499, 0.884999, 0.000000, 0.000000, 0.000000);
}
if(newstate == 0 && !IsACarWithSirenObject(vehicleid))
{
DestroyObject(Siren[vehicleid]);
}
}