if(!strcmp("/enter",cmdtext)){ if(IsPlayerInRangeOfPoint(playerid, 7.0, X,Y,Z))//checking that if the player is in range { SetPlayerPos(playerid,X,Y,Z);//setting player's pos.. } return 1;}