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

Need Code


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Erdener
Senior Member
Join Date: Apr 2010
Location: Turkey
Old 08-14-2011 , 12:29   Need Code
Reply With Quote #1

Hi guys,

I need code

To buy something in exchange for money from the menu....

EDIT:

and an example explain?
__________________

Last edited by Erdener; 08-14-2011 at 12:32.
Erdener is offline
neutron
Member
Join Date: Jul 2011
Location: Turkey
Old 08-14-2011 , 14:58   Re: Need Code
Reply With Quote #2

PHP Code:
#include <amxmodx>
#include <fun>
#include <amxmisc>
#include <hamsandwich>
#include <cstrike>


new fiyat

public plugin_init() {
fiyat    register_cvar("satilcak-sey""16000")
}

case 
1: {
            new 
user_cash cs_get_user_money(id)
            new 
money_cost get_pcvar_num(fiyat)
            if (
user_cash money_cost)
            {
                
client_print(idprint_chat"[Neutron] paran yok oc")
                return 
PLUGIN_HANDLED
            
}
            else if (
user_cash >= money_cost)
            {
               
client_print(id,print_chat," aa satin aldin amk paran varmis")
                
cs_set_user_money(iduser_cash money_cost)
            }
        } 
al la optik
__________________
neutron is offline
Send a message via Skype™ to neutron
Erdener
Senior Member
Join Date: Apr 2010
Location: Turkey
Old 08-14-2011 , 18:27   Re: Need Code
Reply With Quote #3

Thnx.
__________________

Last edited by Erdener; 08-15-2011 at 02:08.
Erdener 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 03:24.


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