Перейти к содержимому
View in the app

A better way to browse. Learn more.

Zloplay community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Опубликовано:

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: RUOkb.png

Featured Replies

Опубликовано:
  • Автор

LAwl if you want you can take this and modify it yourself but you're wrong this is for Infected game mode for the Infected, this will randomize what "class" you get. I just wanted to give Infected a better chance of winning against the dsr's I created :D and the code is not finished ;) got any idea why I get these errors?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Гость
Ответить в тему...

Сейчас на странице 0

  • Нет пользователей, просматривающих эту страницу

Важная информация

Используя этот сайт, вы соглашаетесь Условия использования.

Account

Navigation

Поиск

Поиск

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.