Raised This Month: $ Target: $400
 0% 

Split 2 simple codes


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Ardonicek
Senior Member
Join Date: Feb 2013
Location: My home
Old 08-25-2013 , 13:12   Split 2 simple codes
Reply With Quote #1

Hello, i want you to add this
PHP Code:
{
        if(
cs_get_user_money(id)>10000)
        {
            
bank[id]+= cs_get_user_money(id) - 10000
            cs_set_user_money
(id,10000)
        }
        if(
cs_get_user_money(id)<10000)
        {
            if(
bank[id] < 10000 cs_get_user_money(id))
            {
                
cs_set_user_money(id,cs_get_user_money(id)+bank[id])
                
bank[id]=0
            
}
            else
            {
                
bank[id]-=  10000 cs_get_user_money(id)
                
cs_set_user_money(id,10000)
            }
        }
        
set_hudmessage(025500.70.8706.00.10.10.2next_hudchannel(id) )
        
show_hudmessage(id,"%L",id,"MSG_BANK",bank[id])

To this:

PHP Code:
public ShowHud(id

    new 
szText[555 char
    if(
Level[id] == 200
    { 
         
formatex(szTextsizeof(szText) -1"[%s]^n[Dalsi Level: %s]^n[XP : %i]^n[Kupenie XP = /buyxp]"Prefix[Level[id]], Prefix[Level[id] +1], eXP[id])  
    } 
    else 
    { 
        
formatex(szTextsizeof(szText) -1"Verzia: 1.3.3^n^n[%s]^n[XP : %i / %i]^n[Money: COSKORO] [Kupenie XP = /buyxp]"Prefix[Level[id]], eXP[id], LevelsLevel[id]]) 
    } 
    
set_hudmessage(128185110.010.2002.05.02.0_1)
    
show_hudmessage(idszText)

__________________
Latest plugin: dHUD Round | Timeleft

Last edited by Ardonicek; 08-25-2013 at 13:27.
Ardonicek is offline
Send a message via ICQ to Ardonicek Send a message via Skype™ to Ardonicek
 


Thread Tools
Display Modes

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 18:48.


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