View Single Post
joac1144
Senior Member
Join Date: Dec 2012
Location: Copenhagen, Denmark
Old 02-09-2014 , 04:25   Re: [Any] Round Messages
Reply With Quote #9

Quote:
Originally Posted by Js41637 View Post
You can't compile the plugin because it requires morecolors.

I think you can use #tryinclude or something instead of #include so that it isn't required but optional.

Also, is there even any color tags in the code? You have;
PHP Code:
if (GetConVarInt(eventmsg_morecolors_enabled) == 1)
    {
        new 
String:msg[128];
        
GetConVarString(eventmsg_endmessagemsgsizeof(msg));
    
        
CPrintToChatAll("%s"msg);
    }
    else
    {
        new 
String:msg[128];
        
GetConVarString(eventmsg_endmessagemsgsizeof(msg));
        
        
PrintToChatAll("%s"msg);
    } 
Which is just switching between PrintToChatAll and CPrintToChatAll however you have included no color tags. Something like this is maybe what you want?
PHP Code:
CPrintToChatAll("{green}%s"msg); 
If you want to use colors in the messages, you can do it in the CFG file (cfg/sourcemod/) that is autogenerated after first time the plugin is loaded.
Eg: eventmsg_startmessage "{lightgreen}The round is about to {green}start"
__________________

Last edited by joac1144; 02-09-2014 at 04:30.
joac1144 is offline