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(szRankName, charsmax(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