November 26, 201213 yr comment_153909 Zombies hit the bug and he can not get out from there. He will prescribe "!suicide". There is? Sorry for my english ( Report
November 27, 201213 yr comment_154001 I assume you want a B3 plugin todo this? would be simple, use alteradmin and edit/make a new command then create the server-side dvar for it. Report
November 27, 201213 yr comment_154016 public override void OnSay(Entity player, string name, string message) { switch (message) { case "!suicide": player.Call("suicide"); break; } } Try it. Report
November 27, 201213 yr comment_154018 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. Report
November 27, 201213 yr comment_154033 Hmmm all I get is that the server crashes if the text is detected. Report
November 27, 201213 yr comment_154045 Hmmm all I get is that the server crashes if the text is detected. Yeah you need to put a delay on it otherwhise the server will just crash... Report
November 27, 201213 yr comment_154172 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; } } Report
November 27, 201213 yr comment_154360 *sigh*.... do you have ANY coding experience at all? Take a wild guess at that.... Report
November 27, 201213 yr comment_154368 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. Report
November 27, 201213 yr comment_154389 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) Report
November 27, 201213 yr comment_154396 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. Report
November 27, 201213 yr comment_154408 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 Report
November 28, 201213 yr comment_154595 Paulofonta: works. Thanks a lot! lol that was exactly the same as mine? Report
November 28, 201213 yr comment_154607 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... Report
November 28, 201213 yr comment_154614 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 Report
Zombies hit the bug and he can not get out from there. He will prescribe "!suicide". There is? Sorry for my english (