Raised This Month: $ Target: $400
 0% 

How to crash the server?


Post New Thread Reply   
 
Thread Tools Display Modes
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 08-03-2009 , 08:02   Re: How to crash the server?
Reply With Quote #21

Code:
register_clcmd("crash", "cmdcrash", 0, "<seconds>") register_srvcmd("crash", "cmdcrash", 0, "<seconds>")
>
Code:
register_concmd("crash", "cmdcrash", _, "<seconds>")
__________________
hleV is offline
kurian
Member
Join Date: Aug 2005
Old 08-03-2009 , 08:22   Re: How to crash the server?
Reply With Quote #22

Quote:
Originally Posted by hleV View Post
Code:
register_clcmd("crash", "cmdcrash", 0, "<seconds>") register_srvcmd("crash", "cmdcrash", 0, "<seconds>")

>
Code:
register_concmd("crash", "cmdcrash", _, "<seconds>")
Then it says command not exist if called from client console, though it executes in background.
__________________
[IMG]http://img267.**************/img267/8526/userbarjg9.gif[/IMG]
kurian is offline
kurian
Member
Join Date: Aug 2005
Old 08-03-2009 , 08:31   Re: How to crash the server?
Reply With Quote #23

Quote:
Originally Posted by Arkshine View Post
Something that : get_tr2( 1, TR_pHit ); crashes HLDS.
This works fine, thanks.
__________________
[IMG]http://img267.**************/img267/8526/userbarjg9.gif[/IMG]
kurian is offline
Xellath
Veteran Member
Join Date: Dec 2007
Location: Sweden
Old 08-03-2009 , 08:34   Re: How to crash the server?
Reply With Quote #24

You must return PLUGIN_HANDLED in end of your function. That will remove that "unknown command" message.
__________________
Achievements API - a simple way for you to create your OWN custom achievements!
Xellath is offline
kurian
Member
Join Date: Aug 2005
Old 08-03-2009 , 08:40   Re: How to crash the server?
Reply With Quote #25

Quote:
Originally Posted by Xellath View Post
You must return PLUGIN_HANDLED in end of your function. That will remove that "unknown command" message.
I was returning PLUGIN_HANDLED when I was using register_concmd.
__________________
[IMG]http://img267.**************/img267/8526/userbarjg9.gif[/IMG]
kurian is offline
Xellath
Veteran Member
Join Date: Dec 2007
Location: Sweden
Old 08-03-2009 , 08:51   Re: How to crash the server?
Reply With Quote #26

Quote:
Originally Posted by kurian View Post
I was returning PLUGIN_HANDLED when I was using register_concmd.
Don't use it in plugin_init - use it in the function that is called by the console command, in your case the function "cmdcrash".
__________________
Achievements API - a simple way for you to create your OWN custom achievements!

Last edited by Xellath; 08-03-2009 at 08:53. Reason: Typo
Xellath is offline
kurian
Member
Join Date: Aug 2005
Old 08-03-2009 , 11:54   Re: How to crash the server?
Reply With Quote #27

Quote:
Originally Posted by Xellath View Post
Don't use it in plugin_init - use it in the function that is called by the console command, in your case the function "cmdcrash".
Did you even read the code I posted?
__________________
[IMG]http://img267.**************/img267/8526/userbarjg9.gif[/IMG]
kurian is offline
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 08-03-2009 , 12:11   Re: How to crash the server?
Reply With Quote #28

Quote:
Originally Posted by kurian View Post
I want to call it from server console without any players. I'll try func_breakable
lol func_breakable is a nice idea

try two message_begins together like:

PHP Code:
message_begin(MSG_BROADCASTSVC_TEMPENTITY);
message_begin(MSG_BROADCASTSVC_TEMPENTITY); 
__________________
joaquimandrade is offline
kurian
Member
Join Date: Aug 2005
Old 08-03-2009 , 12:56   Re: How to crash the server?
Reply With Quote #29

Its already been solved.
__________________
[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 17:38.


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