Raised This Month: $95 Target: $400
 23% 

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 , 13: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 - 5836 views - 677 Bytes)
__________________

Last edited by hleV; 07-03-2009 at 14:57. Reason: Updated to 1.4.
hleV is offline
Nextra
Veteran Member
Join Date: Apr 2008
Location: Germany
Old 04-19-2009 , 13: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 13:22.
Nextra is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 04-19-2009 , 13: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 , 13: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
M1R0n,M'
Senior Member
Join Date: Jan 2009
Location: Lithuania
Old 04-19-2009 , 14:07   Re: Start Money Fix 1.2
Reply With Quote #5

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 , 14:11   Re: Start Money Fix 1.2
Reply With Quote #6

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 , 14:15   Re: Start Money Fix 1.3
Reply With Quote #7

Updated.

Anyway, what's with webcompiler?
__________________
hleV is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 04-19-2009 , 14:19   Re: Start Money Fix 1.3
Reply With Quote #8

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?
__________________

Last edited by xPaw; 04-19-2009 at 14:22.
xPaw is offline
tuty
Veteran Member
Join Date: Jul 2008
Location: Romania
Old 04-20-2009 , 04:45   Re: Start Money Fix 1.3
Reply With Quote #9

Nice job hleV
__________________
All my lifetime work is there (includin private big ass plugins and stuff) https://github.com/tutyamxx

tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 04-20-2009 , 10:38   Re: Start Money Fix 1.3
Reply With Quote #10

Quote:
Originally Posted by xPaw View Post
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.
__________________
hleV is offline
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 01:58.


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