how to do this help :)
#10

Quote:
Originally Posted by jameskmonger
Посмотреть сообщение
try this:
pawn Код:
public isPlayerInArmyZone()
{
    new Float:X, Float:Y, Float:Z; //We use this to store player position
    for(new i=0; i < MAX_PLAYERS; i++) //This line defines a name for all player, the name is "i"
    {
        if(gTeam[i] != TEAM_ARMY)
        {
            GetPlayerPos(i, X, Y, Z);
            if (X <= -914 && X >= 2570 && Y <= 1106 && Y >= 2730)
            {
                SetPlayerHealth(i,0);
                                SendClientMessage(i,0xFF0000AA,"Your are not allowed to be in this area");
            }
           
        }
    }
    return 1;
}
You see the change above in the script

Edit: did you forward the public ?
Reply


Messages In This Thread
how to do this help :) - by [MKD]Max - 02.07.2011, 20:24
Re: how to do this help :) - by Sascha - 02.07.2011, 20:27
Re: how to do this help :) - by jameskmonger - 02.07.2011, 20:28
Re: how to do this help :) - by [MKD]Max - 02.07.2011, 20:31
Re: how to do this help :) - by jameskmonger - 02.07.2011, 20:32
Re: how to do this help :) - by [MKD]Max - 02.07.2011, 20:43
Re: how to do this help :) - by jameskmonger - 02.07.2011, 20:47
Re: how to do this help :) - by [MKD]Max - 02.07.2011, 20:54
Re: how to do this help :) - by jameskmonger - 02.07.2011, 20:57
AW: Re: how to do this help :) - by xerox8521 - 02.07.2011, 21:26

Forum Jump:


Users browsing this thread: 8 Guest(s)