i don't get it...
use the IsPlayerInRangeOfPoint function in the command:
pawn Код:
if(!strcmp(cmdtext, "/local", true) || !strcmp(cmdtext, "/l", true)) { if(!IsPlayerInRangeOfPoint(playerid, 40, x, y, z))return SendClientMessage(playerid, 0xFFFFFFAA, "You are not close enough."); //rest of the command return1; }