02.08.2013, 17:40
When I do /siren it shows a siren and when someone else does it takes my siren off it wont allow 2 sirens on the server
Код HTML:
new myobject[MAX_PLAYERS]; CMD:siren(playerid, params[]) { if(!IsValidObject(myobject[playerid])) { if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 560 || GetVehicleModel(GetPlayerVehicleID(playerid)) == 415 || GetVehicleModel(GetPlayerVehicleID(playerid)) == 541) { myobject[playerid] = CreateObject(18646,0,0,-1000,0,0,0,100); AttachObjectToVehicle(myobject[playerid], GetPlayerVehicleID(playerid), 0.449999,0.000000,0.599999,0.000000,0.000000,0.000000); } } else { DestroyObject(myobject[playerid]); } return 1; }