Quote:
Originally Posted by Diegorkable
Hey guys,
people in my server can type "model MODEL_NAME" and their model change to the model they pick. for example typing "model zombie" would make them look like a zombie. I want to block that so I used client_command forward and checked if argv(0) equals to "model", if it is return plugin handled main.
The command is still not being blocked, anyone knows what can I do? Is it a command of the HL engine?
|
if you hook the command as such...
Code:
register_clcmd("model", "functionOfBoobs") //got boobs on the mind, everyone loves boobs
Then just set some sort of opt-out (a CVAR or something) and put it at the beginning of that hook and have it
return PLUGIN_HANDLED
PHP Code:
public functionOfBoobs(id)
{
if(get_pcvar_num(turnModelOff_pcvar) == 0)
return PLUGIN_HANDLED
// put the rest of the stuff here
}
hope that helped.
If not....show code, not sure what you want
__________________