model command
Hey guys,
people in my server can type in console "model MODEL_NAME" and their model will 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? |
Re: model command
Quote:
Code:
register_clcmd("model", "functionOfBoobs") //got boobs on the mind, everyone loves boobsPHP Code:
If not....show code, not sure what you want |
Re: model command
register_clcmd doesnt work in that case. probably because its an HL engine command, I am not sure.
A question: Is it an info? can I use maybe client_infochanged, then read the player's model info and see if he change it? If so, how can I get the old and new one? Old -> get_user_model() New -> get_user_info(id, "model")? |
Re: model command
Hook FM_SetClientKeyValue and check if the key equals to "model". You can change it to whatever you want there, or just block it.
|
Re: model command
It doesn't block too =\, why the fuck is that.
|
Re: model command
The command is handled by the client, so the server does not see it in time (or at all, not sure) to be able to block it
You will have to detect when they change their model and then change it back |
Re: model command
Quote:
Well, if I use that forward it blocks that model changing after I use cs_set_user_team. if its by the client manually it doesnt block. |
Re: model command
Quote:
Quote:
|
Re: model command
Quote:
Quote:
I'm talking about that forward, I know what a forward is and what a function is. When I hook FM_SetClientKeyValue and block the key 'model', it doesnt block players from changing their model in console manually, but it does block the changing model of cs_set_user_team. Got it now? |
| All times are GMT -4. The time now is 06:15. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.