Перейти к содержимому
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.

Need a Scripter to help me out here.

Опубликовано:

Hello my dear friends if you're reading this then you're either 1) interested in helping me 2) You like me 3) you just want to see what's in here.

Anyway I'm trying to take an old plugin that I had modified for my friend. -NOTE: MODIFIED-

I'm not anywhere decent at C# I'm still in the very basics of it.

My question is this how can I convert this snippet of code into "IW5M/InfinityScript" suited.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using InfinityScript;

namespace ClassLibrary1
{
   public class Class1
   {
       Random rand = new Random();
               switch (rand.Next(0, 3))
               {
                   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;
   }
}

Featured Replies

Опубликовано:

No Idea if it works.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using InfinityScript;

namespace DUKIP
{
   public class ZombieMod : BaseScript
   {
       public ZombieMod() : base()
       {
           PlayerConnected += new Action(entity =>
           {
               entity.SpawnedPlayer += new Action(() =>
               {
                   spawnZombie(entity);
               });
           });
       }

       private void spawnZombie(Entity entity)
       {
           Random rand = new Random();
           switch (rand.Next(3))
           {
               case 0:
                   entity.Call("iprintlnbold", "^5Your random zombie class is ^2Juggernaut zombie");
                   AfterDelay(1500, () =>
                   {
                       entity.Call("iprintlnbold", "^4Jug Zombie have HP +50\"%\", less speed.");
                       entity.SetField("speedscale", 0.75f);
                       entity.SetField("health", 250);
                       entity.Call("setplayermodel", "mp_fullbody_opforce_juggernaut");
                   });
                   break;
               case 1:
                   entity.Call("iprintlnbold", "^5Your random zombie class is ^1Usain Bolt");
                   AfterDelay(1500, () =>
                   {
                       entity.Call("iprintlnbold", "^4You're Usain Bolt for this life.");
                       entity.SetField("speedscale", 1.5f);
                       entity.SetField("health", 220);
                   });
                   break;
               case 2:
                   entity.Call("iprintlnbold", "^5Your random zombie class is ^1Usain Bolt");
                   AfterDelay(1500, () =>
                   {
                       entity.Call("iprintlnbold", "^4You're Usain Bolt for this life.");
                       entity.SetField("speedscale", 10f);
                       entity.SetField("health", 200);
                   });
                   break;
           }
       }
   }
}

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.