AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   show the message for all except one (https://forums.alliedmods.net/showthread.php?t=244070)

timmiesgubbe 07-13-2014 10:19

show the message for all except one
 
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);

    }



Nextra 07-13-2014 10:31

Re: show the message for all except one
 
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.

timmiesgubbe 07-13-2014 10:45

Re: show the message for all except one
 
Quote:

Originally Posted by Nextra (Post 2166953)
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. ;)


All times are GMT -4. The time now is 21:06.

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