Quote:
Originally Posted by Snowie
I really need help with figuring out how to remove the Map Rotation
|
>
https://forums.alliedmods.net/showpo...&postcount=140
Quote:
Originally Posted by Snowie
How to add Owner groups to the list so it displays owners instead of Admins in the view admins online list.
|
To teach a bit of coding, look at this part:
Code:
if (IsClientConnected(i) && IsClientInGame(i) && !IsFakeClient(i) && (GetUserFlagBits(i) & ADMFLAG_GENERIC) == ADMFLAG_GENERIC) {
GetClientName(i, aname, sizeof(aname));
AddMenuItem(adminMenu, aname, aname, ITEMDRAW_DISABLED);
Read
here, now you should understand that we should change this↑ to this↓
Code:
if (IsClientConnected(i) && IsClientInGame(i) && !IsFakeClient(i) && (GetUserFlagBits(i)) == ADMFLAG_ROOT){
GetClientName(i, aname, sizeof(aname));
AddMenuItem(adminMenu, aname, aname, ITEMDRAW_DISABLED);
We changed "ADMFLAG_GENERIC" to "ADMFLAG_ROOT" so only the owners(or at least with high acces level) will get listed, also we remove an useless part of the code.
Quote:
Originally Posted by Snowie
The sm_browse feature didn't work for me when I used it through the original help plugin either, so I have no idea how this would be fixed. I'm sorry. I need to learn proper code to help fully.
|
The original author used this plugin as you can also see in the example config, install this and sm_browse will work (also there is no command register in the base code)
https://forums.alliedmods.net/showthread.php?p=512035
https://dubbeh.net/sourcemod-plugins/radio/
My version:
Vars:
Code:
sm_helpmenu_welcome - show welcome message?
sm_helpmenu_admins - show online root admin?
sm_helpmenu_rotation - show map rotation?
Commands (i added some more so the players will allways find the menu):
Code:
sm_helpmenu
sm_helpcommands
sm_helpcomands
sm_helpcomand
sm_commands
sm_comands
sm_cmds
sm_cmd