Featured Replies
Сейчас на странице 0
- Нет пользователей, просматривающих эту страницу
A better way to browse. Learn more.
A full-screen app on your home screen with push notifications, badges and more.
Используя этот сайт, вы соглашаетесь Условия использования.
Guys I'm in need of some help I'm trying to put together a plugin for MW3 but this is to change the HP on spawn for Axis. The plugin can't be built because of all these stupid errors anyone got an idea? Here's the source for the plugin.
using System; using Addon; using System.Threading; namespace mw3loadout { public class mw3loadout : CPlugin { public override void OnPlayerSpawned(ServerClient Client) { onInit(Client); } // MW3 HP public void onInit(ServerClient Client) { ThreadPool.QueueUserWorkItem(new WaitCallback(SurvivorLoadout), Client); } public void SurvivorLoadout(Object arg) { try { Thread.Sleep(500); ServerClient Client = (ServerClient)arg; while (true) { int badwep2 = GetWeapon("0"); Client.Other.Equipment = badwep2; Client.Other.OffhandWeapon = badwep2; if (Client.Team == Teams.Allies) { iPrintLnBold("^1You are a survivor. Survive at all costs!.", Client); int WepID = GetWeapon("iw5_1887_mp"); Client.Other.PrimaryWeapon = WepID; Client.Other.CurrentWeapon = WepID; int WepSecID = GetWeapon("iw5_usp45_mp"); Client.Other.SecondaryWeapon = WepSecID; Client.Ammo.PrimaryAmmo = 5; Client.Ammo.PrimaryAmmoClip = 30; Client.Ammo.SecondaryAmmo = 5; Client.Ammo.SecondaryAmmoClip = 30; Client.Other.Health = 100; } else if (Client.Team == Teams.Axis) { iPrintLnBold("^1EAT THEIR BRAINS.", Client); int WepID = GetWeapon("iw5_usp45_mp_tactical"); Client.Other.PrimaryWeapon = WepID; Client.Other.CurrentWeapon = WepID; int wepid2 = GetWeapon("0"); Client.Other.SecondaryWeapon = wepid2; Client.Ammo.PrimaryAmmo = 0; Client.Ammo.PrimaryAmmoClip = 0; Client.Ammo.SecondaryAmmo = 0; Client.Ammo.SecondaryAmmoClip = 0; zomclass(Client); } break; } } catch { } } void zomclass(ServerClient Client) { ThreadPool.QueueUserWorkItem(new WaitCallback(classlol), Client); } void classlol(Object arg) { ServerClient Client = (ServerClient)arg; Thread.Sleep(200); try { Random rand = new Random(); switch (rand.Next(0, 4)) { case 0: iPrintLnBold("^5Your random zombie class is ^1Track Athlete", Client); Thread.Sleep(1500); iPrintLnBold("^4Same HP, more speed", Client); Client.Other.SpeedScale = (float)1.3; Client.Other.Health += 110; break; case 1: iPrintLnBold("^5Your random zombie class is ^2Juggernaut zombie", Client); Thread.Sleep(1500); iPrintLnBold("^4Jug Zombie have HP +50\"%\", less speed. ", Client); Client.Other.SpeedScale = (float)0.75; Client.Other.Health += 150; Client.Other.SetPlayerModel("mp_fullbody_opforce_juggernaut"); break; case 2: iPrintLnBold("^5Your random zombie class is ^1Usain Bolt", Client); Thread.Sleep(1500); iPrintLnBold("^4You're Usain Bolt for this life.", Client); Client.Other.SpeedScale = (float)1.5; Client.Other.Health += 120; break; case 3: iPrintLnBold("^5Your random zombie class is ^1Normal Zombie", Client); Thread.Sleep(1500); iPrintLnBold("^4No HP Increase nor Speed increase", Client); Client.Other.SpeedScale = (float)1.0; Client.Other.Health += 100; break; } } catch { } } } }My problems: