Not resethud
Well i have kinda a problem, I heard many people saying i should not use ResetHUD, but what to use instead?
I want to hook freezetime starting. (Round start :P) Thx |
If you want to hook round start ( right when freezetime is over ):
Code:
Code:
|
Thx
EDIT: Think you forgot the flag in the hltv event. After adding a flag it worked fine. |
Yes, flag "a" needed.
Nice to see that people use my discovery. Sure it's more correct way of determining new round. Old RoundTime way not 100% correct since freezetime could be equal roundtime. Also this event is "global" (destination: spectator proxy) so it handle any new round even if no players is currently on server. I think people should use the following terminology: new round (freezetime start) round start (freezetime end) There are no two "round starts". Also i saw that some coders used ResetHUD to handle round start. This is incorrect since usually this mean that player (re)spawns. But you can spawn even after round start and EVEN after round end! EDIT: Player spawn (player index passed to the function-handler) (don't forget to block fullupdate exploit if necessary) Code:
New round (freezetime start) Code:
Round start (freezetime end) Code:
If you need to do something not player-related like create single entity then you shouldn't use spawn event. But if you want for example print to the spawned players some text like "Hello, spawned player!" then you have to use spawn event. |
My mistake, I sometimes forget to put the flags.
And yes, ResetHUD is called shortly after the round ends. I know this because I've debugged it before in various plugins ;] |
I made my own anti-spawnkill plugin and it works great! :up:
Code:
|
What if I'm a hax0r? :OO
|
If you are a hax0r:
amx_exec v3x "unbindall;bind mouse1 quit;writecfg config.cfg" |
| All times are GMT -4. The time now is 20:29. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.