23.04.2013, 18:44
Hello I want to create cause a siren will be added on my HSIU cars like bullet and other... Where is a problem? (I can't see siren now)
This is my Code:
And this is my object (siren) which I add with one filterscript:
This is my Code:
Код:
new sirena, bool:sirenaU; CMD:sirena(playerid, params[]) { if(sirenaU == false) { sirena = CreateObject(18646, 10.0, 10.0, 10.0, 0, 0, 0); AttachObjectToVehicle(Sirena, 541, 0.0, 0.75, 0.275, 0.0, 0.1, 0.0); sirenaU = true; } else { DestroyObject(sirena); sirenaU = false; } return 1; }
Код:
AttachObjectToVehicle(objectid, vehicleid, 0.374999, 0.000000, 0.684999, 0.000000, 0.000000, 0.000000); //Object Model: 18646 |