Closed borzaka closed 5 years ago
I think you or me confuse something.
mp_restartround x
just restart the current round. If the current round is a full buy round and you restart this round, the round will still be a full buy round.
did you mean mp_restartgame 1
? If so, i have to test how https://wiki.alliedmods.net/Counter-Strike:_Global_Offensive_Events#cs_pre_restart works, maybe I can use this event to reset the roundcounter.
Yes, sorry, I meant mp_restartgame x
, when the round counter and every game stats go to 0.
I will take a look at this, maybe need a while, have to find a smooth& sane way to hook mp_restartgame
.
Stay tuned
I added a match restart hook and reset the round counter. I pushed it to 'onlyServer' branch https://github.com/shanapu/MyWeaponAllocator/archive/onlyServer.zip . Couldn't test it very well. Please test.
I have uploaded and overwrited every file on the server with the ZIP, and then restarted the server, but nothing is changed:
After mp_restartgame 1
, full-buy rounds continue.
give this a new try.
It's working: after rcon mp_restartgame 1
a new pistol round started. Thank you.
thanks! I will merge this to master branch as new version soon.
If you reach to the full buy rounds, and execute
mp_restartgame x
, the full buy round continue instead of starting with pistol again._Edited: I meant
mp_restartgame x
insted ofmp_restartround x
_