30.06.2013, 11:14
Do you mean you can do the command only in the pickup? If so use,
https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint
A small example
https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint
Код:
CMD:pickuphere(playerid, params[]) { if(IsPlayerInRangeOfPoint(playerid, 2, 1794.5530,-1899.8702,13.4000)) // Pickup coordinates here { //The command } else { SendClientMessage(playerid, COLOR, "You are not in the pickup"); } return true; }