16.01.2011, 23:01
pawn Код:
#include <a_samp>
new Send[MAX_PLAYERS] = 0;
forward Test();
public OnFilterScriptInit()
{
SetTimer("Test", 1000, true);
return 1;
}
public Test()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerInRangeOfPoint(i, 7.0, 2239.7747, 2430.8074, 3.2734))
{
if(Send[i] == 0)
{
SendClientMessage(i,0xFFFFFFFF,"You entered the area!");
Send[i] = 1;
}
}
else
{
Send[i] = 0;
}
}
return 1;
}