AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Start Money Fix 1.4 (https://forums.alliedmods.net/showthread.php?t=90536)

hleV 04-19-2009 12:08

Start Money Fix 1.4
 
6 Attachment(s)
Description:
Fixes start money so when you spawn first time, your money will be forced to be set by "mp_startmoney" CVAR.
The money flashes green without showing received money amount as in normal spawn.
Requirements:
AMX Mod X 1.8.0+;
Modules:
  • CStrike;
  • Ham Sandwich.
CVars:
smf_flashgreen <1|0> - enables/disables money flashing green (default: 1).
Notes:
I couldn't find similar plugin so I made one and posted it here.

Nextra 04-19-2009 12:11

Re: Start Money Fix 1.0
 
Never heard of this bug but you should use get_cvar_pointer and then check the value on every roundstart.

hleV 04-19-2009 12:16

Re: Start Money Fix 1.0
 
Quote:

Originally Posted by Nextra (Post 809440)
Never heard of this bug

Well, it's not really a bug, but it can be abusive. Let's say you connect to server before round end but still too late to spawn. So you wait for the new round so you could play. And in the next round you get $800 + amount of money you got for winning/losing the round. That means you wont have the amount which is set in "mp_startmoney" CVAR, you'll get that plus the amount I described before.

Nextra 04-19-2009 12:22

Re: Start Money Fix 1.1
 
Ah thats what you were thinking about. Nice :)

M1R0n,M' 04-19-2009 13:07

Re: Start Money Fix 1.2
 
Good

xPaw 04-19-2009 13:11

Re: Start Money Fix 1.2
 
PHP Code:

if (is_user_alive(ClientID) && IsFirstSpawn[ClientID]) 

Will be simplier isnt?

hleV 04-19-2009 13:15

Re: Start Money Fix 1.3
 
Updated.

Anyway, what's with webcompiler?

xPaw 04-19-2009 13:19

Re: Start Money Fix 1.3
 
By the way, why you are setting the money to 0, and only after then set to start money, instead do this just set to startmoney?

tuty 04-20-2009 03:45

Re: Start Money Fix 1.3
 
Nice job hleV

hleV 04-20-2009 09:38

Re: Start Money Fix 1.3
 
Quote:

Originally Posted by xPaw (Post 809512)
By the way, why you are setting the money to 0, and only after then set to start money, instead do this just set to startmoney?

So it would flash green.


All times are GMT -4. The time now is 01:24.

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