Raised This Month: $ Target: $400
 0% 

[TF2] Old Disconnect Message


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Mr_panica
Senior Member
Join Date: Jan 2017
Location: Russia, Saint-Petersburg
Plugin ID:
7699
Plugin Version:
1.0.0
Plugin Category:
General Purpose
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Returns the reason why the player left the server.
    Old 06-23-2021 , 09:09   [TF2] Old Disconnect Message
    Reply With Quote #1

    Simply returns the reason the player left the server.
    I'm not very knowledgeable about events, but that shouldn't break your tools you use on players when they exit.
    Attached Files
    File Type: sp Get Plugin or Get Source (OldDisconnectMessage.sp - 126 views - 477 Bytes)
    __________________
    Sorry for my English.

    Last edited by Mr_panica; 06-26-2021 at 07:08.
    Mr_panica is offline
    Windle
    Member
    Join Date: Feb 2014
    Location: Lancashire
    Old 06-26-2021 , 06:25   Re: [TF2] Old Disconnect Message
    Reply With Quote #2

    Hey. I've tested this on my TF2 server, and it looks like, when someone disconnects, it displays: "X has left the server", and then also on the line below: "X has left the server (Disconnected by user)". So basically there are now two disconnect messages. One generic and one specific to why they left?

    -Windle

    Last edited by Windle; 06-26-2021 at 06:26.
    Windle is offline
    Send a message via MSN to Windle
    Teamkiller324
    Senior Member
    Join Date: Feb 2014
    Location: m_bTeamKiller
    Old 06-26-2021 , 06:48   Re: [TF2] Old Disconnect Message
    Reply With Quote #3

    I edited the plugin with author information & client validity check and also so it actually blocks the default message.
    Attached Files
    File Type: sp Get Plugin or Get Source (OldDisconnectMessage.sp - 164 views - 1.1 KB)
    __________________
    Steam - GitHub - Tk Libraries - Updater
    No private plugin requests.

    Last edited by Teamkiller324; 06-26-2021 at 06:48.
    Teamkiller324 is offline
    Send a message via Skype™ to Teamkiller324
    Mr_panica
    Senior Member
    Join Date: Jan 2017
    Location: Russia, Saint-Petersburg
    Old 06-26-2021 , 07:14   Re: [TF2] Old Disconnect Message
    Reply With Quote #4

    Quote:
    Originally Posted by Teamkiller324 View Post
    I edited the plugin with author information & client validity check and also so it actually blocks the default message.
    Yes, I'm not very good at events)
    Is it really necessary to check the validity of a player when he leaves?
    How can something go wrong?
    __________________
    Sorry for my English.
    Mr_panica is offline
    Teamkiller324
    Senior Member
    Join Date: Feb 2014
    Location: m_bTeamKiller
    Old 06-26-2021 , 09:15   Re: [TF2] Old Disconnect Message
    Reply With Quote #5

    Otherwise you can at times get errors complaining invalid client index
    __________________
    Steam - GitHub - Tk Libraries - Updater
    No private plugin requests.
    Teamkiller324 is offline
    Send a message via Skype™ to Teamkiller324
    Teamkiller324
    Senior Member
    Join Date: Feb 2014
    Location: m_bTeamKiller
    Old 06-26-2021 , 09:17   Re: [TF2] Old Disconnect Message
    Reply With Quote #6

    example if you join and leave shortly afterwards, it will show in console invalid client index error due to it wasn't able to get the clients index in time.
    __________________
    Steam - GitHub - Tk Libraries - Updater
    No private plugin requests.
    Teamkiller324 is offline
    Send a message via Skype™ to Teamkiller324
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 09:00.


    Powered by vBulletin®
    Copyright ©2000 - 2022, vBulletin Solutions, Inc.
    Theme made by Freecode