Raised This Month: $ Target: $400
 0% 

model command


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 06-13-2012 , 15:45   Re: model command
Reply With Quote #2

Quote:
Originally Posted by Diegorkable View Post
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
__________________
What an elegant solution to a problem that doesn't need solving....
Liverwiz is offline
 



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 06:15.


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