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.

!suicide

Zombies hit the bug and he can not get out from there. He will prescribe "!suicide". There is? Sorry for my english (

Featured Replies

public override void OnSay(Entity player, string name, string message)
       {
          switch (message)
           {
               case "!suicide":
               player.Call("suicide");
              break;
          }
      }

Try it.

Try it as in compile it as a mod using InfinityScript... there's a tutorial lying around here somewhere.

Error compiling! (I know how to compile)

Nothing can be done?

I do not understand ((

I do not understand ((

 

-_-

Well use this:

(it should work fine)

public override void OnSay(Entity player, string name, string message)
       {
          switch (message)
           {
               case "!suicide":
                      AfterDelay(100, () => player.Call("suicide"));
              break;
          }
      }

does not work

required class, delegate, enum, interface, or struct

I belive you're all trolling about something like this:

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

namespace Suicide
{

   public class Suicide : BaseScript
   {
             public override void OnSay(Entity player, string name, string message)
           {
           switch (message)
            {
                case "!suicide":
                player.Call("suicide");
               break;
            }
           }
    }
}

People spend too much time trolling and not enough time testing, to realize that such code crashes the server when the command is used.

I belive you're all trolling about something like this:

code

People spend too much time trolling and not enough time testing, to realize that such code crashes the server when the command is used.

Could [GRiD] Aalalex's code work? (No I have no coding experience)

Could [GRiD] Aalalex's code work?

Actually it does. I tested the first code on this topic and didn't even realize the difference (thought it was a quote)

So,

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

namespace Suicide
{

   public class Suicide : BaseScript
   {
             public override void OnSay(Entity player, string name, string message)
       {
          switch (message)
           {
               case "!suicide":
                      AfterDelay(100, () => player.Call("suicide"));
              break;
          }
      }
    }
}

does work.

Could [GRiD] Aalalex's code work?

Actually it does. I tested the first code on this topic and didn't even realize the difference (thought it was a quote)

So,

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

namespace Suicide
{

   public class Suicide : BaseScript
   {
             public override void OnSay(Entity player, string name, string message)
       {
          switch (message)
           {
               case "!suicide":
                      AfterDelay(100, () => player.Call("suicide"));
              break;
          }
      }
    }
}

does work.

 

Why does "suicide" even crash the server without a delay? It just doesn't make sense to me xD

Same goes for "radiusdamage", that also needs a delay in order for it to not crash the server :S

Paulofonta: works. Thanks a lot!

Aalalex":10sxagbu]
Paulofonta: works. Thanks a lot!

lol that was exactly the same as mine?

It was not exactely the same as yours. It was yours, copy-pasted to a template .cs

lol

Aalalex":10sxagbu]Why does "suicide" even crash the server without a delay? It just doesn't make sense to me xD

I also didn't think it was gonna make a difference, but I got surprised when I tested it, and it wasn't crashing with that slight delay that you put in...

Aalalex":1y8uh5u4]
Paulofonta: works. Thanks a lot!

lol that was exactly the same as mine?

It was not exactely the same as yours. It was yours, copy-pasted to a template .cs

lol

Aalalex":1y8uh5u4]Why does "suicide" even crash the server without a delay? It just doesn't make sense to me xD

I also didn't think it was gonna make a difference, but I got surprised when I tested it, and it wasn't crashing with that slight delay that you put in...

 

lol? xD

 

Same here, I was trying to make a similar command a while back for !suicide but my server kept crashing so I thought what the hell I'll just put a delay on it and surprisingly it works. xD

Join the conversation

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

Guest
Reply to this topic...

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.