View Single Post
DJPlaya
Senior Member
Join Date: Nov 2014
Location: Germany
Old 01-04-2016 , 22:09   Re: Vip Information Menu [TF2]
Reply With Quote #24

Quote:
Originally Posted by Snowie View Post
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 View Post
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 View Post
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
Attached Files
File Type: sp Get Plugin or Get Source (helpmenu.sp - 626 views - 9.8 KB)
__________________
My biggest Projects: Kigen AC Redux, Forlix Floodcheck Redux

Last edited by DJPlaya; 01-13-2016 at 18:33.
DJPlaya is offline
Send a message via Skype™ to DJPlaya