Raised This Month: $ Target: $400
 0% 

[ZP] Countdown


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Watermelonnable
Member
Join Date: Feb 2017
Old 12-10-2019 , 19:58   Re: [ZP] Countdown
Reply With Quote #10

Quote:
Originally Posted by OciXCrom View Post
@StarMpK - nobody really said that the last one should be 3 seconds.

@Watermelonnable - the "HLTV" event is called when the freeze time starts, so if the server has freeze time, the countdown will start at a wrong time. I assume it starts 5 seconds after round start, so you should use:

Code:
register_logevent("event_round_start", 2, "1=Round_Start")

Furthermore, you are setting the timer to 10 when the plugin starts, you should do it when the round starts instead.

Also, a small optimization - you don't need the "hudMessage" and "playSoundString" variables, you can format the strings directly in "show_hudmessage" and "client_cmd" - they use the same arguments as "formatex".

PS: "amxmisc" is not needed.

@strangeguy - if you're looking for a full plugin, you should use the Plugin Request section. This section here is for learning to code. So, if you're willing to learn - you should go ahead and do the changes I mentioned above. Also, the code above doesn't feature random colors, so try and do that as well - it's pretty simple.
Thank you for your feedback man! I'll keep those in mind for the future
Watermelonnable is offline
 



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 18:03.


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