02.08.2014, 14:44
I was creating admin commands dialog [ DIALOG_STYLE_LIST ], but unfortunetly its give me alot of errors .. i can't make so i request anyone can make /acmds command please ,
Make tht admin commands like :
/acmds --> show them item of DIALOG_STYLE_LIST
1 Item: Moderator [lvl 1]
2 Item: Administrator [lvl 2]
3 Item: Head-Administrator [lvl 3]
4 Item: Server-Owner [lvl 4].
After tht if dialog item 1/2/3/4 response
so Show them commands in DIALOG_STYLE_MSGBOX
i will add commands by myself
and make like : Normal player can't see the commands when they type /acmds so show them msg "you are not authorized to use these cmds"
and lvl 1 can't see lvl 2/3/4 cmds
lvl 2 can't see lvl 3/4 cmds
lvl 3 can't see lvl 4 cmds
EXAMPLE:
See the enum:
please make this small cmd script for me
it will be great
+1 Rep for replying
Make tht admin commands like :
/acmds --> show them item of DIALOG_STYLE_LIST
1 Item: Moderator [lvl 1]
2 Item: Administrator [lvl 2]
3 Item: Head-Administrator [lvl 3]
4 Item: Server-Owner [lvl 4].
After tht if dialog item 1/2/3/4 response
so Show them commands in DIALOG_STYLE_MSGBOX
i will add commands by myself
and make like : Normal player can't see the commands when they type /acmds so show them msg "you are not authorized to use these cmds"
and lvl 1 can't see lvl 2/3/4 cmds
lvl 2 can't see lvl 3/4 cmds
lvl 3 can't see lvl 4 cmds
EXAMPLE:
Код:
if (PlayerInfo[playerid][Admin] < 1/2/3/4) return SendClientMessage( playerid, -1, ""RED"ERROR: "GREY"You are not authorized to use this command!" );
Код:
enum pInfo { Password[129], // RegID, Admin, VIP, AltName[26], RegOn[20], Cash, Score, Spawned, LoginFail, LoggedIn, Goto, isAFK, inDM, inMini, inDMZone, Float:POS_X, Float:POS_Y, Float:POS_Z, Skin, Color, WeaponSet, DisablePMs, Muted, Kills, Deaths, Hours, Minutes, BanExpire, GodEnabled, Helmet, pSpawnVehicle, BanReason[32], BanPerm, BanAdmin[26] }
Код:
new PlayerInfo[MAX_PLAYERS][pInfo];
please make this small cmd script for me
it will be great
+1 Rep for replying
