Cs 1.6 Level System Plugin Site
// Events register_event("DeathMsg", "EventDeath", "a") register_logevent("EventRoundStart", 2, "1=Round_Start")
register_plugin(PLUGIN, VERSION, AUTHOR) cs 1.6 level system plugin
client_print(id, print_chat, "=== Level %d ===", lvl) client_print(id, print_chat, "XP: %d / %d", xp, (lvl >= MAX_LEVEL) ? xp : nextXP) if(needed > 0) client_print(id, print_chat, "Needed for next level: %d XP", needed) client_print(id, print_chat, "K/D: %d / %d", g_iKills[id], g_iDeaths[id]) // Events register_event("DeathMsg"
// ===== UTILITY ===== public EventRoundStart() "=== Level %d ==="
for(new i = 1; i <= MAX_PLAYERS; i++) if(is_user_alive(i)) ApplyLevelBonuses(i)
new szAuth[35], szData[128] get_user_authid(id, szAuth, 34) format(szData, 127, "%d %d %d %d", g_iLevel[id], g_iXP[id], g_iKills[id], g_iDeaths[id]) nvault_set(g_iVault, szAuth, szData)