help plz - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: help plz (
/showthread.php?tid=159123)
help plz -
iJumbo - 12.07.2010
how to detect the car kill



??

plz i need it
Re: help plz -
FreshKilla - 12.07.2010
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
if(IsPlayerConnected(killerid)) // Checks if your killer is connected.
{
if(GetPlayerState(killerid) == PLAYER_STATE_DRIVER) // Checks if the persons state is in the driver seat.
{
// Code here, btw the Playerid for the person who car killed is "killerid"
}
}
}
Re: help plz -
iJumbo - 12.07.2010
thx very much