Raised This Month: $ Target: $400
 0% 

How to crash the server?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kurian
Member
Join Date: Aug 2005
Old 08-02-2009 , 07:38   How to crash the server?
Reply With Quote #1

I'm trying to setup the auto-restart setting of my server service. How do I write a plugin that can crash the server when I give the command?

It should be a regular crash like "hlds.exe - Application Error" "The exception unknown exception ....." etc.
__________________
[IMG]http://img267.**************/img267/8526/userbarjg9.gif[/IMG]
kurian is offline
01101010
BANNED
Join Date: Aug 2009
Old 08-02-2009 , 07:42   Re: How to crash the server?
Reply With Quote #2

PHP Code:
public plugin_precache()
{
    
engfunc(EngFunc_PrecacheModel"my_name_is_john.hi")

01101010 is offline
kurian
Member
Join Date: Aug 2005
Old 08-02-2009 , 07:44   Re: How to crash the server?
Reply With Quote #3

Quote:
Originally Posted by 01101010 View Post
PHP Code:
public plugin_precache()
{
    
engfunc(EngFunc_PrecacheModel"my_name_is_john.hi")

Would that work only in plugin_precache or can I call it anywhere?
__________________
[IMG]http://img267.**************/img267/8526/userbarjg9.gif[/IMG]
kurian is offline
01101010
BANNED
Join Date: Aug 2009
Old 08-02-2009 , 07:48   Re: How to crash the server?
Reply With Quote #4

Anytime.

It would display the "Model not found" error, and the server shut down.

If you want another method to crash it, I know more.
01101010 is offline
kurian
Member
Join Date: Aug 2005
Old 08-02-2009 , 07:49   Re: How to crash the server?
Reply With Quote #5

I don't want a "handled" crash. I want an unhandled exception like a genuine crash. The kind that would trigger the OS's error/debug with Visual Studio routine.
__________________
[IMG]http://img267.**************/img267/8526/userbarjg9.gif[/IMG]
kurian is offline
01101010
BANNED
Join Date: Aug 2009
Old 08-02-2009 , 07:51   Re: How to crash the server?
Reply With Quote #6

What about this.
PHP Code:
message_begin(MSG_BROADCASTSVC_TEMPENTITY);
write_byte(17);
write_coord(321.1);
write_coord(31.4646);
write_coord(4314.41);
write_short(e411414);
write_byte(4164161564516);
write_byte(hiim crasher);
message_end(); 
Umm, this is also good

PHP Code:
client_print(0"hi %s %f %d %s %f %d %d %s hehehe i crashed it"

Last edited by 01101010; 08-02-2009 at 07:53.
01101010 is offline
kurian
Member
Join Date: Aug 2005
Old 08-02-2009 , 08:14   Re: How to crash the server?
Reply With Quote #7

It doesn't crash. Doesn't even say anything.
__________________
[IMG]http://img267.**************/img267/8526/userbarjg9.gif[/IMG]
kurian is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 08-02-2009 , 08:35   Re: How to crash the server?
Reply With Quote #8

Simlpe, register a command like "say /test" then make engfunc(EngFunc_RemoveEntity, id); id, the index of player that called the func.
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
hzqst
Senior Member
Join Date: Jul 2008
Old 08-02-2009 , 08:46   Re: How to crash the server?
Reply With Quote #9

engfunc(EngFunc_RemoveEntity, a player's index(1~32))or create a func_breakable and then remove it
hzqst is offline
kurian
Member
Join Date: Aug 2005
Old 08-02-2009 , 09:10   Re: How to crash the server?
Reply With Quote #10

I want to call it from server console without any players. I'll try func_breakable
__________________
[IMG]http://img267.**************/img267/8526/userbarjg9.gif[/IMG]
kurian is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:25.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode