Skip to content
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. -Again-

Just wondering why this

entity.GiveWeapon("throwingknife_mp")

won't work

this is a part of my whole code

private void spawnZombie(Entity entity)
       {
           Random rand = new Random();
           switch (rand.Next(3))
           {
                   case 0:
                   entity.Call("iprintlnbold", "^5This is a test");
                   AfterDelay(1500, () =>
                   {
                       entity.Call("iprintlnbold", "^4Testa");
                       OnInterval(100, () =>
                       {
                           entity.Call("setmovespeedscale", new Parameter((float)1.2));
                           entity.GiveWeapon("throwingknife_mp");
                           return true;
                       });
                       entity.Health = 600;
                   });
                   break;
                   case 1:
                   entity.Call("iprintlnbold", "^5This is a test");
                   AfterDelay(1500, () =>
                   {
                       entity.Call("iprintlnbold", "^4Testa");
                       OnInterval(100, () =>
                       {
                           entity.Call("setmovespeedscale", new Parameter((float)1.2));
                           entity.GiveWeapon("throwingknife_mp");
                           return true;
                       });
                       entity.Health = 600;
                   });
                   break;
           }

Could it be from me calling a return true; early or what? Thanks.

Featured Replies

private void spawnZombie(Entity entity)
       {
           Random rand = new Random();
           switch (rand.Next(3))
           {
                   case 0:
                   entity.Call("iprintlnbold", "^5This is a test");
                   AfterDelay(1500, () =>
                   {
                       entity.Call("iprintlnbold", "^4Testa");
                       OnInterval(100, () =>
                       {
                           entity.Call("setmovespeedscale", new Parameter((float)1.2));
                           entity.GiveWeapon("throwingknife_mp");
                           return true;
                       });
                       entity.Health = 600;
                   });
                   break;
                   case 1:
                   entity.Call("iprintlnbold", "^5This is a test");
                   AfterDelay(1500, () =>
                   {
                       entity.Call("iprintlnbold", "^4Testa");
                       entity.Call("SetOffhandPrimaryClass", "throwingknife");
                       entity.GiveWeapon("throwingknife_mp");
                       entity.Call("setweaponammoclip", "throwingknife_mp", 1);
                       OnInterval(100, () =>
                       {
                           entity.Call("setmovespeedscale", new Parameter((float)1.2));
                           entity.Call("setweaponammoclip", "throwingknife_mp", 1);
                           return true;
                       });
                       entity.Health = 600;
                   });
                   break;
           }

Straight from Deathmax's snipe mod.

Guest
This topic is now closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

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.