26.12.2013, 06:15
pawn Код:
forward HG();
public HG()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(IsPlayerInRangeOfPoint(i, 7, Map[ZombieSpawnX], Map[ZombieSpawnY], Map[ZombieSpawnZ]))
{
if(GetPlayerTeam(i) == TEAM_ZOMBIE) return 0;
else
{
new Float:hp[MAX_PLAYERS];
GetPlayerHealth(i,hp);
SetPlayerHealth(i, hp - 10);
GameTextForPlayer(i,"~W~Be careful you are in\n~r~Zombie Spawn Area!! -10hp", 1000, 5);
}
}
}
}
return 1;
}