AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   Spectate Hop for Money Prevention (https://forums.alliedmods.net/showthread.php?t=72775)

FlyingMongoose 06-15-2008 15:44

Spectate Hop for Money Prevention
 
1 Attachment(s)
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.

LocutusH 06-16-2008 05:26

Re: Spectate Hop for Money Prevention
 
I assume the preserve cash option would render the bet module useless?
Since it gives them money also while dead.

DJ Tsunami 06-16-2008 05:52

Re: Spectate Hop for Money Prevention
 
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.

FlyingMongoose 06-16-2008 21:04

Re: Spectate Hop for Money Prevention
 
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"

teflonic 06-17-2008 06:42

Re: Spectate Hop for Money Prevention
 
Cant download attached file - > Plugin failed to compile! Please try contacting the author. //Teflonic

FlyingMongoose 06-17-2008 17:29

Re: Spectate Hop for Money Prevention
 
First link fixed. Tsunami, you can remove your fix.

FlyingMongoose 06-19-2008 19:52

Re: Spectate Hop for Money Prevention
 
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.

FlyingMongoose 06-21-2008 07:46

Re: Spectate Hop for Money Prevention
 
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)

MuXeu 06-29-2008 13:01

Re: Spectate Hop for Money Prevention
 
Please, fix on the first post m_spechopmoneyvalue to sm_spechopmoneyvalue
Could you add the future than score restore too on rejoin?

MuXeu 07-04-2008 05:58

Re: Spectate Hop for Money Prevention
 
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()



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

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