24.10.2014, 15:58
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/Weapons", cmdtext, true) == 0)
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,COLOR_RED,"Only Admins Can use This Command!");
ShowPlayerDialog(playerid, DIALOG_WEAPONS, DIALOG_STYLE_LIST, "Weapons", "Melee Weapons\nPistols\nSub Machine Guns\nShotguns\nRifles\nAssault Rifles\nThrowables\nHeavy Weaponry", "Select", "Cancel");
return 1;
}
return 0;
}