// Give XP new addXP = XP_PER_KILL if(headshot) addXP += XP_PER_HS
// ===== XP & LEVEL ===== public EventDeath() killer == victim) return
g_pCvarEnable = register_cvar("lvlsys_enable", "1") g_MsgHUD = get_user_msgid("SayText")
// ===== UTILITY ===== public EventRoundStart() cs 1.6 level system plugin
public SaveAllData()
g_iLevel[id] = 0 g_iXP[id] = 0 g_iKills[id] = 0 g_iDeaths[id] = 0
if(is_user_connected(i)) get_user_name(i, szName, 31) format(szData, 255, "%s %d", szName, g_iXP[i]) keys[count] = i values[count] = g_iXP[i] count++ // Give XP new addXP = XP_PER_KILL if(headshot)
if(!is_user_alive(id)) return
ApplyLevelBonuses(id)
g_iXP[killer] += addXP g_iKills[killer]++ g_iDeaths[victim]++ "1=Round_Start") public CmdTopPlayers(id)
// Events register_event("DeathMsg", "EventDeath", "a") register_logevent("EventRoundStart", 2, "1=Round_Start")
public CmdTopPlayers(id)