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 }