05.03.2014, 04:18
Well. You'll need to get the location of the locker, via /save. Once you have the location you need to detect if a player is in range of it.
Here's a very BASIC locker cmd to help you get started.
Here's MTA. http://www.mtasa.com
Here's a very BASIC locker cmd to help you get started.
pawn Код:
CMD:locker(playerid, params[])
{
if(!IsPlayerInRangeOfPoint(playerid, 3.0, X Y Z)) return SendClientMessage(playerid,-1, "Error: You're not near the locker."); //seeing if a player is in range of x, y, z. If not, send the message.
if(PlayerInfo[playerid][pVip] > 1) //Checking to see if their a vip.
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Locker", "Option 1", "Select", "Cancel"); //showing the locker menu.
}
return 1;
}