splewis / csgo-multi-1v1

CS:GO Sourcemod plugin to create multi-1v1 arena servers
GNU General Public License v3.0
278 stars 68 forks source link

mp_restartgame not working as expected #231

Open borzaka opened 5 years ago

borzaka commented 5 years ago

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.

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

SurajBhari commented 5 years ago

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

borzaka commented 5 years ago

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 :(