Top Flags [08/09/2021]
29 Attachment(s)
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: Thanks for the notes and support Ocix, Bugsy and edon1337. |
Re: Top Flags [29/08/2018]
You forgot to upload the script also you should make it compatible with amx v182 since its the official stable.
|
Re: Top Flags [29/08/2018]
Quote:
|
Re: Top Flags [29/08/2018]
I think you should use is_user_admin instead of caching it's value on client_putinserver, you never know what admin system the user is going to use, for example I made one that updates admin list every second.
|
Re: Top Flags [29/08/2018]
Quote:
|
Re: Top Flags [29/08/2018]
Quote:
|
Re: Top Flags [29/08/2018]
Quote:
Rather than setting a task to be executed each second, File reading Thats what im telling you about you can change it to client putin or other |
Re: Top Flags [29/08/2018]
Quote:
What I'm pointing at is, if someone connects to a server and he isn't an admin, isAdmin bool gets ticked false for him, and later on, he receives admin, isAdmin still remains false for him, that's why he should use is_user_admin instead of caching the value. |
Re: Top Flags [29/08/2018]
Quote:
|
Re: Top Flags [29/08/2018]
Quote:
|
All times are GMT -4. The time now is 15:23. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.