27.05.2012, 19:33
Video
http://www.youtube.com/watch?feature...&v=6MCJ1yjt-IY
Snippet
Add to the top of script
Код:
new SirenObject[MAX_VEHICLES]; new SirenObject1[MAX_VEHICLES]; new SirenObject2[MAX_VEHICLES]; new SirenObject3[MAX_VEHICLES]; new SirenObject4[MAX_VEHICLES];
Turn on the system
Код:
COMMAND:code3pd(playerid, params[]) { if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { new VID = GetPlayerVehicleID(playerid); SirenObject[VID] = CreateObject(18646, 10.0, 10.0, 10.0, 0, 0, 0); SirenObject1[VID] = CreateObject(18646, 10.0, 10.0, 10.0, 0, 0, 0); SirenObject2[VID] = CreateObject(18646, 10.0, 10.0, 10.0, 0, 0, 0); SirenObject3[VID] = CreateObject(18646, 10.0, 10.0, 10.0, 0, 0, 0); SirenObject4[VID] = CreateObject(18646, 10.0, 10.0, 10.0, 0, 0, 0); AttachObjectToVehicle(SirenObject[VID], VID, -0.53, -0.45, 0.79, 0.00, 0.00, 0.00); AttachObjectToVehicle(SirenObject1[VID], VID, 0.46, -0.45, 0.79, 0.00, 0.00, 0.00); AttachObjectToVehicle(SirenObject2[VID], VID, -0.02, 2.18, -0.15, 0.00, 0.00, 0.00); AttachObjectToVehicle(SirenObject3[VID], VID, -0.60, -1.67, 0.39, 0.00, 0.00, 0.00); AttachObjectToVehicle(SirenObject4[VID], VID, 0.50, -1.67, 0.39, 0.00, 0.00, 0.00); return 1; } return 1; }
Код:
COMMAND:code1pd(playerid, params[]) { if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { new VID = GetPlayerVehicleID(playerid); DestroyObject(SirenObject[VID]); DestroyObject(SirenObject1[VID]); DestroyObject(SirenObject2[VID]); DestroyObject(SirenObject3[VID]); DestroyObject(SirenObject4[VID]); return 1; } return 1; }