new spawngate;
forward gateupdate();
public OnGameModeInit()
{
SetTimer(\"gateupdate\", 1000, true);
spawngate = CreateDynamicObject(19325,1977.6000000,-2650.7000000,14.2000000,0.0000000,0.0000000,270.0000000);
return 1;
}
public gateupdate()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(IsPlayerInRangeOfPoint(i,2,1977.5977,-2652.0061,13.5469))
{
MoveDynamicObject(spawngate,1977.6000000,-2650.7000000,9.0000000,2);
}
else
{
MoveDynamicObject(spawngate,1977.6000000,-2650.7000000,14.2000000,2);
}
}
}
return 1;
}