Working car crash system? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Working car crash system? (
/showthread.php?tid=440466)
Working car crash system? -
Guitar - 29.05.2013
how do i create this so if you crash into a wall / tree ect with a vehicle and you dont have a /sb it will go down.
Re: Working car crash system? -
DobbysGamertag - 29.05.2013
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;
}