SA-MP Forums Archive
Vehicle accident check - 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: Vehicle accident check (/showthread.php?tid=499540)



Vehicle accident check - Macronix - 08.03.2014

Hey guys, I have a question:
Is there a way to script a vehicle accident caused by two players? If yes, how can it be scripted?

Greetz,
Macronix


Re: Vehicle accident check - lHesoyaml - 08.03.2014

Between vehicles do not know I have an idea.
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
new vehicleid;

vehicleid = GetPlayerVehicleID(playerid);
 if (vehicleid != 0)
 {
SendClientMessage(playerid,0xFFFF00,"You died inside the vehicle.");
return 0;
}



AW: Vehicle accident check - Macronix - 08.03.2014

Thanks, but I need it between two cars with two drivers