View Single Post
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 01-07-2020 , 16:27   Re: [Any] Dev Zones (with natives for developers) [Updated 6-Jan-2020]
Reply With Quote #175

Quote:
Originally Posted by HvG Community View Post
Spawnkill zone that you can use for course maps together with autorespawner.

sm_spawnkill_wait_time "60" // Spawnkiller is activated 60 seconds after round starts by default
That code have timer that is not killed on each round so it create new timers each rounds. Also you could use ForcePlayerSuicide instead of a sm command. But anyway thanks for your contribution

EDIT: ok i see that you kill the timer now, but you dont check that is null before. Also kill the timer on round start too, for prevent a round that dont have a "round_end" event like a restart round (on warmup for example).
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.


Last edited by Franc1sco; 01-07-2020 at 16:30.
Franc1sco is offline
Send a message via MSN to Franc1sco