2 warnings
#2

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
  if(killerid == INVALID_PLAYER_ID)
  {
    SendDeathMessage(INVALID_PLAYER_ID,playerid,reason);
  }
  else
  {
    SendDeathMessage(killerid,playerid,reason);
  }
  if(PlayerDied[playerid] == true)
  {
    PlayerDied[playerid] = false;
    if(KillerID[playerid] != INVALID_PLAYER_ID)
    TogglePlayerSpectating(playerid,1);
    PlayerSpectatePlayer(playerid,killerid);
    SetTimerEx("spawn",10000,1, "i", playerid);
  }
  else
  {
    TogglePlayerSpectating(playerid, 0);
  }
  return 1;
}
Indent
Reply


Messages In This Thread
2 warnings - by [HKS]dlegend - 26.09.2009, 01:28
Re: 2 warnings - by [HiC]TheKiller - 26.09.2009, 03:03
Re: 2 warnings - by [HKS]dlegend - 26.09.2009, 03:16
Re: 2 warnings - by Peter_Corneile - 26.09.2009, 06:03
Re: 2 warnings - by [HKS]dlegend - 26.09.2009, 11:26
Re: 2 warnings - by [HiC]TheKiller - 26.09.2009, 11:33
Re: 2 warnings - by [HKS]dlegend - 26.09.2009, 12:02
Re: 2 warnings - by Peter_Corneile - 26.09.2009, 13:33
Re: 2 warnings - by [HKS]dlegend - 26.09.2009, 14:32
Re: 2 warnings - by Tigerbeast11 - 26.09.2009, 14:37

Forum Jump:


Users browsing this thread: 2 Guest(s)