28.01.2016, 06:46
Stop spam,
try this
try this
PHP код:
public areagatecheck()
{
foreach(new i: Player)
{
if(IsPlayerInRangeOfPoint(i, 15, 134.7061, 1941.5814, 21.6600))
{
if(gTeam[i] == TEAM_Internationalforces)
{
MoveObject(areagate1, 121.6021, 1941.5845, 21.6600, 5);
}
}
else MoveObject(areagate1, 134.7061, 1941.5814, 21.6600, 5);
if(IsPlayerInRangeOfPoint(i, 15, 286.0547, 1819.8330, 19.9611))
{
if(gTeam[i] == TEAM_Internationalforces)
{
MoveObject(areagate2, 286.0697, 1833.7720, 19.9611, 5);
}
}
else MoveObject(areagate2, 286.05475, 1819.83301, 19.96110, 5);
// return; Removes the iteration.
}
}
}