AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   General (https://forums.alliedmods.net/forumdisplay.php?f=7)
-   -   Admins for each map (https://forums.alliedmods.net/showthread.php?t=312214)

SomewhereLost 11-21-2018 14:32

Admins for each map
 
Hello,

I was wondering if its possible to add admins for specific maps? Like for de_ maps to add certain players and for cs_ other ones. Would that be achieveable by a plugin?

Bugsy 11-21-2018 18:31

Re: Admins for each map
 
Quote:

Originally Posted by SomewhereLost (Post 2625075)
Hello,

I was wondering if its possible to add admins for specific maps? Like for de_ maps to add certain players and for cs_ other ones. Would that be achieveable by a plugin?

Yes, it would.

SomewhereLost 11-21-2018 20:44

Re: Admins for each map
 
Quote:

Originally Posted by Bugsy (Post 2625105)
Yes, it would.

Any quick suggestion on how to approach it?

fysiks 11-22-2018 02:23

Re: Admins for each map
 
Set admin flags on specific users on specific maps:
  1. Load user list for the current map (in plugin_init())
  2. Check if user is in the list (in client_authorized())
  3. If yes, set user flags using set_user_flags() like this:
    Code:

    set_user_flags(id, -1)
    set_user_flags(id,flags)


SomewhereLost 11-22-2018 20:33

Re: Admins for each map
 
Grand, thanks for that.

DJEarthQuake 12-07-2018 02:43

Re: Admins for each map
 
Quote:

Originally Posted by SomewhereLost (Post 2625113)
Any quick suggestion on how to approach it?

...configuration/maps.htm

fysiks 12-07-2018 23:34

Re: Admins for each map
 
Quote:

Originally Posted by DJEarthQuake (Post 2627144)
...configuration/maps.htm



exec addons/amxmodx/configs/admin/users-de.ini

Demolition admins and so on can be utilized for rapid initial deployment. That eliminates the redundancy one does not have to do it on a per map basis. That's what I recommend. It's right in the manual.
Depending on the mixture, it might be easier to use symbolic linking.
So in this illustration where we have several sorts of rats maps without the same prefix or designation, the symbolic linking overcomes that tragedy short order.

Huh? What is supposed to be in users-de.ini (generally, INI files are not executable)? Also, the link you posted is for map-specific config files that are used for executing .cfg files (cvars and commands) and for .ini files that enable or disable plugins. There is no equivalent for users/admins.

In summary, I don't see anything that you posted that addresses the question.

DJEarthQuake 12-08-2018 01:21

Re: Admins for each map
 
amx_addadmin lines per map config.

amx_reloadadmins in server.cfg to reset each load.

fysiks 12-08-2018 14:05

Re: Admins for each map
 
Quote:

Originally Posted by DJEarthQuake (Post 2627479)
amx_addadmin lines per map config.

amx_reloadadmins in server.cfg to reset each load.

Unfortunately, that won't work because amx_addadmin adds the admin to users.ini so running amx_reloadadmins won't "reset" anything. The admins will become permanent (until users.ini is edited to remove them) once you play that map once.

DJEarthQuake 01-21-2019 18:25

Re: Admins for each map
 
1 Attachment(s)
This strips server of admins without altering users.ini after it loads and not after the user_flags command can reapply them custom via map prefix configs.


All times are GMT -4. The time now is 22:16.

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