Ulysses Stuff > Releases
Murder ULX commands
MrPresident:
Nogger, I'm not sure if the PlayerDisconnected hook is comprehensive enough to determine how a player disconnected.
Cobalt:
--- Quote from: MrPresident on April 11, 2014, 05:22:38 PM ---Nogger, I'm not sure if the PlayerDisconnected hook is comprehensive enough to determine how a player disconnected.
--- End quote ---
You have to use gameevents for that.
gameevent.Listen( "player_disconnect" )
hook.Add( "player_disconnect", "asdf", function( data )
local reason = data.reason
print( reason ) --> "player timed out" or something
end )
MrPresident:
I didn't know you could do that. Good to know.
Cobalt:
rofl
Neku:
--- Quote from: Cobalt on April 13, 2014, 02:49:17 PM ---
rofl
--- End quote ---
Was it the exact same commands?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version