disable choosing of model.
If someone uses the sinvan model the server crash. Now i tried this:
Code:
public plugin_init() { |
Re: disable choosing of model.
So you want someone using the "sinvan" model to leave the server?
(I guess this is for a HL mod) |
Re: disable choosing of model.
Well not necesary but it needs to block the use of the model
|
Re: disable choosing of model.
Bring
Up My Post |
Re: disable choosing of model.
Code:
You might have to use regular client_cmd instead of engclient_cmd. Also, if they bind a key to "model sinvan" and mash it repeatedly their model won't always change back fast enough, so you might want to add a flood control, where if they press it X many times in Y seconds it kicks them. |
Re: disable choosing of model.
Thanks a lot m8 +karma for you....
|
Re: disable choosing of model.
Or you could do something simple like you had before:
PHP Code:
You could even make it say something like "The use of this model has been denied by an administrator". Then you don't have to check for model flooding and stuff... So you really kind of had it right the first time... although Avalanche's method is better if you want to block more than one type of model. However, instead of using client_infochanged, you might want to just use register_clcmd("model","modelchanged") and check it from there, and then I don't think they would be able to spam past it. Just a few thoughts. |
Re: disable choosing of model.
Is the model command sent to the server?
|
Re: disable choosing of model.
Not if you return PLUGIN_HANDLED.
|
Re: disable choosing of model.
The above question are reasonable. The "model" command doesn't sent to the server as the command but as so called client info data. So you can't block the model command with a serverside application like AMX Mod X or MetaMod.
|
| All times are GMT -4. The time now is 22:20. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.