[HELP] How to make swat trucks give armor
#8

Quote:
Originally Posted by Jonny5
Посмотреть сообщение
heres the update, this is only for drivers,
let me know if you want the same for a passenger.

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER)
    {
        if(GetVehicleModel(vehicleid) == 601)
        SetPlayerArmour(playerid, 100.0);
    }
    return 1;
}
Yes I would love to have it for passengers also.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)