Quote:
Originally Posted by Luis-
You'd also need to make use of this function.
pawn Код:
OnVehicleSirenStateChange(playerid, vehicleid, newstate)
Also, here, a little fix.
pawn Код:
CMD:togglesiren(playerid, params[]) { new siren = GetVehicleParamsSirenState(vehicleid); if(IsACop(playerid) || IsAHitman(playerid) || IsAGovernment(playerid)) { if(siren == 1) { siren = 0 SendClientMessageEx(playerid, COLOR_WHITE, "Siren disabled."); return 1; } else { siren = 1 SendClientMessageEx(playerid, COLOR_WHITE, "Siren enabled."); return 1; } SendClientMessage(playerid, COLOR_GRAD2, "This vehicle does not support mounted sirens."); } return 1; }
|
I don't know how to script, do you have team viewer or something you can use to help me?