21.08.2011, 22:16
I get a spam full of you have enter varios terriotorY**
OnGameModeInIt
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;
}
pawn Code:
SetTimer("isPlayerInArea", 1000, 1);

