[ASK]SetPlayerHealth and undefinedsymbol not working
#5

.... sry use this:
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;
}
..... This forum requires that you wait 240 seconds between posts
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)