21.05.2011, 02:28
PHP код:
forward ChecarGZ(playerid);
public OnGameModeInit()
{
SetTimer("ChecarGZ",750,true);
return 1;
}
public ChecarGZ(playerid)
{
new Float:Pos[3];
GetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]);
if(Pos[0] >= -2153.541015 && Pos[1] >= 98.249694 && Pos[0] <= -1993.541015 && Pos[1] <= 330.249694)
{
return 1;
}
else if(Pos[0] >= -2245.090820 && Pos[1] >= 545.718322 && Pos[0] <= -2133.090820 && Pos[1] <= 745.718322)
{
return 1;
}
else return 0;
}