Hello!
I've got some problems with my code.
Let's try to explain this, (example) you need 500 XP for level 1, you receive 100 XP for kill which means you need 5 kills for level 1. Problem is, when i get 500 XP or even more (i went to 2000+ xp) i didn't received level. I did some register_clcmd to check my xp and level and no matter how much XP i've got, i don't have permission to take a knife. I simply don't get any levels no matter how much XP i've got.
Next problem is, when a player type kill in console, they receive XP (100, like a simple kill). But when they die from (example) jumping from heights and die they don't get XP (which is good) but confuses me why they get XP from typing kill in console.
Next problem is, when i take knife and it displays my v_model to me after next round (or switching from weapon to knife) a default knife will pop up instead of skin i've took.... I think i need to do CurWeapon here but i am not pretty sure how is that working, so can anyone help me fix these problems ?
register_clcmd("say /mojlevel", "MojLevel")
register_clcmd("say /mojxp", "MojXP")
public MojLevel(id)
{
ColorChat(id, GREEN, "^1[^4Sleepless^1] Vas trenutni level je: ^3%i", PlayerLevel[id])
}
public MojXP(id)
{
ColorChat(id, GREEN, "^1[^4Sleepless^1] Vas trenutni XP je ^3%i", PlayerXP[id])
}
***THESE ARE IN CODE, AND TRY ANSWERING ALL THE QUESTIONS INSTEAD OF 1, BUT ANY HELP IS WELCOME***