car kill - setplayerhealth 0
#1

How can i make script, like the player who kills another player with car, plane, gets killed?
Reply
#2

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
  if(reason == 54 && IsPlayerConnected(killerid))
  {
    SetPlayerHealth(killerid, 0.0);
  }
  return 1;
}
Reply
#3

public OnPlayerDeath(playerid, killerid, reason)
{
if(IsPlayerInAnyVehicle(killerid) && IsPlayerConnected(killerid))
{
SetPlayerHealth(killerid, 0.0);
}
return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)