23.02.2013, 20:29
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
new playerState = GetPlayerState(killerid); // Get the killer's state
if (playerState == PLAYER_STATE_PASSENGER ) // If the killer was in a vehicle,alright. What about and there were no drivers in it?
{
// do the stuff.
}
return 1;
}
So simply it will check if there is no players in the car of the killerid (a driver) if there is a driver it won't do anything.