heavy_cur = UI.GetValue ("Rage", "HEAVY PISTOL", "Targeting", "Minimum damage")
scout_cur = UI.GetValue ("Rage", "SCOUT", "Targeting", "Minimum damage")
awp_cur = UI.GetValue ("Rage", "AWP", "Targeting", "Minimum damage")
auto_cur = UI.GetValue ("Rage", "AUTOSNIPER", "Targeting", "Minimum damage")
weapon_name = Entity.GetName(Entity.GetWeapon(local));
if(weapon_name == "r8 revolver" || weapon_name == "desert eagle" || weapon_name == " 52>;L25@ r8" || weapon_name == "ssg 08" || weapon_name == "awp" || weapon_name == "scar 20" || weapon_name == "g3sg1") {
if (weapon_name == "r8 revolver" || weapon_name == "desert eagle" || weapon_name == " 52>;L25@ r8" /* revolver on russian lang */) { dmg_render = heavy_cur }
if (weapon_name == "ssg 08") { dmg_render = scout_cur }
if (weapon_name == "awp") { dmg_render = awp_cur }
if (weapon_name == "scar 20" || weapon_name == "g3sg1") { dmg_render = auto_cur }
}else{ dmg_render = "-" }
можешь помочь правильно вписать, если время есть?)Сделай переменную для получения дамага, это же просто.
И просто используй для вывода дамага - dmg_render.toString()JavaScript:heavy_cur = UI.GetValue ("Rage", "HEAVY PISTOL", "Targeting", "Minimum damage") scout_cur = UI.GetValue ("Rage", "SCOUT", "Targeting", "Minimum damage") awp_cur = UI.GetValue ("Rage", "AWP", "Targeting", "Minimum damage") auto_cur = UI.GetValue ("Rage", "AUTOSNIPER", "Targeting", "Minimum damage") weapon_name = Entity.GetName(Entity.GetWeapon(local)); if(weapon_name == "r8 revolver" || weapon_name == "desert eagle" || weapon_name == " 52>;L25@ r8" || weapon_name == "ssg 08" || weapon_name == "awp" || weapon_name == "scar 20" || weapon_name == "g3sg1") { if (weapon_name == "r8 revolver" || weapon_name == "desert eagle" || weapon_name == " 52>;L25@ r8" /* revolver on russian lang */) { dmg_render = heavy_cur } if (weapon_name == "ssg 08") { dmg_render = scout_cur } if (weapon_name == "awp") { dmg_render = awp_cur } if (weapon_name == "scar 20" || weapon_name == "g3sg1") { dmg_render = auto_cur } }else{ dmg_render = "-" }
Проект предоставляет различный материал, относящийся к сфере киберспорта, программирования, ПО для игр, а также позволяет его участникам общаться на многие другие темы. Почта для жалоб: admin@yougame.biz