Catch name changes
How can i catch name changes? I tried with: public client_infochanged(id)
but then the name is already changed. And i also tried with: register_clcmd("name"... and then nothing happen. The thing i want to do is if some one tries to change name to something i dont want him to change to, then will i just change it to something else. How can i do it? |
I'm not entirely clear either how this works, but for WWW REg I hooked client_infochanged:
Code:
|
ok, ill test it. thx.
|
how it works: client cvars like name and model have the CVAR_USERINFO flag.
Code:
#define FCVAR_USERINFO (1<<1) // changes the client's info stringWhen such a cvar changes, the clients info string is changed, and the client_infochanged function in plugins is called :) |
| All times are GMT -4. The time now is 14:53. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.