global function MenuCallbacks_Init void function MenuCallbacks_Init() { AddClientCommandCallback( "LeaveMatch", ClientCommandCallback_LeaveMatch ) } bool function ClientCommandCallback_LeaveMatch( entity player, array args ) { SavePdataForEntityIndex( player.GetPlayerIndex() ) ClientCommand( player, "disconnect" ) return true }