somehow to hide the chat when a group admin User enters the server?
Universal Hide admin connections
Discussion in 'Plugin Requests' started by caiio.cos, Jan 5, 2016.
-
Wulf Community Admin
What are you using that announces it?
-
I do not use anything,is the game do this announce that players connect and disconnect, would like to remove this ad when someone from the group admin login.
Sorry my english -
Wulf Community Admin
-
Unfortunately I do not understand programming. If it is not uncomfortable could move this topic to area requests?
[DOUBLEPOST=1452024733,1452017446][/DOUBLEPOST] -
It's really simple really.
Code:object OnConnectionNotice(string name) { if (GetSession(name).IsAdmin) return false; else return true; }
-
-
I can provide full plugin code for you. Do you want it to filter the Disconnected message as well?
-
-
Here's the code for the connection notice though
Moderator edit: Please use the Plugins page for plugin submissions.Last edited by a moderator: Jan 20, 2016 -
It works, thank you!
[DOUBLEPOST=1452096267,1452049117][/DOUBLEPOST]Last edited by a moderator: Jan 20, 2016 -
Here you go. Replace all of the code with this.
Moderator edit: Please use the Plugins page for plugin submissions.Last edited by a moderator: Jan 20, 2016 -
not work,
I suffered death by falling and was seen by all.
[DOUBLEPOST=1452129829][/DOUBLEPOST][Oxide] 11:17 PM [Error] Falide to call hook 'OnDeathNotice' on plugin 'Confilter v1.0.1' <NullReferenceException: Object reference not set to an instance of an onbject> -
I updated the code above. Try that mate
-
shows the same error
-
Are you using another script like Custom Death Message?
-
Do not use any script that changes the death messages.
[DOUBLEPOST=1452133704][/DOUBLEPOST] -
Just tested and it works fine.
-
I tested again here and unfortunately nothing. They do not receive the message when logging, but when I suffer falling damage (and die so) they see. Does for falling damage is a different hook?
-
Moderator edit: Please use the Plugins page for plugin submissions.
Last edited by a moderator: Jan 20, 2016