AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Prevent Kill in console. (https://forums.alliedmods.net/showthread.php?t=49299)

TehCaesar 12-31-2006 19:34

Prevent Kill in console.
 
I want to know what would be the code, simplest in nature, to make "kill" in console not work.

Imanoobie 12-31-2006 19:37

Re: Prevent Kill in console.
 
Code:
#include <amxmodx> public plugin_init() {     register_plugin("No suicide", "1.0", "Imanoobie") } public user_kill() {     return PLUGIN_HANDLED }

'Ere ya go, mate:grrr:

TehCaesar 12-31-2006 19:38

Re: Prevent Kill in console.
 
Thanks.

SweatyBanana 12-31-2006 20:00

Re: Prevent Kill in console.
 
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.

XxAvalanchexX 12-31-2006 21:47

Re: Prevent Kill in console.
 
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.


All times are GMT -4. The time now is 22:20.

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