help plz
#1

how to detect the car kill ?? plz i need it
Reply
#2

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"
        }
    }
}
Reply
#3

thx very much
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)