AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   #Cstrike_Chat_All (https://forums.alliedmods.net/showthread.php?t=299474)

eyal282 07-15-2017 16:37

#Cstrike_Chat_All
 
Is it possible to use the special tag #Cstrike_Chat_All and put a message right after it? Like this:

Code:

ColorChat(id, "#Cstrike_Chat_All%s", Name);
Edit: Fixed!

PHP Code:

ColorChatSpecial(id"#Cstrike_Chat_All""HelloWorld!");

------------------------------

stock ColorChatSpecial(const index, const tag[], const string[], {FloatSqlResul,_}:...) 
{    
    if(!
index) return 1;
    
    if(
is_user_connected(index))
    {
        
        static 
SayText;
        
        if(!
SayText)
            
SayText get_user_msgid("SayText");
            
        
message_begin(MSG_ONE_UNRELIABLESayText,_index);
        
write_byte(index);
        
write_string(tag);
        
write_string("");
        
write_string(string);
        
message_end();
    }
    return 
1;




All times are GMT -4. The time now is 23:09.

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