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

Top Flags [08/09/2021]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff       
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 08-29-2018 , 18:43   Top Flags [08/09/2021]
Reply With Quote #1

Public Info:

Tired of getting edit users.ini to give the VIP to your server's TOP? Let me tell you a secret ..

With this plugin will you automatically give TOP rank players the flags that you decide and know best? No need to edit anything on the server !! And if the player leaves the TOPS ranking, it will also automatically remove the flags;)

Good for the 4fun / 32 slots servers, so the top15 automatically receives the flag, which helps the server to get full, by the top15 dispute.

Servers Using this plugin:

Here o/.

Requirements:

* CS mod
* AMXX >= 1.9
* Compile locally

All cvars:

* tf_ranks "x" ~> Range of players that will receive the flags based on rank. (Top 1, 2, 5, 10, 15 etc
* tf_flags "x"~> The flags that TOP players will receive.
* tf_restricted_flags "x"~> Players with any of the flags set there will be ignored.
* tf_rank_reset "x" ~> A simple way to choose if you wanna reset your rank or not
* tf_days_to_reset "x" ~> Set an interval in days for resetting cs stats.
* tf_skip_admins "x" ~> SkipAdmins to count topX ?
* tf_update_rank_time "x" ~> Time interval to update ranks

Pay close attention!!
If you do not want to reset your rank, leave the "tf_rank_reset 0" on Topflags.cfg (amxmodx/configs/plugins/)
The .cfg file will be created on the first boot of the plugin.


Frequently Asked Questions!

How should I configure CFG correctly?

Come on:
tf_ranks "10" (I want to reward the top 10 of the rank!)

tf_flags "bde" (I will give them the flags "bde")

tf_restricted "acfghijklmnopqrstu" (If I'm going to reward with the "bde" flags, you will add all the flags in amxmodx, except the ones you are giving to the players. (Remember to never use the "z" flag that is from player.)

tf_rank_reset "1" (I want to automatically reset my ranking, reset cstatx.dat [TOP15])

tf_days_toreset "20" (Every 20 days.)

tf_skipadmins "1" (I don't want you to count my admins on TOP. (Example, I'm rewarding the top 10, but 3 of them are admins, so I ignore them and award the first 13 [10 + 3 *admins ignored *].)

tf_update_rank_time "240" (Time in seconds the ranking is checked for awards.)


Obs:

~> I was not going to post the plugin because it is very simple and has a good variation of it in allied itself .. but as I did not find one that worked I decided to post it .. Thanks to Natsheh and edon1337 for the help in fixing some initial problems.

Update history:

Code:
History:
0.1 [29/08/2018]
* First release

0.2 [30/08/2018]
* Fixed for amxx 1.8.2

0.3 [30/08/2018]
* Minor fixes
* Now the VIP / ADM is checked throughout Spawn. (thanks for the tip edon1337)
* Added a new cvar to not give the VIP flags to those who have the flags configured there.

1.0 [20/09/2018]
* Major Update
* Completely rewritten
* Less code, to do the same more efficiently

1.1 [27/09/2018]
* Added a delay in spawn, apparently in hamspawnpost the top15 has not yet
 been updated. And the players would only gain / lose the flag in the other spawn.

1.2 [29/09/2018]
* Added a cvar tf_day_reset
* Added the automatic creation of the configuration file "topflags" in the configs folder, it is no longer necessary to edit the sma.

1.3 [30/09/2018]
* Minor fixes pointed by bugsy

1.4 [03/10/2018]
* Since the amxx 1.9 is finally to be released, the plugin no longer supports previous versions.

1.5 [05/10/2018]
* Plugin all updated with the new natives of amxx 1.9

1.6 [05/10/2018]
* Days count for the reset totally reformulated by Bugsy
* Added new pcvar to enable or disable reset function stats
* Added an #error message if you try to compile sma in versions lower than amxx 1.9

1.7 [27/02/2019] 
* Added a define to exclude Admins of the TOPS count, example: I want the top 5 to win the flag, but of the top 5, 3 of them are admins, so only 2 common players would be contemplated, but now, the 5 will be, since adms count is added to the check factor.

1.8 [23/05/2019]
* Small fix, thanks to glmmlg

2.0 (Because of the size of the update, we skipped 1.x) [23/07/2019]
* Changed from #define skipadmins to boolean variable
* Added support for multi language
* Fixed a potential issue detecting the player if it is in TOP 1
* New CVARS Added

3.0 [11/02/2020]
* Added support to GameMe * Thanks to iclassdon for the idea.

3.1 [06/05/2020]
* Fixed mistake using the GAMEMESTATS define.

3.2 [19/05/2020]
* Fixed and error when using GAMEMESTATS define.

3.3 [08/09/2021]
* GAMEMESTATS support, discarded, even if it is working I won't keep a code inside the plugin which I don't understand and possibly if there are problems I won't be able to give adequate support.
* Code cleaning and adding explanations by sector.
* Adjust cvar names as well as global variables.
Final considerations:

Thanks for the notes and support Ocix, Bugsy and edon1337.
Attached Files
File Type: txt TopFlags.txt (306 Bytes, 603 views)
File Type: sma Get Plugin or Get Source (TopFlags.sma - 525 views - 5.8 KB)
__________________


Quote:
Originally Posted by fysiks View Post
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
https://iceeedr.com.br/

Last edited by iceeedr; 09-08-2021 at 00:40.
iceeedr is offline
Send a message via Skype™ to iceeedr
 



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 16:05.


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