Cs 1.6 Level System - Plugin
// HP bonus per level new const HP_BONUS[] = 0, 10, 15, 20, 25, 30, 35, 40, 45, 50, 60 // Damage multiplier (1.0 = normal) new const Float:DAMAGE_MULT[] = 1.0, 1.0, 1.05, 1.10, 1.15, 1.20, 1.25, 1.30, 1.35, 1.40, 1.50 // Speed bonus (float) new const Float:SPEED_BONUS[] = 1.0, 1.0, 1.02, 1.04, 1.06, 1.08, 1.10, 1.12, 1.14, 1.16, 1.20
// ===== GLOBALS ===== new g_iLevel[33], g_iXP[33], g_iKills[33], g_iDeaths[33] new g_iVault new g_MsgHUD new g_pCvarEnable cs 1.6 level system plugin
szList[0] = 0 add(szList, 1023, "=== TOP 5 PLAYERS ===") for(new i = 0; i < min(5, count); i++) // HP bonus per level new const HP_BONUS[]
new requiredXP = BASE_XP_LEVEL[level+1] if(g_iXP[id] >= requiredXP) i++) for(new j = i+1
// Simple bubble sort for(new i = 0; i < count-1; i++) for(new j = i+1; j < count; j++) if(values[j] > values[i]) swap(keys[i], keys[j]) swap(values[i], values[j])