Advertisement
aveyo

coreinit

Jan 26th, 2018
1,216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.34 KB | None | 0 0
  1. -- save to file: \steamapps\common\dota 2 beta\game\dota\scripts\vscripts\core\coreinit.lua
  2. -- concept script by AveYo
  3.  
  4. AutoDisconnectOnGameEnd = function(s)
  5.   if SendToServerConsole then SendToServerConsole("disconnect") else SendToConsole("disconnect") end
  6. end
  7. ListenToGameEvent("dota_match_done_client", AutoDisconnectOnGameEnd, nil)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement