AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Message question (https://forums.alliedmods.net/showthread.php?t=10149)

More 02-09-2005 17:36

Message question
 
Is it possible to show a message to all players except one???
I know you can make a for-loop which make for every player a msg_one but is it possible to use a msg_all and only block the message from being shown to the one player??
set_msg_block blocks it to be shown to all players but i want the message only be blocked to the one

XxAvalanchexX 02-09-2005 22:09

EDIT: Nevermind, this doesn't help the problem at all...

Mind 08-15-2005 16:27

Ok, Im not at all sure about this so it might be deadwrong, but maybe it is a starting point to go from.

Try using register_message and then checking msgdestination, that should be the second parameter to your hook function.

Im not sure if this is indeed the destination player that gets the message but check it out. In that case it should work to do something like:

Code:
public hook_function(msgid, msgdest, msgentity) {     if(msgdest == yourtarget)     {         return PLUGIN_HANDLED;     }     return PLUGIN_CONTINUE; }

Where yourtarget is the player you want to block it from.
Please dont bash me if this is totally wrong, just trying to help with the meager knowledge about this I might have.

VanillA Ice 08-15-2005 16:28

yea that should work....

XxAvalanchexX 08-15-2005 20:19

You don't need to bump old topics...

Mind 08-15-2005 20:36

There was no answer so I gave him an answer. Actually didnt saw the date so Im guilty of that but if no one answered him in such a long time I think he deserved an answer. And I recently searched much similar info without getting any working ideas/solutions so this info might actually benefit someone else as well.


All times are GMT -4. The time now is 19:15.

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