06.09.2010, 13:49
D:
Timer is basically a function called by some time you've set in the SetTimer.
Means,you need to do:
And then:
And the Boolean must be set to true,because you want it to check the area every 7 seconds,repeatedly,no?
EDIT: Until I wrote all this, 3 other posts occurred D:
Timer is basically a function called by some time you've set in the SetTimer.
Means,you need to do:
pawn Код:
SetTimer("warning", 7000, true);
pawn Код:
public warning()
{
for (new i=0; i < MAX_PLAYERS; i++)
if(IsPlayerInArea(i, 210.2018, 1786.715, 432.0814, 2090.34))
{
SendClientMessage(i, COLOR_RED, "You'll get punished, dude :D");
Kick(playerid);
}
else if(!IsPlayerInArea(i, 210.2018, 1786.715, 432.0814, 2090.34))
{
SendClientMessage(i, COLOR_GREEN, "Good Boy :D");
}
}
EDIT: Until I wrote all this, 3 other posts occurred D: