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

Client Redirect


Post New Thread Reply   
 
Thread Tools Display Modes
Author
bobbobagan
SourceMod Donor
Join Date: May 2007
Location: New Zealand
Plugin ID:
194
Plugin Version:
1.1a
Plugin Category:
Server Management
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
    16 
    Plugin Description:
    Redirects clients to another server with their permission
    Old 09-25-2007 , 19:11   Client Redirect
    Reply With Quote #1

    Client Redirect v1.1a

    Tested on CS:S and it works.

    I take no credit for this, I have extracted the code from the HLstatsX plugin and modified it for peoples use.

    Thanks to Tobi.

    Admin Flag:
    To use this plugin, admins must have the rcon adminflag

    Screenshots:
    [IMG]http://img217.**************/img217/8148/redirectscreenshotyh7.jpg[/IMG]

    [IMG]http://img480.**************/img480/7946/css20070928105821lk2.jpg[/IMG]

    Cmds:
    Code:
    sm_redirect_version - Plugin Version
     
    sm_redirect <time> <userid> <address> <reason> - asks player to be redirected to specified gameserver
    Eg:
    In console - rcon sm_redirect "10" "100" "60.234.73.177:27017" "Please Join This Server!"
    In chat - /redirect "10" "100" "60.234.73.177:27017" "Please Join This Server!"

    Change Log:
    • 1.1a - Fixed a PrintToChat error.
    • 1.1
    • Added new chat command '/redirect'
    • Added a message telling the admin the command had been sent
    • Made some code changes (Thanks ferret)
    • 1.0 - Initial Release
    Installation:
    redirect.smx - Place in addons/sourcemod/plugins
    (optional) redirect.sp - Place in addons/sourcemod/scripting

    Enjoy!
    Attached Files
    File Type: sp Get Plugin or Get Source (redirect.sp - 6395 views - 2.6 KB)
    __________________

    Last edited by bobbobagan; 03-19-2008 at 05:11. Reason: LOL I put respawn instead of redirect :P
    bobbobagan is offline
    Send a message via Skype™ to bobbobagan
    ferret
    SourceMod Developer
    Join Date: Dec 2004
    Location: Atlanta, GA
    Old 09-25-2007 , 20:25   Re: Client Redirect
    Reply With Quote #2

    You may want to glance at DisplayAskConnectBox(), in Halflife.inc

    It's a stock that wraps the dialog building process.
    __________________
    I'm a blast from the past!
    ferret is offline
    bobbobagan
    SourceMod Donor
    Join Date: May 2007
    Location: New Zealand
    Old 09-25-2007 , 21:01   Re: Client Redirect
    Reply With Quote #3

    Cool, Ill have a look later ;)

    EDIT: Plugin Update
    __________________

    Last edited by bobbobagan; 09-25-2007 at 22:25.
    bobbobagan is offline
    Send a message via Skype™ to bobbobagan
    imported_Anth0ny
    Senior Member
    Join Date: Jan 2005
    Location: Saturn
    Old 09-26-2007 , 02:33   Re: Client Redirect
    Reply With Quote #4

    nnnnice work! =)

    feature request: automatic show redirect or selfkick menu to player IF player have a bad result (KPD) in game (amount must be tuneable) AND NO FREE SLOTS at server.
    __________________
    aka Mad.Eagle
    Creator\Owner\Admin of
    www.megatron.ws
    imported_Anth0ny is offline
    Send a message via ICQ to imported_Anth0ny
    imported_Anth0ny
    Senior Member
    Join Date: Jan 2005
    Location: Saturn
    Old 09-26-2007 , 04:02   Re: Client Redirect
    Reply With Quote #5

    =)

    more detailed explanation: (as requested by PM)

    this plugin give an interactive command for admins now, it allow to redirect users manually only. i offer to make this command more automatic, without admin's hand operations...

    algorithm: make this plugin to work as daemon, and if maxplayers at server is reached (for example 22\22), plugin must make list of players and choose from list who from players have WORST KPD (Kill per Death) result and automatically show redirection menu TO this user.

    At menu only explanation text and 2 options needed:

    explanation text: "You have worst KPD at server. Please join to other our server or go away" (it's example).

    options:

    1. Please redirect me to another server
    2. I'm prefer to go away

    Is it possible?

    This solution allows admins to keep 1 free slots for more advanced users and admins. BUT level of negative KPD must have a config variable "The size of negative value" for tuning (for preventing kick users with minimal but negative KPD).
    __________________
    aka Mad.Eagle
    Creator\Owner\Admin of
    www.megatron.ws

    Last edited by imported_Anth0ny; 09-26-2007 at 04:12.
    imported_Anth0ny is offline
    Send a message via ICQ to imported_Anth0ny
    bobbobagan
    SourceMod Donor
    Join Date: May 2007
    Location: New Zealand
    Old 09-26-2007 , 04:15   Re: Client Redirect
    Reply With Quote #6

    this would only work if you had reserved slots off. And also... it would constantly be asking for the worst player to leave if the server would keep filling back up.

    I was thinking of adding a menu so that you could redirect people easier. (mabye using pred's super menu)
    __________________
    bobbobagan is offline
    Send a message via Skype™ to bobbobagan
    imported_Anth0ny
    Senior Member
    Join Date: Jan 2005
    Location: Saturn
    Old 09-26-2007 , 06:37   Re: Client Redirect
    Reply With Quote #7

    need an automated solution =(
    __________________
    aka Mad.Eagle
    Creator\Owner\Admin of
    www.megatron.ws
    imported_Anth0ny is offline
    Send a message via ICQ to imported_Anth0ny
    bobbobagan
    SourceMod Donor
    Join Date: May 2007
    Location: New Zealand
    Old 09-26-2007 , 23:18   Re: Client Redirect
    Reply With Quote #8

    mabye... Ill see what I can do ;)
    __________________
    bobbobagan is offline
    Send a message via Skype™ to bobbobagan
    imported_Anth0ny
    Senior Member
    Join Date: Jan 2005
    Location: Saturn
    Old 09-27-2007 , 01:58   Re: Client Redirect
    Reply With Quote #9

    note: at my previous post i spoken about config variable "The size of negative value".

    i meant "if variable < 10 - plugin not need to run on player"

    =)
    __________________
    aka Mad.Eagle
    Creator\Owner\Admin of
    www.megatron.ws
    imported_Anth0ny is offline
    Send a message via ICQ to imported_Anth0ny
    manolo4840
    Junior Member
    Join Date: Aug 2007
    Old 09-27-2007 , 08:36   Re: Client Redirect
    Reply With Quote #10

    Hello Guys,

    Ok as you all, I have not much consideration for valve's choice, but thanks god for this compromize

    anyway, I installed the redirect plugin (BTW thanks for this extraction from the Hlxstats one).Server-side It seems to work fine since I can see the [SM request has been sent ..

    But my client doesn't receive any box message. So I think I need to update my css client to the "beta version" (as i read trough forums) BUT

    How the *** do I get such beta version.

    My client is on a windows PC. I usually launch steam trough the shortcut provided.

    Could you point me to the right DOS command ?

    Or tell me the rignt way to get it.

    Or just tell me I'm not thinking right

    Thanks

    PS: sorry If I'm not posting to the right place but my concern is only bounded to this plugin..

    Last edited by manolo4840; 09-27-2007 at 08:43.
    manolo4840 is offline
    Reply



    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 21:04.


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