Raised This Month: $ Target: $400
 0% 

Need help witch cost


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
TitANious
Veteran Member
Join Date: Feb 2009
Location: Denmark
Old 06-08-2009 , 08:43   Re: Need help witch cost
Reply With Quote #5

Something like
PHP Code:
        case 1:
        {
            new 
iCost 3000
            
if( cs_get_user_money id ) >= iCost )
            {
                
cs_set_user_money idcs_get_user_money id ) - iCost )
                
client_printcolor(id"/gItem/y: /ctrExtra Grenades");
                
client_printcolor(id"/gDescription/y: /ctrGives an Extra Grenades");
                
give_item(id"weapon_hegrenade")
                
give_item(id"weapon_smokegrenade")
                
give_item(id"weapon_flashbang")
                
give_item(id"weapon_flashbang")
            }
            else
            {
                
client_print idprint_chat"Not enough money, you need %d"iCost)
            }
        } 
__________________
I dislike this.

"A sneeze never comes alone!" <-- Important to remember.
TitANious is offline
Send a message via MSN to TitANious
 



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 23:34.


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