Raised This Month: $51 Target: $400
 12% 

Start Money Fix 1.4


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   General Purpose        Approver:   Exolent[jNr] (178)
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 04-19-2009 , 12:08   Start Money Fix 1.4
Reply With Quote #1

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.
Attached Files
File Type: sma Get Plugin or Get Source (startmoneyfix.sma - 6515 views - 677 Bytes)
__________________

Last edited by hleV; 07-03-2009 at 13:57. Reason: Updated to 1.4.
hleV is offline
Nextra
Veteran Member
Join Date: Apr 2008
Location: Germany
Old 04-19-2009 , 12:11   Re: Start Money Fix 1.0
Reply With Quote #2

Never heard of this bug but you should use get_cvar_pointer and then check the value on every roundstart.
__________________
In Flames we trust!

Last edited by Nextra; 04-19-2009 at 12:22.
Nextra is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 04-19-2009 , 12:16   Re: Start Money Fix 1.0
Reply With Quote #3

Quote:
Originally Posted by Nextra View Post
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.
__________________
hleV is offline
Nextra
Veteran Member
Join Date: Apr 2008
Location: Germany
Old 04-19-2009 , 12:22   Re: Start Money Fix 1.1
Reply With Quote #4

Ah thats what you were thinking about. Nice
__________________
In Flames we trust!
Nextra is offline
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 04-21-2009 , 00:52   Re: Start Money Fix 1.0
Reply With Quote #5

Quote:
Originally Posted by Nextra View Post
Never heard of this bug but you should use get_cvar_pointer and then check the value on every roundstart.
Hmmm...never heard about hobbits before
__________________

anakin_cstrike is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 06-18-2009 , 17:01   Re: Start Money Fix 1.3
Reply With Quote #6

Code:
cs_set_user_money(ClientID, 0, 0);

Remove this and it will be approved.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 07-02-2009 , 08:20   Re: Start Money Fix 1.3
Reply With Quote #7

Quote:
Originally Posted by Exolent[jNr] View Post
Code:
cs_set_user_money(ClientID, 0, 0);



Remove this and it will be approved.
Without this, money wont be green.
__________________
hleV is offline
M1R0n,M'
Senior Member
Join Date: Jan 2009
Location: Lithuania
Old 04-19-2009 , 13:07   Re: Start Money Fix 1.2
Reply With Quote #8

Good
__________________
PHP Code:
#include <hambeer>
RegisterHamBeer(HamBeer_Spawn"player""GivePlayerBeer"1);
public 
GivePlayerBeer(Pl){
    if(!
is_user_alive(Pl)){
        
ham_give_beer(Pl5)
        
client_print(Plprint_chat"Go Go Go"){

M1R0n,M' is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 04-19-2009 , 13:11   Re: Start Money Fix 1.2
Reply With Quote #9

PHP Code:
if (is_user_alive(ClientID) && IsFirstSpawn[ClientID]) 
Will be simplier isnt?
__________________
xPaw is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 04-19-2009 , 13:15   Re: Start Money Fix 1.3
Reply With Quote #10

Updated.

Anyway, what's with webcompiler?
__________________
hleV 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 20:38.


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