Raised This Month: $32 Target: $400
 8% 

Elite Admin System v6.7.2


Post New Thread Reply   
 
Thread Tools Display Modes
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 12-01-2019 , 06:19   Re: Elite Admin System v6.2 [+Bans, Gags, Ranks System]
Reply With Quote #111

Update v6.2

MAKE SURE TO UPDATE EliteAdminSystem_Config.cfg and elite_admin_system.txt

Code:
* Cached is_user_alive and is_user_connected natives for optimization
* AddBan message is now only visible to players with flag ADMIN_KICK (admins)
* Unbanned player's IP will be hidden from normal players, only admins will be able to see it.
* "Banned player connected" message will be hidden from normal players, only admins will be able to see it.
__________________

Last edited by edon1337; 12-01-2019 at 08:51.
edon1337 is offline
iclassdon
AlliedModders Donor
Join Date: May 2006
Old 12-01-2019 , 11:08   Re: Elite Admin System v6.2 [+Bans, Gags, Ranks System]
Reply With Quote #112

Thanks for the update edon1337. The team menu / editor doesn't work on bots.
iclassdon is offline
Send a message via MSN to iclassdon
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 12-01-2019 , 12:00   Re: Elite Admin System v6.2 [+Bans, Gags, Ranks System]
Reply With Quote #113

Quote:
Originally Posted by iclassdon View Post
Thanks for the update edon1337. The team menu / editor doesn't work on bots.
Line #1536

Change
PHP Code:
get_playersiPlayersiNum"ch" ); 
to
PHP Code:
get_playersiPlayersiNum"h" ); 
Most of the people would find it annoying seeing bots in the team menu, so I decided to hide them, but if you want you can change it.
__________________
edon1337 is offline
iclassdon
AlliedModders Donor
Join Date: May 2006
Old 12-01-2019 , 13:59   Re: Elite Admin System v6.2 [+Bans, Gags, Ranks System]
Reply With Quote #114

Thanks will do! I rather transfer a bot instead of disturbing an actual players game play.

Last edited by iclassdon; 12-01-2019 at 14:01.
iclassdon is offline
Send a message via MSN to iclassdon
iclassdon
AlliedModders Donor
Join Date: May 2006
Old 12-13-2019 , 20:59   Re: Elite Admin System v6.2 [+Bans, Gags, Ranks System]
Reply With Quote #115

Hey sometimes when I type in chat it will display my chat with (Counter-Terrorist) before my rank/username/text. I'm not using a prefix. Example below

BTW. I have ranks_in_chat enabled.

(Counter-Terrorist) Owner - NAS | WarrioR : blah blah blah
iclassdon is offline
Send a message via MSN to iclassdon
hckr
Junior Member
Join Date: Sep 2019
Old 12-21-2019 , 23:37   Re: Elite Admin System v6.2 [+Bans, Gags, Ranks System]
Reply With Quote #116

Hi, I can't get the map to change

This is the message:

Code:
[EAS] Your Owner privileges expire on: 12/31/2019 00:00:00
] amx_map de_inferno
[EAS] No access to this command!
The weird thing is that I can't use amx_map to change

Code:
amx_map de_inferno
[EAS] No access to this command!
I'm using this version of amxmod 1.8.3-dev+5201

In the log files I have this now:

Code:
L 12/21/2019 - 23:33:24: -------- Mapchange to de_dust2 --------
L 12/21/2019 - 23:33:25: [pluginmenu.amxx] Can't add menu item "Plugin Cvars" from plugin "pluginmenu.amxx" to menu set because the Menus Front-End plugin itself is not loaded!
L 12/21/2019 - 23:33:25: [pluginmenu.amxx] Can't add menu item "Plugin Commands" from plugin "pluginmenu.amxx" to menu set because the Menus Front-End plugin itself is not loaded!
At first I didn't show this.

Last edited by hckr; 12-21-2019 at 23:43.
hckr is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 12-22-2019 , 05:31   Re: Elite Admin System v6.2 [+Bans, Gags, Ranks System]
Reply With Quote #117

Quote:
Originally Posted by hckr View Post
Hi, I can't get the map to change

This is the message:

Code:
[EAS] Your Owner privileges expire on: 12/31/2019 00:00:00
] amx_map de_inferno
[EAS] No access to this command!
The weird thing is that I can't use amx_map to change

Code:
amx_map de_inferno
[EAS] No access to this command!
Go to /configs/EliteAdminSystem_Config.cfg and search MAP_FLAG , see what the flag is, then go to the game and type amx_who and see if you have that flag, if you don't then you need to either change the MAP_FLAG or set yourself the MAP_FLAG.
__________________
edon1337 is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 12-22-2019 , 10:09   Re: Elite Admin System v6.2 [+Bans, Gags, Ranks System]
Reply With Quote #118

Quote:
Cached is_user_alive and is_user_connected natives for optimization
Cached name, steamid and ip into global variables for optimization
This is not an optimization. These values are already available inside variables in the game, calling the natives simply retrieve the value that is already stored - no heavy computation is required to determine alive/connected status or name/ip/steamid. All these operations are O(1).
You lose more trying to maintain the cached values up-to-date than if you used the natives directly.

Look at what is needed to keep g_szName up to date: hook SayText, retrieve the arguments, register a fakemeta hook, retrieve the new name, unregister the hook.
The cost of these operations is not amortized at any point.

Caching makes sense when recomputing the value would be slow or when caching the value does not require any effort(caching get_user_msgid is an example of effortless caching).
In this case, all you got is a more code(which means more potential source of errors) for no speed gain.

-------

You should look at your algorithms and optimize that. For example it looks like g_aDatabase could be a trie(mapping name -> eData). The advantage is you will no longer need loops to retrieve data for a specific player.
__________________

Last edited by HamletEagle; 12-22-2019 at 10:17.
HamletEagle is offline
Old 12-31-2019, 08:49
edon1337
This message has been deleted by edon1337.
Old 12-31-2019, 12:35
edon1337
This message has been deleted by edon1337.
Old 01-02-2020, 07:55
edon1337
This message has been deleted by edon1337.
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 01-04-2020 , 10:36   Re: Elite Admin System v6.2b [+Bans, Gags, Ranks System]
Reply With Quote #119

Update v6.2b
Code:
* Added team say support for suspended players and players without prefix
__________________
edon1337 is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 01-07-2020 , 09:21   Re: Elite Admin System v6.4 [+Bans, Gags, Ranks System]
Reply With Quote #120

Quote:
Originally Posted by HamletEagle View Post
You should look at your algorithms and optimize that. For example it looks like g_aDatabase could be a trie(mapping name -> eData). The advantage is you will no longer need loops to retrieve data for a specific player.
Done.

Update v6.4
Code:
* Optimized name change event
* Used Tries instead of Arrays to store/retrieve data for/from players, which will increase performance.
__________________
edon1337 is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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