View Single Post
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 01-04-2023 , 19:49   Re: [CSGO] A Sprint command for CSGO
Reply With Quote #4

If you find my old posts, some of those sure have typos or errors what not necessary work,
so understand what code do rather than copy/paste it blindly.
I'm not great coder, I had just tried practise and looking old codes from here forum posts and plugins.

You need to beware when using timer flag TIMER_FLAG_NO_MAPCHANGE
and storing timer handle in array.
What can happen is, running timer will "disappear" on map change but you have still handle of that timer what not exist anymore.
- You KillTimer with that not exist timer handle, error.

But if you not get those errors, good.


About checking time left in timer, again, make variable array and store time etc. etc.

Here is my example of cooldown and with time check.
- I want separate array index and client userid when creating timer. So I know sure what array index I am following.

But you do your own way, it is your plugin not mine
Spoiler
__________________
Do not Private Message @me
Bacardi is offline