Raised This Month: $ Target: $400
 0% 

Message question


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
More
Member
Join Date: Nov 2004
Location: Internet
Old 02-09-2005 , 17:36   Message question
Reply With Quote #1

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
More is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 02-09-2005 , 22:09  
Reply With Quote #2

EDIT: Nevermind, this doesn't help the problem at all...
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Mind
Junior Member
Join Date: May 2005
Location: Sweden
Old 08-15-2005 , 16:27  
Reply With Quote #3

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.
Mind is offline
Send a message via ICQ to Mind
VanillA Ice
Senior Member
Join Date: Apr 2005
Old 08-15-2005 , 16:28  
Reply With Quote #4

yea that should work....
__________________
I can no longer help here......school has started... :/ goodbye everybody :'(
VanillA Ice is offline
Send a message via MSN to VanillA Ice Send a message via Yahoo to VanillA Ice
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 08-15-2005 , 20:19  
Reply With Quote #5

You don't need to bump old topics...
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Mind
Junior Member
Join Date: May 2005
Location: Sweden
Old 08-15-2005 , 20:36  
Reply With Quote #6

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.
Mind is offline
Send a message via ICQ to Mind
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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