28.07.2012, 20:58
pawn Код:
#include a_samp // by samp dev team
#include zcmd //use zcmd by zeex
enum pInfo
{
pAdmin //i dont know your variables
}
new PlayerInfo[MAX_PLAYERS][pInfo];
CMD:editorcmd(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 4) //this will allow admin level 4++ to use the commands
{
ShowPlayerDialog(playerid, DIALOG_MAIN_MENU, DIALOG_STYLE_LIST, "WestSide Object Editor", "Create object\nSearch object models\nDelete object\nEdit object\nSave object\nLoad objects", "Select", "Cancel");
}
else
{
SendClientMessage(playerid, -1, "You need to be Admin level 4 to use this Commands!"); //the warning
}
return 1;
}