Question
#6

I get a spam full of you have enter varios terriotorY**
pawn Code:
forward isPlayerInArea();
public isPlayerInArea()
{
        for(new i=0; i < MAX_PLAYERS; i++) //This line defines a name for all player, the name is "i"
        {
        GetPlayerPos(i,X,Y,Z);
        if(X <= 2725 && X >= -1662 && Y <= 2858 && Y >= -1500)
        {
            SendClientMessage(i,orange,"You have entered Varrios Los Aztecas Territory");
        }
        }
        return 1;
}
OnGameModeInIt
pawn Code:
SetTimer("isPlayerInArea", 1000, 1);
Reply


Messages In This Thread
Question - by Tanush123 - 21.08.2011, 19:54
Re: Question - by Darnell - 21.08.2011, 20:06
Re: Question - by Tanush123 - 21.08.2011, 20:28
Re: Question - by Darnell - 21.08.2011, 20:30
Re: Question - by dowster - 21.08.2011, 21:24
Re: Question - by Tanush123 - 21.08.2011, 22:16
Re: Question - by Improvement™ - 21.08.2011, 22:45
Re: Question - by dowster - 21.08.2011, 23:04
Re: Question - by Tanush123 - 22.08.2011, 05:07
Re: Question - by Improvement™ - 22.08.2011, 09:36

Forum Jump:


Users browsing this thread: 1 Guest(s)