Vehicle Siren?
#3

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?
Reply


Messages In This Thread
Vehicle Siren? - by cordellpwnz - 11.05.2015, 17:50
Re: Vehicle Siren? - by Luis- - 11.05.2015, 17:53
Re: Vehicle Siren? - by cordellpwnz - 11.05.2015, 17:59
Re: Vehicle Siren? - by MP2 - 11.05.2015, 17:59
Re: Vehicle Siren? - by cordellpwnz - 11.05.2015, 18:06
Re: Vehicle Siren? - by Luis- - 11.05.2015, 18:10
Re: Vehicle Siren? - by MP2 - 11.05.2015, 18:13
Re: Vehicle Siren? - by cordellpwnz - 11.05.2015, 18:29
Re: Vehicle Siren? - by The__ - 11.05.2015, 20:00

Forum Jump:


Users browsing this thread: 2 Guest(s)