[REQUEST]help me in this code
Featured Replies
Эта тема закрыта для публикации сообщений.
Сейчас на странице 0
- Нет пользователей, просматривающих эту страницу
A better way to browse. Learn more.
A full-screen app on your home screen with push notifications, badges and more.
Используя этот сайт, вы соглашаетесь Условия использования.
hello every 1
this is alive players code
it works
but the problem is that it show team 1:players and team2: players in place of friends: players and ennemys: players
using System; using System.Collections.Generic; using System.Linq; using System.Text; using InfinityScript; using System.Timers; namespace Alive_Players { public class Alive : BaseScript { public int aliveteam; public int aliveenemy; public Alive() { PlayerConnected += new Action(entity => { HudElem LabelA = HudElem.CreateFontString(entity, "hudbig", 0.6f); LabelA.SetPoint("DOWNRIGHT", "DOWNRIGHT", -5, 130); LabelA.HideWhenInMenu = true; HudElem LabelB = HudElem.CreateFontString(entity, "hudbig", 0.6f); LabelB.SetPoint("DOWNRIGHT", "DOWNRIGHT", -5, 110); LabelB.HideWhenInMenu = true; OnInterval(50, () => { aliveteam = Call("getteamplayersalive", "allies"); aliveenemy = Call("getteamplayersalive", "axis"); LabelA.SetText("^2Friendly ^7: ^5" + aliveteam.ToString()); LabelB.SetText("^1Enemy ^7 : ^5" + aliveenemy.ToString()); return true; }); }); } } }