14.07.2011, 13:09
Replace the original script for the command menu by:
So, after this, you will need to be RCON login to use the command.
pawn Код:
COMMAND:menu(playerid, params[])
if(IsPlayerConnected(playerid) && IsPlayerAdmin(playerid))
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "What do you want?", "Gun Shop \nVehicles Shop \nTeleport Destinations", "Buy", "Cancel");
return 1;
}
else
{
SendClientMessage(playerid, COLOR_INFO, "You must be RCON login to use this command!");
return 1;
}