View Single Post
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 03-20-2010 , 23:09   Re: [HowTo] Detect Holding Walk Button (CS 1.6)
Reply With Quote #7

Quote:
Originally Posted by drekes View Post
So this doesnt work?
If so can you explain why to?
PHP Code:
#include <amxmodx>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("+speed""cmdwalk")
}

public 
cmdwalk(id)
{
    
//something...

Correct. That won't work. You can't catch client commands in that fashion. You must use the way provided if you want efficiency.

It happens for many things. For example, you can't catch +voicecomm (or whatever the voice command is). There's actually a thread in scripting help for that now.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline