26.12.2013, 06:40
.... sry
use this:
..... This forum requires that you wait 240 seconds between posts


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;
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;
}

