19.11.2010, 13:41
The code works fine but seems to bug after you do it once works fine the 1st time but the 2nd it dont work and sometimes it just dont work at all can someone look at it and try see problem plz :S
Thanks in advanced
pawn Код:
public OnGameModeInit()
{
SetTimer("Check", 500, true);
return 1;
}
forward Check(playerid);
public Check(playerid)
{
for(new i=0;i<MAX_PLAYERS;i++)
{
if(IsPlayerInRangeOfPoint(i, 2,2305.9927,-16.2388,26.7496))
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 2271.6396,2289.1282,10.8203);
}
}
return 1;
}