if(IsPlayerInRangeOfPoint(playerid, 5.0, 283.91, -1146.53, 80.91)) //here 5.0 is the range of the point in which he can use the cmd{ // do this this and this}