06.07.2012, 11:00
Hello guys i have a script here and inside i am checking for if a player is in area or not if he is in then send him a message, my problem is the message keeps spamming my screen and crashes the game so how can i make it so when i enter the area the message appears once only once not more here's the code :
pawn Code:
public OnPlayerUpdate(playerid)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(/* My Area Check */)
{
SendClientMessage(playerid, -1, "you are in");
}
}
return 1;
}