15.12.2018, 23:26
Код:
if(IsPlayerInRangeOfPoint(playerid, 2.0, -7.5863,-74.3160,3.1172)) return SendClientMessage(playerid,red,"ERROR:You must be near the Chest to use the command");
You should change the code to below, this will send the error message if the player is not in range of the point.
Код:
if(!IsPlayerInRangeOfPoint(playerid, 2.0, -7.5863,-74.3160,3.1172)) return SendClientMessage(playerid,red,"ERROR:You must be near the Chest to use the command");