Shadow, i'm going to quickly try and write an ES script for you. Could you post the 'ES fix' link here while you wait?
Should be done in about an hour (i'm busy
)
EDIT:
A better way to do this would be to try and edit the existing gungame event when someone wins, then it will unload gungame.
Open gungame.py in \addons\eventscripts\gungame in Notepad or your alternative. Hit Ctrl + F and enter;
Once you find this, select the following;
# Toptext
if int(event_var['es_attackerteam']) == 2:
gungamelib.toptext('gungame', '#all', 10, '#red', 'PlayerWon_Center', {'player': playerName})
else:
gungamelib.toptext('gungame', '#all', 10, '#blue', 'PlayerWon_Center', {'player': playerName})
and change this to;
# Toptext
if int(event_var['es_attackerteam']) == 2:
gungamelib.toptext('gungame', '#all', 10, '#red', 'PlayerWon_Center', {'player': playerName})
es.server.queuecmd('es_unload gungame')
else:
gungamelib.toptext('gungame', '#all', 10, '#blue', 'PlayerWon_Center', {'player': playerName})
es.server.queuecmd('es_unload gungame')
Hopefully that will work.
Someone can correct me if this will create errors!