Raised This Month: $ Target: $400
 0% 

[REQ]Add Specific Amount of Money Every Round Start


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
wickedd
Veteran Member
Join Date: Nov 2009
Old 11-08-2017 , 06:20   Re: [REQ]Add Specific Amount of Money Every Round Start
Reply With Quote #3

Quote:
Originally Posted by ZEDD_Intensity View Post
Greetings,

Almost over 38 hours with no replies. Makes me doubt myself if I did something wrong in my main post.

I'd still await a reply. If there's any missing information, I'd be happy to update it.

Regards,
ZEDD
Damn your impatient, almost 38 hours and you're bumping your thread. Just because you posted a thread doesn't mean we have to fulfill your request. So have some patience and maybe someone will help you since it's a simple request.

Edit: Do you want to set the players money or do you want to add it to their money?

Set their money:
1st Round - $800
2nd Round - $1600
3rd Round - $2400

Add to their money
1st Round - player has $800 + $800 = $1600
2nd Round - player has $500 + $1600 = $2100
3rd Round - player has $1300 +$2400 = $3700

Edit 2: Here you go, this will add or set the player money. Check the cvar
PHP Code:
#include < amxmodx >
#include < cstrike >
#include < hamsandwich >

new pMoneypAddSet
new gRound 0;

public 
plugin_init( )
{
    
register_plugin"MONEY""1.0""ZEDD" 
        
    
register_event"TextMsg""rRestart""a""2&#Game_C""2&#Game_w" 
    
register_event"HLTV""newRound""a""1=0""2=0" 
    
    
RegisterHamHam_CS_RoundRespawn"player""pSpawn"
    
    
pAddSet register_cvar"add_set_money""1" // 1 = Add money 2 = Set player money
    
pMoney register_cvar"round_money""800" )
}

public 
rRestart( )
{
    
gRound 0
}

public 
newRound( )
{
    
gRound++
}

public 
pSpawnid )
{
    new 
moneymoney cs_get_user_moneyid )
    
    if( 
gRound >= )
    {
        switch( 
get_pcvar_numpAddSet ) )
        {
            case 
1:
            {
                
cs_set_user_moneyidmoney get_pcvar_numpMoney ) * gRound )
            }
            case 
2:
            {            
                
cs_set_user_moneyidget_pcvar_numpMoney ) * gRound )
            }        
        }
    }

__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.

Last edited by wickedd; 11-09-2017 at 09:29.
wickedd is offline
 



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 17:21.


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