Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mp_restartgame not working as expected #231

Open
borzaka opened this issue Jun 11, 2019 · 2 comments
Open

mp_restartgame not working as expected #231

borzaka opened this issue Jun 11, 2019 · 2 comments

Comments

@borzaka
Copy link
Contributor

borzaka commented Jun 11, 2019

User story

I would like to restart (and reset every score) on the current map by mp_restartgame 1

Expected behavior

Restarts the the current map, resets the scoreboard, resets any kills/scores/MVPs/etc, and spawns and gives players the appropriate weapons.

Actual behavior

Restarts the map, resets the scoreboard, but players spawns with no weapons (or with knifes only), and even more than 2 players in one arena.

I ended up using changelevel to the same map to restart the game, but not all clients connects at the same time to start a new game on the current map fairly for everyone.

  • Plugin version: 1.1.10-dev
  • Sourcemod version: sourcemod-1.9.0-git6281

Maybe hooking the restart event would help, I don't know, just guessing. Can you point us where to look into this problem?

@SurajBhari
Copy link

sm plugins reload multi1v1
gives out the same output ,
i think its something with cookies

@borzaka
Copy link
Contributor Author

borzaka commented Jul 18, 2019

Another solution I came up is to disable and enable the plugin:

  1. sm_multi1v1_enabled 0
  2. sm_multi1v1_enabled 1

Strangely after this someone is given an MVP right away, so one person starts with an advantage.
And the client preferences are reset, so you have to setup again with !guns :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants