Working car crash system?
#2

pawn Код:
new seatbelt[MAX_PLAYERS];
public OnVehicleDamageStatusUpdate(vehicleid, playerid)
{
    if(seatbelt[playerid] == 0)
    {
        SetPlayerHealth(playerid,20);
        SendClientMessage(playerid,-1,"wear a seatbelt!! /belt");
     }
    return 1;
}
CMD:belt(playerid,params[])
{
    if(seatbelt[playerid] == 1)
    {
        seatbelt[playerid] = 0;
        SendClientMessage(playerid,-1,"Seatbelt off");
    }
    else if(seatbelt[playerid] == 0)
    {
        seatbelt[playerid] = 1;
        SendClientMessage(playerid,-1,"Seatbelt on");
    }
    return 1;
}
Reply


Messages In This Thread
Working car crash system? - by Guitar - 29.05.2013, 22:23
Re: Working car crash system? - by DobbysGamertag - 29.05.2013, 23:37

Forum Jump:


Users browsing this thread: 1 Guest(s)