aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/scripts/vscripts/_menu_callbacks.gnut
blob: 5b2c2c53147ff6e35e4f336dcdc77baeaaf16287 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
global function MenuCallbacks_Init

void function MenuCallbacks_Init()
{
	AddClientCommandCallback( "LeaveMatch", ClientCommandCallback_LeaveMatch )
}

bool function ClientCommandCallback_LeaveMatch( entity player, array<string> args )
{
	SavePdataForEntityIndex( player.GetPlayerIndex() )
	ClientCommand( player, "disconnect" )
	
	return true
}