18.03.2012, 09:25
So I was recently coding a VIP locker, and found out I could use the command anywhere in the interior, not near the point I specified, this is the code.
There are no errors, either.
pawn Code:
CMD:locker(playerid, params[]) {
if (!IsPlayerInRangeOfPoint(playerid, 3, 770.6819,-77.5974,1000.6563) && GetPlayerInterior(playerid) == 7)
ShowPlayerDialog(playerid,100,DIALOG_STYLE_LIST,"Locker Room.","Health Kit\t(Free)\nArmour\t(5)\nColt.45\t(4)\nDesertEagle\t(6)","Purchase","Exit");
return 1;
}