06.07.2010, 21:09
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;
}