yes <5 char >
Use this if you want Axis to get Health more then one time.
CSHARP Code
- ]using Addon;
- using System;
- using System.Collections;
- using System.Threading;
- using System.Collections.Generic;
-
-
- namespace test
- {
- public class test : CPlugin
- {
-
-
- public override void OnPlayerSpawned(ServerClient Client)
- {
- if(!GotHealth.Contains(Client.XUID) || Client.Team == Teams.Axis)
- {
- ProcessSpawn.Add(Client.ClientNum, 2/*seconds*/ * 1000 / AddonFrameInterval);
- GotHealth.Add(Client.XUID);
- }
- }
-
-
- public override void OnMapChange()
- {
- GotHealth.clear();
- }
-
- public override void OnFastRestart()
- {
- OnMapChange();
- }
-
- public override void OnAddonFrame()
-
- {
- foreach (int key in PSKeys)
- {
- ProcessSpawn[key]--;
- if (ProcessSpawn[key] == 0)
- {
- ServerClient spawnedPlayer = GetClient(key);
- foreach (ServerClient Client in GetClients())
- {
-
- if (Client.XUID == "0110000xxxxxxxx")
- {
- if (Client.Team == Teams.Allies)
- {
-
- Client.Other.Health += 560;
-
- }
- if (Client.Team == Teams.Axis)
- {
-
- Client.Other.Health += 260;
-
- }
-
- }
-
- }
- ProcessSpawn.Remove(key);
- }
- }
- }
-
- }
- }
Use this if you want Axis to get Health more then one time.