26.01.2016, 18:26
what is this code problem?this works only for id 1 and upper.
Код:
public areagatecheck()
{
foreach(Player, i){
if(i < 101){
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;}}}


