Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stock adminOnly(playerid, admin) {
- SCMEx(playerid, COLOR_GREY, "You are not allowed to use this command. [A:%d]", admin);
- return 1;
- }
- YCMD:ah(playerid, params[], help)
- {
- if(PlayerInfo[playerid][pAdmin] < 1) return AdminOnly(playerid, 1);
- if(PlayerInfo[playerid][pAdmin] == 1) ShowPlayerDialog(playerid, DIALOG_ACOMMANDS, DIALOG_STYLE_LIST, "{FFFF00}Admin Commands:", "Admin Level 1", "Select", "Exit");
- else if(PlayerInfo[playerid][pAdmin] == 2) ShowPlayerDialog(playerid, DIALOG_ACOMMANDS, DIALOG_STYLE_LIST, "{FFFF00}Admin Commands:", "Admin Level 1\nAdmin Level 2", "Select", "Exit");
- else if(PlayerInfo[playerid][pAdmin] == 3) ShowPlayerDialog(playerid, DIALOG_ACOMMANDS, DIALOG_STYLE_LIST, "{FFFF00}Admin Commands:", "Admin Level 1\nAdmin Level 2\nAdmin Level 3", "Select", "Exit");
- else if(PlayerInfo[playerid][pAdmin] == 4) ShowPlayerDialog(playerid, DIALOG_ACOMMANDS, DIALOG_STYLE_LIST, "{FFFF00}Admin Commands:", "Admin Level 1\nAdmin Level 2\nAdmin Level 3\nAdmin Level 4", "Select", "Exit");
- else if(PlayerInfo[playerid][pAdmin] == 5) ShowPlayerDialog(playerid, DIALOG_ACOMMANDS, DIALOG_STYLE_LIST, "{FFFF00}Admin Commands:", "Admin Level 1\nAdmin Level 2\nAdmin Level 3\nAdmin Level 4\nAdmin Level 5", "Select", "Exit");
- else if(PlayerInfo[playerid][pAdmin] == 6) ShowPlayerDialog(playerid, DIALOG_ACOMMANDS, DIALOG_STYLE_LIST, "{FFFF00}Admin Commands:", "Admin Level 1\nAdmin Level 2\nAdmin Level 3\nAdmin Level 4\nAdmin Level 5\nAdmin Level 6", "Select", "Exit");
- return 1;
- }
- Eroare : C:\Users\Daniel\Desktop\SA-MP RPG Server\gamemodes\RPG.pwn(4967) : error 017: undefined symbol "AdminOnly"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement