OnPlayerDeath
#2

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
   if(GetPlayerTeam(playerid) == TEAM_HUMAN) {
      SendClientMessageToAll(0xFF0000, "A Human died!");
      SetPlayerTeam(playerid, TEAM_ZOMBIE);
   }
   if(GetPlayerTeam(playerid) == TEAM_ZOMBIE) {
      SendClientMessageToAll(0xFF0000, "A Zombie died!");
      // Restart ?
   }
   return 1;
}
Reply


Messages In This Thread
OnPlayerDeath - by matdav - 06.07.2010, 21:07
Re: OnPlayerDeath - by CAR - 06.07.2010, 21:09
Re: OnPlayerDeath - by matdav - 06.07.2010, 21:50
Re: OnPlayerDeath - by FreshKilla - 06.07.2010, 23:36
Re: OnPlayerDeath - by matdav - 07.07.2010, 00:06
Re: OnPlayerDeath - by Gamer_Z - 07.07.2010, 06:56

Forum Jump:


Users browsing this thread: 1 Guest(s)