24.07.2015, 08:59
PHP код:
for(new i; i < MAX_GATES; i++){
if(!IsPlayerInRangeOfPoint(playerid,15.0,gInfo[i][Pos][0],gInfo[i][Pos][1],gInfo[i][Pos][2]))continue;
if(!gInfo[i][Open]){
//gate open function
gInfo[i][Open]=1;
}else{
//gate close function
gInfo[i][Open]=0;
}
break;
}