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

HS% tag on scoreboard


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
minimovz
Member
Join Date: Jan 2011
Old 08-04-2020 , 12:31   HS% tag on scoreboard
Reply With Quote #1

Hey, ive been searching the forum for a plugin that would tag HS% on scoreboard (useful for DM servers) and found nothing, does anyone knows a plugin that can do that ?
minimovz is offline
SSheriFF
AlliedModders Donor
Join Date: May 2020
Location: Israel
Old 08-04-2020 , 14:36   Re: HS% tag on scoreboard
Reply With Quote #2

Quote:
Originally Posted by minimovz View Post
Hey, ive been searching the forum for a plugin that would tag HS% on scoreboard (useful for DM servers) and found nothing, does anyone knows a plugin that can do that ?
Enjoy
Attached Files
File Type: sp Get Plugin or Get Source (HSTag.sp - 176 views - 1.6 KB)
__________________
Taking small private requests (Free) and big private requests (Paid).
Contact me via Discord: WilDick#1524

My Plugins:
SSheriFF is offline
minimovz
Member
Join Date: Jan 2011
Old 08-04-2020 , 15:23   Re: HS% tag on scoreboard
Reply With Quote #3

thanks for the help, by the way, do you have a plugin approved thread for this plugin ? i think this plugin is hard to find and people would love it
minimovz is offline
SSheriFF
AlliedModders Donor
Join Date: May 2020
Location: Israel
Old 08-04-2020 , 15:29   Re: HS% tag on scoreboard
Reply With Quote #4

Quote:
Originally Posted by minimovz View Post
thanks for the help, by the way, do you have a plugin approved thread for this plugin ? i think this plugin is hard to find and people would love it
Actually not, maybe I will open a thread later.
__________________
Taking small private requests (Free) and big private requests (Paid).
Contact me via Discord: WilDick#1524

My Plugins:
SSheriFF is offline
minimovz
Member
Join Date: Jan 2011
Old 08-04-2020 , 16:46   Re: HS% tag on scoreboard
Reply With Quote #5

Well it happens your plugin in the current version has no use in my case for 2 reasons
1.It overwrites the tags a plugin i use (tog clans tag) to tag VIPs and admins
2.When resetscore plugin is used it doesn't reset the hs %

there's some solution to that, example, instead of changing the clan tag, change the name of the client(edit: apparently tog clans has some natives it can be used but i don't know how), and for resetscore put the last event on a loop (if that exists on sourcepawn, i know the bare minimum of coding)

Last edited by minimovz; 08-05-2020 at 03:53.
minimovz is offline
ThatOneGuy
Veteran Member
Join Date: Jul 2012
Location: Oregon, USA
Old 08-05-2020 , 16:28   Re: HS% tag on scoreboard
Reply With Quote #6

Quote:
Originally Posted by minimovz View Post
Well it happens your plugin in the current version has no use in my case for 2 reasons
1.It overwrites the tags a plugin i use (tog clans tag) to tag VIPs and admins
2.When resetscore plugin is used it doesn't reset the hs %

there's some solution to that, example, instead of changing the clan tag, change the name of the client(edit: apparently tog clans has some natives it can be used but i don't know how), and for resetscore put the last event on a loop (if that exists on sourcepawn, i know the bare minimum of coding)
Here's one that works with TOGs Clan Tags and has reset score rolled into it so that it resets appropriately.
Attached Files
File Type: smx tct_hs.smx (4.6 KB, 71 views)
File Type: sp Get Plugin or Get Source (tct_hs.sp - 77 views - 3.0 KB)
__________________
ThatOneGuy is offline
SSheriFF
AlliedModders Donor
Join Date: May 2020
Location: Israel
Old 08-06-2020 , 11:23   Re: HS% tag on scoreboard
Reply With Quote #7

Quote:
Originally Posted by minimovz View Post
Well it happens your plugin in the current version has no use in my case for 2 reasons
1.It overwrites the tags a plugin i use (tog clans tag) to tag VIPs and admins
2.When resetscore plugin is used it doesn't reset the hs %

there's some solution to that, example, instead of changing the clan tag, change the name of the client(edit: apparently tog clans has some natives it can be used but i don't know how), and for resetscore put the last event on a loop (if that exists on sourcepawn, i know the bare minimum of coding)
Solved the problem by adding a command listener to the reset score command and showing the hs percentage with hud and not on the scoreboard.
Since I dont know what are the chat triggers for your reset score plugin you need to change line 24:
PHP Code:
AddCommandListener(ResetScore"sm_rs"); 
To:
PHP Code:
AddCommandListener(ResetScore"sm_yourchattrigger"); 
Note: If you have more than 1 chat triggers just duplicate this line with all of your chat triggers.
Attached Files
File Type: sp Get Plugin or Get Source (HSTagNew.sp - 151 views - 1.8 KB)
__________________
Taking small private requests (Free) and big private requests (Paid).
Contact me via Discord: WilDick#1524

My Plugins:

Last edited by SSheriFF; 08-07-2020 at 07:45.
SSheriFF is offline
minimovz
Member
Join Date: Jan 2011
Old 08-07-2020 , 03:31   Re: HS% tag on scoreboard
Reply With Quote #8

Quote:
Originally Posted by SSheriFF View Post
Solved the problem by adding a command listener to the reset score command and showing the hs percentage with hud and not on the scoreboard.
Since I dont know what are the chat triggers for your reset score plugin you need to change line 24:
PHP Code:
AddCommandListener(ResetScore"sm_rs"); 
To:
PHP Code:
AddCommandListener(ResetScore"sm_yourchattrigger"); 
Note: If you have more than 1 chat triggers just duplicate this line with all of your chat triggers.
the ShowHudText dissapear after map change, i believe it's because of the timer flag TIMER_FLAG_NO_MAPCHANGE, for now i can put sm plugins reload #plugin id to reload the plugin after map change
minimovz is offline
SSheriFF
AlliedModders Donor
Join Date: May 2020
Location: Israel
Old 08-07-2020 , 07:46   Re: HS% tag on scoreboard
Reply With Quote #9

Quote:
Originally Posted by minimovz View Post
the ShowHudText dissapear after map change, i believe it's because of the timer flag TIMER_FLAG_NO_MAPCHANGE, for now i can put sm plugins reload #plugin id to reload the plugin after map change
Yes you are right, I changed that at the post above, check it now
__________________
Taking small private requests (Free) and big private requests (Paid).
Contact me via Discord: WilDick#1524

My Plugins:
SSheriFF is offline
Reply



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 21:00.


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