Posts: 2
	Threads: 1
	Joined: Feb 2014
	
Thanks: 0
	Given 0 thank(s) in 0 post(s)
	 
	
	
		Hello,
I was wondering if it was a HOOK_PLAYER_QUIT event or something similar. I've seen HOOK_QUIT, but it isn't useful for me.
I want to change the quit message to another defined in a .ini file. With HOOK_QUIT, my custom quit message is shown, but the default one is also shown!
Sincerely,
azteca1998
	
	
	
	
	
 
 
	
	
	
		
	Posts: 254
	Threads: 16
	Joined: Oct 2013
	
Thanks: 3
	Given 21 thank(s) in 18 post(s)
	 
	
	
		I believe  HOOK_PLAYER_DISCONNECT is what you are looking for. Though I don't know if that has been implemented yet. Can someone verify what I've said?
	
	
	
	
	
 
 
	
	
	
		
	Posts: 1,469
	Threads: 57
	Joined: Jul 2012
	
Thanks: 66
	Given 133 thank(s) in 112 post(s)
	 
	
	
		OnPlayerDestroyed is the best AFAIK.
	
	
	
	
	
 
 
	
	
	
		
	Posts: 954
	Threads: 16
	Joined: May 2013
	
Thanks: 68
	Given 112 thank(s) in 93 post(s)
	 
	
	
		Return true for OnPlayerDestroyed to cancel leave message. Why do you want a custom leave message though?
	
	
	
	
	
 
 
	
	
	
		
	Posts: 4,637
	Threads: 115
	Joined: Dec 2011
	
Thanks: 697
	Given 518 thank(s) in 441 post(s)
	 
	
	
		Just the vanilla  STR_Warrior has joined the game. But it didn't look good with the server spawn and the welcome messages.
	
	
	
	
	
 
 
	
	
	
		
	Posts: 2
	Threads: 1
	Joined: Feb 2014
	
Thanks: 0
	Given 0 thank(s) in 0 post(s)
	 
	
	
		Well, I want to change/remove the messages because of the "style" of my server.
Neither HOOK_PLAYER_DESTROYED nor HOOK_DISCONNECT can hide the logout message.
	
	
	
	
	
 
 
	
	
	
		
	Posts: 954
	Threads: 16
	Joined: May 2013
	
Thanks: 68
	Given 112 thank(s) in 93 post(s)
	 
	
	
		You sure you're returning true for the player destroyed hook? Disconnect definitely won't do anything.