24.04.2013, 08:39
Hello, I need help to make a sirens on a different cordinates and a different vehicles.
So question is how I can make cause on sultan and on cheetah will put that siren in good cordinates, because now that siren is in middle on the roof
This is my code (now):
Sry for bad english
So question is how I can make cause on sultan and on cheetah will put that siren in good cordinates, because now that siren is in middle on the roof
This is my code (now):
Код:
CMD:sirena(playerid, params[]) { if(IsPlayerInAnyVehicle(playerid)) if(sirenaU == false) { sirena = CreateObject(18646, 10.0, 10.0, 10.0, 0, 0, 0); AttachObjectToVehicle(sirena, GetPlayerVehicleID(playerid), 0.374999, 0.000000, 0.684999, 0.000000, 0.000000, 0.000000); sirenaU = true; } else { DestroyObject(sirena); sirenaU = false; } return 1; }
Код:
new sirena, bool:sirenaU;