block key 'model' & used it for other case ?
Hi guys
i want block key 'model' for clients and i want used it for othere function change model : what i try : PHP Code:
|
Re: block key 'model' & used it for other case ?
In if(changes[player] >= 1 ) check you should return FMRES_SUPERCEDE and where have FMRES_SUPERCEDE you should change toFMRES_IGNORED
|
Re: block key 'model' & used it for other case ?
I think FM_SetClientKeyValue is fired after the command is executed so you can't just block it with returns, you need to restore model ( set_user_info() ) .
|
Re: block key 'model' & used it for other case ?
If is pre or post I do not know, but it can be blocked.
|
Re: block key 'model' & used it for other case ?
edon is right, setinfo hooks are always fired after the user changes them. The best way to block a model change is to store the model when the player joins, then re-apply if it changes.
|
Re: block key 'model' & used it for other case ?
I'm using as I said on my furien and it works.
|
Re: block key 'model' & used it for other case ?
i do pre & post
i do set_user_info() but why when i want to cheack my name of model i see othere name but model not changed like what i saw in consol my model name is 'sas' but when i try consol cmd : Quote:
PHP Code:
|
Re: block key 'model' & used it for other case ?
You can't change client-side model value. You should check your real model with some third person view plugin.
|
Re: block key 'model' & used it for other case ?
Try this
Code:
What are Code:
|
Re: block key 'model' & used it for other case ?
Quote:
edon1337 you code is wrong i mean here && !g_asModels[ 0 ] ) this arry should be index and this full code : PHP Code:
|
| All times are GMT -4. The time now is 17:48. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.