[HAM] Outputs message twice
PHP Code:
Is there a IRC channel or anything for quick and (possibly) dumb questions i could ask occasionally if i can't find the answer after wasting 2 hours of my life. :) Note: It only happens when the map begins -- on the very first round, second, third etc it only prints once. |
Re: [HAM] Outputs message twice
Register HAM as post and check is_user_alive before doing anything.
|
Re: [HAM] Outputs message twice
Done, done.
Still outputs twice. The fact that only happens once the map starts(after change) makes me cringe.. UPDATE:Wrong, i was absolutely wrong. |
Re: [HAM] Outputs message twice
You did not do add the check then. Check again. Spawn is called a first time when player is put in server (new player, no team yet, not alive), and it will be called again when player actually spawned in the current game (player is now alive). That's why you need to hook as post, and checking if player is alive.
|
Re: [HAM] Outputs message twice
I just remembered what i saw the other day in a thread, you were correct just you didn't specify where i should've checked wether the player is alive.
I added the check into fwHamPlayerSpawn instead of checking it in my function, makes so much more sense now after the last post. Cheers, +karma. Is karma still a thing? |
| All times are GMT -4. The time now is 22:09. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.