Raised This Month: $ Target: $400
 0% 

[L4D2] Nuke - Timer Issue


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 07-22-2022 , 16:54   Re: [L4D2] How to stop timers + countdown issue
Reply With Quote #1

Usually I create a "global" timer variable

PHP Code:
Handle g_tMyTimer
Then on LeftStartArea you could delete the timer:

PHP Code:
delete g_tMyTimer;
g_tMyTimer CreateTimer (1.0Timer_CountDownclientTIMER_REPEAT); 
And on RoundEnd just

PHP Code:
delete g_tMyTimer
Also, you aren't returning "Plugin_Stop" at some point for a repeatable timer.

I recommend you read Dragokas's post about timers.
__________________

Last edited by Marttt; 07-22-2022 at 16:55.
Marttt is offline
alasfourom
Senior Member
Join Date: Feb 2022
Location: Saudi Arabia
Old 07-22-2022 , 17:16   Re: [L4D2] How to stop timers + countdown issue
Reply With Quote #2

Thank you Marttt I will definitely take a look at it, can you also explain to me why this is not working

PHP Code:
 ExplodingTime g_CountDown-- + GetConVarFloat(NukeTimer); 
alasfourom 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 00:59.


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