07.01.2011, 04:42
Do it like this:
Make an global bool (example: new bool:PlayerIsInArea[MAX_PLAYERS] = false;)
Then, with "AreaCheck", it'll check if the player is in the area. If the player is in the area, AND the 'PlayerIsInArea[playerid]' is false, send the player an message and set it to true. If he's in the area, and the bool is true, he won't send the message.
And as last: if the player is not in the area, and the bool is true, send an message that he left and set the bool back to false
Make an global bool (example: new bool:PlayerIsInArea[MAX_PLAYERS] = false;)
Then, with "AreaCheck", it'll check if the player is in the area. If the player is in the area, AND the 'PlayerIsInArea[playerid]' is false, send the player an message and set it to true. If he's in the area, and the bool is true, he won't send the message.
And as last: if the player is not in the area, and the bool is true, send an message that he left and set the bool back to false

