AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Force name/nick (https://forums.alliedmods.net/showthread.php?t=45354)

fls 09-30-2006 10:52

Force name/nick
 
Hi,

i've made a plugin that forces a clients name/nick. Now the only problem left is to block the "x changed name to z" message that displays to everyone.
After some forum searching it seems the solution is "register_message" , finding the message id and blocking it by passing it to a function that only returns PLUGIN_HANDLED (thereby blocking it) ?

Now, I can't figure out how to "catch" the message.
Tried using get_user_msgid("TextMsg") , but it doesn't seem to catch name changes, only other events...

Any help appreciated :)

fls 09-30-2006 11:05

Re: Force name/nick
 
Ooh, nevermind, figured it out. Had to use "SayText" instead of "TextMsg" ;)


All times are GMT -4. The time now is 04:47.

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