Raised This Month: $ Target: $400
 0% 

cvars are bitches


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
laziboi72
Senior Member
Join Date: Aug 2009
Location: deathrun_temple
Old 12-22-2009 , 13:02   Re: cvars are bitches
Reply With Quote #8

PHP Code:
if(money>=get_pcvar_num(armor_cost);
            { 
                
cs_set_user_money(idmoney get_pcvar_num(CVAR_COST));
                 
                if( 
is_user_aliveid ) )  
                    
cs_set_user_armor(id100CS_ARMOR_VESTHELM)  
                 
                
client_print(idprint_chat"[Scoutz Knviez] You bought 100 armor for $%i"get_pcvar_num(CVAR_COST)); 
            } 
you need to use get_pcvar_num("cvarcost") and replace your hard coded numbers
__________________
Taking a break from modding dunno when i will be back

FAIL, RIGHT HERE

Last edited by laziboi72; 12-22-2009 at 13:04.
laziboi72 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 04:10.


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