View Single Post
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 04-15-2018 , 07:58   Re: [INC] CromChat - a better ColorChat!
Reply With Quote #27

Hm, indeed it doesn't work with CC_SendMatched. I'll have a look. For now you can create a custom function that will send a message without a prefix.

PHP Code:
CC_SendMatchedNoPrefix(const id, const iPlayer, const szInput[], any:...)
{
    static 
szMessage[CC_MAX_MESSAGE_SIZE]
    
vformat(szMessagecharsmax(szMessage), szInput4)
    
    if(
CC_PREFIX[0])
    {
        static 
szPrefix[CC_MAX_PREFIX_SIZE]
        
copy(szPrefixcharsmax(szPrefix), CC_PREFIX)
        
CC_SetPrefix("")
        
CC_SendMatched(idiPlayerszMessage)
        
CC_SetPrefix(szPrefix)
    }
    else 
CC_SendMatched(idiPlayerszMessage)

__________________

Last edited by OciXCrom; 04-15-2018 at 08:04.
OciXCrom is offline
Send a message via Skype™ to OciXCrom