AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   kill code (https://forums.alliedmods.net/showthread.php?t=159339)

kikifrh 06-15-2011 21:04

kill code
 
Where do I find the console "kill" command, I mean in which plugin of amx basic's is it?
Or what's the code to slay a user if he writes "test" on console

drekes 06-15-2011 21:31

Re: kill code
 
1. I think the kill command is in cs itself. Not sure.
There are ways to block it, search.

2.

PHP Code:

#include <amxmodx>

public plugin_init()
    
register_clcmd("test""CmdTest");

public 
CmdTest(id)
    
user_kill(id); 


kikifrh 06-16-2011 17:25

Re: kill code
 
thanks, ye ur right about kill. stupid question, btw I dont want to block it, its quite easy btw

thanks again 4 the code


All times are GMT -4. The time now is 18:39.

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