Raised This Month: $154 Target: $400
 38% 

Spectate Hop for Money Prevention


Post New Thread Reply   
 
Thread Tools Display Modes
Author
FlyingMongoose
Veteran Member
Join Date: Mar 2004
Plugin ID:
426
Plugin Version:
1.0.0
Plugin Category:
General Purpose
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
    1 
    Plugin Description:
    Prevents spectator hop for money abuse.
    Old 06-15-2008 , 15:44   Spectate Hop for Money Prevention
    Reply With Quote #1

    Quite often I encounter people "spectator hopping" to try to restore their money to whatever mp_startmoney is set to. This honestly has become a problem and is very very very annoying. So I decided to do something about it.

    It provides 2 options of prevention
    • 1: Preserve cash
      • Preserves the value of money upon a player's death. Upon rejoining a team or spawning it will re-apply this value.
    • 2: Set cash
      • This forces a cash value upon anyone who attempts this, by default 0, but this is not enabled by default.
    CVARS:
    • sm_spechoppunish
      • 0 = Off
      • 1 = Preserve cash
      • 2 = Set cash
    • sm_spechopmoneyvalue
      • Sets the cash for when a player rejoins a team or respawns after "spectator hopping"
      • Default: 0
      • Allowed Values: Anywhere from 1 to 16000

    CHANGELOG:
    • 1.0.0
      • Released
    INSTALLATION:
    • Click "Get Plugin" at the bottom of the post and save to your addons\sourcemod\plugins directory

    Thank you to SteamFriends for allowing me to test this on their servers.

    This plugin is not directly based on ^BuGs^'s http://forums.alliedmods.net/showthread.php?t=57405 but performs similar operations.
    Attached Files
    File Type: sp Get Plugin or Get Source (specmoney.sp - 3306 views - 4.7 KB)
    __________________
    Please do NOT PM for support.

    Only ask for support in plugin threads.

    TunedChaos.com - Precision Tuned Game Servers

    Last edited by FlyingMongoose; 07-06-2008 at 14:23.
    FlyingMongoose is offline
    LocutusH
    Senior Member
    Join Date: Dec 2007
    Location: Hungary
    Old 06-16-2008 , 05:26   Re: Spectate Hop for Money Prevention
    Reply With Quote #2

    I assume the preserve cash option would render the bet module useless?
    Since it gives them money also while dead.
    __________________
    LocutusH is offline
    DJ Tsunami
    DJ Post Spammer
    Join Date: Feb 2008
    Old 06-16-2008 , 05:52   Re: Spectate Hop for Money Prevention
    Reply With Quote #3

    This plugin shouldn't render the bet plugin useless, because it only applies to spectate. You shouldn't place a bet and then go to spectate, expecting you will still get the money if you win the bet.
    __________________
    DJ Tsunami is offline
    FlyingMongoose
    Veteran Member
    Join Date: Mar 2004
    Old 06-16-2008 , 21:04   Re: Spectate Hop for Money Prevention
    Reply With Quote #4

    As Tsunami pointed out this shouldn't do anything to render other money modifying plugins useless...so long as you're not spectator hopping in the process. It's purely conditional on "spectator"
    __________________
    Please do NOT PM for support.

    Only ask for support in plugin threads.

    TunedChaos.com - Precision Tuned Game Servers
    FlyingMongoose is offline
    teflonic
    New Member
    Join Date: Apr 2008
    Location: Sweden
    Old 06-17-2008 , 06:42   Re: Spectate Hop for Money Prevention
    Reply With Quote #5

    Cant download attached file - > Plugin failed to compile! Please try contacting the author. //Teflonic
    teflonic is offline
    Send a message via MSN to teflonic
    FlyingMongoose
    Veteran Member
    Join Date: Mar 2004
    Old 06-17-2008 , 17:29   Re: Spectate Hop for Money Prevention
    Reply With Quote #6

    First link fixed. Tsunami, you can remove your fix.
    __________________
    Please do NOT PM for support.

    Only ask for support in plugin threads.

    TunedChaos.com - Precision Tuned Game Servers
    FlyingMongoose is offline
    FlyingMongoose
    Veteran Member
    Join Date: Mar 2004
    Old 06-19-2008 , 19:52   Re: Spectate Hop for Money Prevention
    Reply With Quote #7

    Small bug fix, does not warrant version number change.

    This is to fix people "spec hopping twice" to get around the functionality of this plugin.
    __________________
    Please do NOT PM for support.

    Only ask for support in plugin threads.

    TunedChaos.com - Precision Tuned Game Servers
    FlyingMongoose is offline
    FlyingMongoose
    Veteran Member
    Join Date: Mar 2004
    Old 06-21-2008 , 07:46   Re: Spectate Hop for Money Prevention
    Reply With Quote #8

    One last final bug fix, this should work indefinitely on join team or on spawn. It should always display properly. It will only apply on non-first-joined. Again, no version number change warranted (it was an aesthetics update)
    __________________
    Please do NOT PM for support.

    Only ask for support in plugin threads.

    TunedChaos.com - Precision Tuned Game Servers
    FlyingMongoose is offline
    MuXeu
    Member
    Join Date: Mar 2004
    Location: Kharkov UA
    Old 06-29-2008 , 13:01   Re: Spectate Hop for Money Prevention
    Reply With Quote #9

    Please, fix on the first post m_spechopmoneyvalue to sm_spechopmoneyvalue
    Could you add the future than score restore too on rejoin?
    __________________
    MuXeu is offline
    Send a message via ICQ to MuXeu
    MuXeu
    Member
    Join Date: Mar 2004
    Location: Kharkov UA
    Old 07-04-2008 , 05:58   Re: Spectate Hop for Money Prevention
    Reply With Quote #10

    Code:
    L 07/03/2008 - 21:45:54: Info (map "de_cpl_mill") (file "errors_20080703.log")
    L 07/03/2008 - 21:45:54: [SM] Native "KillTimer" reported: Invalid timer handle 2e500213 (error 3)
    L 07/03/2008 - 21:45:54: [SM] Displaying call stack trace for plugin "specmoney.smx":
    L 07/03/2008 - 21:45:54: [SM]   [0]  Line 164, specmoney.sp::OnMapStart()
    L 07/03/2008 - 21:45:54: [SM] Native "KillTimer" reported: Invalid timer handle 351a024a (error 1)
    L 07/03/2008 - 21:45:54: [SM] Displaying call stack trace for plugin "specmoney.smx":
    L 07/03/2008 - 21:45:54: [SM]   [0]  Line 174, specmoney.sp::OnClientAuthorized()
    __________________
    MuXeu is offline
    Send a message via ICQ to MuXeu
    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 02:45.


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