28.02.2012, 11:36
Faced with a problem: in the case below, says Unknown command, if a player is not in this range. How do I fix it?
PHP Code:
CMD:enter(playerid,params[]) {
if(!IsPlayerConnected(playerid)) return true;
for(new i = 0; i != 5; i++) {
if(IsPlayerInRangeOfPoint(playerid,3.0,X[i],Y[i],Z[i])) {
SetPlayerPos(playerid,x,y,z);
return true;
}
}
return true;
}