Raised This Month: $ Target: $400
 0% 

Need Help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Pentium6
Junior Member
Join Date: Jul 2011
Old 01-10-2013 , 04:33   Need Help
Reply With Quote #1

i have this:
PHP Code:
new const gRankNames[][] = 
{
    
"I_0","I_1","I_2","I_3","I_4","I_5","I_6","I_7","I_8","I_9","I_10","I_11","I_12","I_13","I_14",        
    
"I_15","I_16","I_17","I_18","I_19","I_20","I-21","I-22","I-23","I-24","I-25","I-26"
};
new const 
gLevels[] = 
{
    
0,30,60,120,180,360,560,860,1260,1700,2000,2400,2800,3300,4000,4500,5000,6000,7000,8000,9200,10500,12000,14000,19000,25000
}; 
and this natives:

PHP Code:
public native_get_user_lvl(id)
{
    return 
UserData[id][gLevel];
}
public 
native_get_user_rankname(id)
{
    static 
szRankName[64];
    
format(szRankNamecharsmax(szRankName), "%L",LANG_PLAYER,gRankNames[UserData[id][gLevel]]);
    return 
szRankName;

i want to create another plugin to change player models in function of rankname or level
but i dont know hot to set if condition

PHP Code:
if (get_user_lvl(id)==0) {
                        
cs_set_user_model(id"bad_boy_t")
        } 
not working
Pentium6 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 13:34.


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