Raised This Month: $ Target: $400
 0% 

Prevent Kill in console.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
TehCaesar
BANNED
Join Date: Jun 2006
Old 12-31-2006 , 19:34   Prevent Kill in console.
Reply With Quote #1

I want to know what would be the code, simplest in nature, to make "kill" in console not work.
TehCaesar is offline
Imanoobie
BANNED
Join Date: Sep 2006
Old 12-31-2006 , 19:37   Re: Prevent Kill in console.
Reply With Quote #2

Code:
#include <amxmodx> public plugin_init() {     register_plugin("No suicide", "1.0", "Imanoobie") } public user_kill() {     return PLUGIN_HANDLED }

'Ere ya go, mate
Imanoobie is offline
TehCaesar
BANNED
Join Date: Jun 2006
Old 12-31-2006 , 19:38   Re: Prevent Kill in console.
Reply With Quote #3

Thanks.
TehCaesar is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 12-31-2006 , 20:00   Re: Prevent Kill in console.
Reply With Quote #4

You do know that if you search the words block kill or block suicide or no suicide, you would come up with a few plugins right?

CHARMING released one that works fine but is in the unapproved section that does exactly what imanoobie just posted.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 12-31-2006 , 21:47   Re: Prevent Kill in console.
Reply With Quote #5

user_kill is used to kill a player. client_kill is the forward that is triggered when a player attempts to use the "kill" command. You should also probably have "id" in the function header, as it tries to get passed.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX 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 22:20.


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