Raised This Month: $32 Target: $400
 8% 

[ANY]Admin force player reconnect


Post New Thread Reply   
 
Thread Tools Display Modes
Author
htcarnage
Senior Member
Join Date: Oct 2009
Plugin ID:
3514
Plugin Version:
1.1.2
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Old 02-06-2013 , 16:11   [ANY]Admin force player reconnect
    Reply With Quote #1

    This is my first plugin release. I've tested it on my servers, and I haven't found any errors. Please post anything you find!

    DESCRIPTION
    This plugin allows Admins with the kick flag to force players to reconnect. It has a cvar to change the time delay before reconnecting the player. It prints a center message to the player informing them of the impending reconnect, which is also configureable with a cvar.

    CVarssm_reconnect <#userid|name|@all>
    sm_reconnect_delay 3 //Must be >= 0
    sm_reconnect_announce 1 // 0= Dont announce to player; 1= Print Center Text; 2=Print Green Chat; 3=Print Hint Text



    REQUIREMENTS
    SourceMod 1.4.4+

    CHANGE LOG
    Spoiler


    TO DO LIST

    None at the moment.

    INSTALLATION
    Simply place forcereconnect.smx in your sourcemod/plugins folder, and change the map.
    Then, adjust the cvars to your liking.

    64
    Attached Files
    File Type: sp Get Plugin or Get Source (forcereconnect.sp - 1067 views - 2.2 KB)

    Last edited by htcarnage; 08-14-2013 at 19:20.
    htcarnage is offline
    UMTeleporter
    SourceMod Donor
    Join Date: Feb 2009
    Old 02-06-2013 , 16:17   Re: [ANY]Admin force player reconnect
    Reply With Quote #2

    #include <sdktools>

    .... etc

    ReconnectClient(client)

    no need for ClientCommand(client, "retry");

    Last edited by UMTeleporter; 02-06-2013 at 16:18.
    UMTeleporter is offline
    htcarnage
    Senior Member
    Join Date: Oct 2009
    Old 02-06-2013 , 16:27   Re: [ANY]Admin force player reconnect
    Reply With Quote #3

    Although that method works, it actually turns the clients screen black and does not show the loading bar as they reconnect. It doesn't give the client the option to cancel the reconnection and could make them think their game has crashed, hence the workaround.
    htcarnage is offline
    htcarnage
    Senior Member
    Join Date: Oct 2009
    Old 08-14-2013 , 19:20   Re: [ANY]Admin force player reconnect
    Reply With Quote #4

    Update
    1.1.2 Code optimization and fixed error when clients disconnect before the plugin can reconnect them
    __________________
    htcarnage is offline
    7106
    Senior Member
    Join Date: Jun 2013
    Old 05-01-2015 , 04:29   Re: [ANY]Admin force player reconnect
    Reply With Quote #5

    not workin' on cs go
    7106 is offline
    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 01:39.


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