AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [ANY] Groups Online (https://forums.alliedmods.net/showthread.php?t=320463)

Ilusion9 12-23-2019 09:56

[ANY] Groups Online
 
Description: Show online admins and vips by groups. Admins can hide their name from players with lower access (or regular players if the command is public).

Example of output:
- for sm_admins command:
Code:

[SM] Owners: Ilusion, p1mple
[SM] Mods: baitzera
[SM] Helpers: ZyWhO?, ecov1ce

- for sm_vips command:
Code:

[SM] Gold-Vips: Ilusion, Clown9 | auti
[SM] Vips: baitzera

Commands:
Code:

sm_admins [visible|hidden] - Show online admins by groups
sm_vips - Show online vips by groups

GitHub: https://github.com/Ilusion9/groups-online-sm

Sincronic 12-23-2019 13:37

Re: [ANY] Display online admins by groups (or ranks)
 
Can't compile it:

Code:

// D:\Octa\CS gO\sourcemod-1.9.0-git6269-windows\addons\sourcemod\scripting\include\admin.inc(752) : warning 219: local variable "flag" shadows a variable at a preceding level
// D:\Octa\CS gO\sourcemod-1.9.0-git6269-windows\addons\sourcemod\scripting\include\admin.inc(764) : warning 219: local variable "flag" shadows a variable at a preceding level
// displayadmins.sp(13) : error 001: expected token: "{", but found "struct"
// displayadmins.sp(15) : error 001: expected token: "public", but found "char"
// displayadmins.sp(16) : error 001: expected token: "}", but found "int"
// displayadmins.sp(17) : error 054: unmatched closing brace ("}")
// displayadmins.sp(23) : error 017: undefined symbol "GroupInfo"
// displayadmins.sp(23) : error 029: invalid expression, assumed zero
// displayadmins.sp(23) : warning 215: expression has no effect
// displayadmins.sp(43) : warning 219: local variable "flag" shadows a variable at a preceding level
// displayadmins.sp(49) : error 104: cannot find any methods for GroupInfo
// displayadmins.sp(49) : error 017: undefined symbol "GroupInfo"
// displayadmins.sp(49) : error 029: invalid expression, assumed zero
// displayadmins.sp(49) : fatal error 190: too many error messages on one line
//
// Compilation aborted.
// 10 Errors.
//
// Compilation Time: 0.23 sec
// ----------------------------------------


Ilusion9 12-23-2019 13:58

Re: [ANY] Display online admins by groups (or ranks)
 
Sourcemod 1.10 is required.

Sincronic 12-23-2019 14:16

Re: [ANY] Display online admins by groups (or ranks)
 
Quote:

Originally Posted by Ilusion9 (Post 2677839)
Sourcemod 1.10 is required.

I compiled on sourcemod web site.

This is from chat.
Code:

[SM] of: SmoKey
[SM] unique: Cipci__->, HvHc

And this is from cfg

Code:

      /* Name of the group - unique flag (groups below this group must not have this flag) */
        "Owners"        "z"
        "Co-Owner"      "o"
        "Mods"          "p"
        "Administrator" "q"
        "Helpers"      "r"
        "VIP"          "s"

Is not showing the group

Ilusion9 12-23-2019 15:05

Re: [ANY] Display online admins by groups (or ranks)
 
Quote:

Originally Posted by Sincronic (Post 2677843)
I compiled on sourcemod web site.

This is from chat.
Code:

[SM] of: SmoKey
[SM] unique: Cipci__->, HvHc

And this is from cfg

Code:

      /* Name of the group - unique flag (groups below this group must not have this flag) */
        "Owners"        "z"
        "Co-Owner"      "o"
        "Mods"          "p"
        "Administrator" "q"
        "Helpers"      "r"
        "VIP"          "s"

Is not showing the group

Delete the comment line or paste the config from github

Sincronic 12-24-2019 12:00

Re: [ANY] Display online admins by groups (or ranks)
 
Quote:

Originally Posted by Ilusion9 (Post 2677847)
Delete the comment line or paste the config from github

Now works ! Thanks, and good job !

ApoziX 01-06-2020 06:56

Re: [ANY] Display online admins and vips by groups
 
Quote:

Originally Posted by Ilusion9 (Post 2677809)
Description: Display online admins and vips by groups (or ranks).

Example of output:
- for sm_admins command:
Code:

[SM] Owners: Ilusion, p1mple
[SM] Mods: baitzera
[SM] Helpers: ZyWhO?, ecov1ce

- for sm_vips command:
Code:

[SM] Gold-Vips: Ilusion, Clown9 | auti
[SM] Vips: baitzera

Commands:
Code:

sm_admins
sm_vips

GitHub: https://github.com/Ilusion9/sm-show-admin-vip-groups

Add show and Dont show command, I mean If I am vip or admin I could do !admindontshow and it remove me from the menu and say No Admins Online

ApoziX 01-06-2020 06:57

Re: [ANY] Display online admins and vips by groups
 
Convert it to menu, or add an option to menu

HiddenConn1 01-07-2020 07:01

Re: [ANY] Display online admins and vips by groups
 
I don't understand where I'm meant to get the plugin smx file from?

Ilusion9 01-07-2020 09:06

Re: [ANY] Display online admins and vips by groups
 
Quote:

Originally Posted by ApoziX (Post 2679123)
Add show and Dont show command, I mean If I am vip or admin I could do !admindontshow and it remove me from the menu and say No Admins Online

I will do it.

Quote:

Originally Posted by HiddenConn1 (Post 2679239)
I don't understand where I'm meant to get the plugin smx file from?

Compile the .sp file


All times are GMT -4. The time now is 15:14.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.