how to reset money on new round?
trying to reset money on round start but nothing happens other than resetting the variable swapTeamsQueried.
No errors are thrown PHP Code:
|
Re: how to set money?
Where are you calling resetMoney() from? Judging by tyour question... Shouldn't you call it inside roundStart() hook?
|
Re: how to set money?
Quote:
|
Re: how to set money?
How are you hooking round start?
|
Re: how to set money?
Quote:
Code:
register_event("HLTV", "onRoundStart", "a", "1=0", "2=0") |
Re: how to set money?
Alright add a delay of 2 seconds or more since there might be a conflict with round win money.
|
Re: how to set money?
That event is for new round, not round start so you are getting the conflict as this is when the game distributes money (it's between new round and round start). Either instead call it at round start, or add a larger delay, like 0.5 or 1.0.
This is the round start event: register_logevent("logevent_round_start", 2, "1=Round_Start") |
| All times are GMT -4. The time now is 23:23. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.