Raised This Month: $ Target: $400
 0% 

show the message for all except one


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
timmiesgubbe
Member
Join Date: Oct 2012
Location: Sweden
Old 07-13-2014 , 10:19   show the message for all except one
Reply With Quote #1

hi i have this code and how do i do so i show the message for all except one.

PHP Code:
public DeathMessage()
{
    new 
Killer read_data(1);
    new 
VicTim read_data(2);
    
    if ( 
iPlayer && VicTim == iPlayer && is_user_connected(Killer) ) {
        
        new 
KillName[32]
        
        
get_user_name(KillerKillNamecharsmax(KillName));
        
        
ColorChat(0RED"%s Mission Completed"Prefix);  // i wont so iPlayer Can not see this one 
        
ColorChat(0RED"%s %s killed a^3 wanted^1 player."PrefixKillName); // and this one
               
                
ColorChat(iPlayerRED"%s Mission Completed"Prefix);

    }


Last edited by timmiesgubbe; 07-13-2014 at 10:19.
timmiesgubbe is offline
Nextra
Veteran Member
Join Date: Apr 2008
Location: Germany
Old 07-13-2014 , 10:31   Re: show the message for all except one
Reply With Quote #2

Calling ColorChat with 0 as the first parameter will send the message to everyone. Use a for loop and only send it to the people that should receive it.
__________________
In Flames we trust!
Nextra is offline
timmiesgubbe
Member
Join Date: Oct 2012
Location: Sweden
Old 07-13-2014 , 10:45   Re: show the message for all except one
Reply With Quote #3

Quote:
Originally Posted by Nextra View Post
Calling ColorChat with 0 as the first parameter will send the message to everyone. Use a for loop and only send it to the people that should receive it.
Thanks. ;)
timmiesgubbe is offline
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 21:06.


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