14.07.2011, 14:43
pawn Код:
COMMAND:menu(playerid, params[])
if(playerDB[playerid][admin] || playerDB[playerid][vip]) // If player is admin or VIP.
{
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 administrator or VIP to use this command!");
return 1;
}
pawn Код:
if(!strcmp("/menu", cmdtext, true))
{
if(playerDB[playerid][admin] || playerDB[playerid][vip]) // If player is admin or VIP.
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "What do you want?", "Gun Shop \nVehicles Shop \nTeleport Destinations", "Buy", "Cancel");
}
else
{
SendClientMessage(playerid, COLOR_INFO, "You must be administrator or VIP to use this command!");
}
return 1;
}

