Raised This Month: $51 Target: $400
 12% 

Get the value of round timer plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Hakim Azizov
Member
Join Date: Mar 2023
Old 04-09-2023 , 08:49   Get the value of round timer plugin
Reply With Quote #1

Hi. I want to get value of round timer. and i want to call a function if it value contains 0. thanks for helping bros
Hakim Azizov is offline
Hakim Azizov
Member
Join Date: Mar 2023
Old 04-09-2023 , 15:20   Re: Get the value of round timer plugin
Reply With Quote #2

Cant anyone help me?
Hakim Azizov is offline
HowToRuski
Senior Member
Join Date: Feb 2019
Location: Hungary
Old 04-09-2023 , 15:56   Re: Get the value of round timer plugin
Reply With Quote #3

So you basically want something to happen when round ends within time?
HowToRuski is offline
Hakim Azizov
Member
Join Date: Mar 2023
Old 04-09-2023 , 16:40   Re: Get the value of round timer plugin
Reply With Quote #4

Quote:
Originally Posted by HowToRuski View Post
So you basically want something to happen when round ends within time?
Yes i want it but i cant make it(. Can we create this stock with round timer(shows minutes and seconds) clock?
Hakim Azizov is offline
Hakim Azizov
Member
Join Date: Mar 2023
Old 04-10-2023 , 05:36   Re: Get the value of round timer plugin
Reply With Quote #5

Help?)
Hakim Azizov is offline
jimaway
Heeeere's Jimmy!
Join Date: Jan 2009
Location: Estonia
Old 04-10-2023 , 11:45   Re: Get the value of round timer plugin
Reply With Quote #6

https://forums.alliedmods.net/showthread.php?t=42159
https://www.amxmodx.org/api/amxmodx/set_task
https://www.amxmodx.org/api/cvars/get_cvar_float

hook round start, set a task for mp_roundtime*60 seconds
jimaway is offline
Hakim Azizov
Member
Join Date: Mar 2023
Old 04-10-2023 , 13:27   Re: Get the value of round timer plugin
Reply With Quote #7

Quote:
Originally Posted by jimaway View Post
Not working correctly this code i did it but sometimes it showed wrong time. If i can get value of round timer clock, i will trigger round end function

Last edited by Hakim Azizov; 04-10-2023 at 13:30.
Hakim Azizov is offline
jimaway
Heeeere's Jimmy!
Join Date: Jan 2009
Location: Estonia
Old 04-10-2023 , 13:34   Re: Get the value of round timer plugin
Reply With Quote #8

Quote:
Originally Posted by Hakim Azizov View Post
Not working correctly this code i did it but sometimes it showed wrong time
show code
jimaway is offline
Hakim Azizov
Member
Join Date: Mar 2023
Old 04-10-2023 , 13:40   Re: Get the value of round timer plugin
Reply With Quote #9

Quote:
Originally Posted by jimaway View Post
show code
Bro this code is very big it is zombie escape mode and round end function is blocked by GameMaster module. I want to use this round timer clock for game draw if time of clock contains 0
Hakim Azizov is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 04-10-2023 , 23:02   Re: Get the value of round timer plugin
Reply With Quote #10

Create a small plugin to simply test the functionality you're looking for and post that one if you can't get it to work.
__________________
fysiks 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 05:07.


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