Raised This Month: $ Target: $400
 0% 

BuyMenu


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
naven
Veteran Member
Join Date: Jun 2008
Location: Poland, Cieszyn
Old 08-11-2010 , 07:33   Re: BuyMenu
Reply With Quote #3

GX, remember about money bug...
PHP Code:
case //gravity
        
{
        if (
cs_get_user_money(id) < 1000){
        
get_user_name(idname31)
        
ColorChat(idGREEN"%s ^x03nie stac cie na to!"name//not enough money
        
return PLUGIN_HANDLED;
    }
        if (!
is_user_alive(id)){
        
ColorChat(idGREEN"%s ^x03musisz zyc mozgu!"name//need to be alive
        
return PLUGIN_HANDLED;
    }
        if (
cs_get_user_money(id) >= 1000 )
        
get_user_name(idname31)
        
ColorChat(0GREEN"%s ^x03wybral grawitacje 700!"name)//grav 700 bought
        
set_user_gravity(id0.87)                //gravity 700= 0.87
        
cs_set_user_money(id cs_get_user_money(id) - 10000)
    } 
Example from my very old never used plugin.
__________________
naven.com.pl
"At the end of the day, there are always going to be mental disorders and people who cause violence for no other reason than the fact that they're fucked up and lost. And all we can do is try to learn from it." Corey Taylor.
naven 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 21:55.


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