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 20 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 127 thank(s) in 108 post(s)
OnPlayerDestroyed is the best AFAIK.
Posts: 952
Threads: 16
Joined: May 2013
Thanks: 66
Given 105 thank(s) in 89 post(s)
Return true for OnPlayerDestroyed to cancel leave message. Why do you want a custom leave message though?
Posts: 4,628
Threads: 115
Joined: Dec 2011
Thanks: 693
Given 494 thank(s) in 423 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: 952
Threads: 16
Joined: May 2013
Thanks: 66
Given 105 thank(s) in 89 post(s)
You sure you're returning true for the player destroyed hook? Disconnect definitely won't do anything.