04.01.2016, 18:14
Would this work?
Код:
public OnVehicleSirenStateChange(playerid, vehicleid, newstate) { new siren = GetVehicleParamsSirenState(vehicleid); if(PLAYER_STATE_DRIVER && ServerVehicle[vehicleid][Type] == VEHICLE_TYPE_GLOBAL) { if(siren == 1) { siren = 0; return 1; } else { siren = 1; return 1; } } return 1; }