09.08.2013, 16:04
try somethig like this
i just try help, sorry if i fail, i'm not a very good scripter
pawn Код:
#define admincmd 123
CMD:admcmds(playerid)
{
new pt[700];
if(PlayerInfo[playerid][AdminLevel] < 1) return SendClientMessage(playerid, 0xFF6262FF, "ERROR: you are not Admin");
if(PlayerInfo[playerid][AdminLevel] == 1)
{
strcat(pt, "/spec /(on/off)duty /reports /mytime /asay /wanteds /jailed /frozen /muted /showguns /morning /miniguns\n", sizeof(pt));
strcat(pt, "/eject /warn /slap /clearchat \n", sizeof(pt));
}
if(PlayerInfo[playerid][AdminLevel] == 2)
{
strcat(pt, "/eject /warn /slap /clearchat \n", sizeof(pt));
}
/*
Another level's
*/
ShowPlayerDialog(playerid, admincmd, DIALOG_STYLE_MSGBOX, "Helper", pt, "Ok", #);
return 1;
}