Raised This Month: $ Target: $400
 0% 

[help] Check Rank


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
schmurgel1983
Veteran Member
Join Date: Aug 2006
Location: Germany
Old 03-16-2011 , 05:09   Re: [help] Check Rank
Reply With Quote #2

sample
PHP Code:
public CheckLevel(id)
{
    if( 
gXP[id] >= RANK[gLevel[id]] )
    {
    
client_cmd(id"spk cod4/levelup.wav")
    
ColorChat(idGREEN"^x04[COD:MW2]^x01 Congratulations! You have been promoted to:^x04 %s^x01."RANKNAMES[gLevel[id]+1]);
    
gLevel[id]++;
    }
    
// Commander is Rank 54
    
if( gLevel[id] == 54 )
        
cs_set_user_money(idcs_get_user_money(id) + 10000)

if u want more levels can have recieve money use a switch query
__________________

Working on:
nothing
schmurgel1983 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 14:39.


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