12.07.2010, 08:01
how to detect the car kill ?? plz i need it
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"
}
}
}