13.12.2014, 13:17
Quote:
pawn Код:
|
pawn Код:
CMD:weapons(playerid, params[])
{
if(PInfo[playerid][Army]) {
ShowPlayerDialog(playerid, DIALOG_WEAPONS, DIALOG_STYLE_LIST, "Weapons", "AK47\nM4\nSniper Rifle", "Buy", "Cancel");
}else{
SendClientMessage(playerid, COLOR_RED, "You are not an army officer!");
}
return 1;
}
Returning 0 or not at all in a command will return "Unknown command"