Re: [INC] Colors (1.0.2)
Quote:
Quote:
Just tested on my local server, works fine: [IMG]http://img3.**************/img3/8236/redtext.png[/IMG] PHP Code:
|
Re: [INC] Colors (1.0.2)
Color {olive} {red} doesn't work with l4d2 with this plugin
only {green} (orange in game) work someone have already tested ? Thanks |
Re: [INC] Colors (1.0.2)
Quote:
|
Re: [INC] Colors (1.0.2)
Text is in white without colors.inc
Orange ({green}) when I put colors.inc coincidence may be |
Re: [INC] Colors (1.0.2)
Quote:
From the FAQ: Quote:
|
Re: [INC] Colors (1.0.2)
is that support [ShowActivity2] ?
|
Re: [INC] Colors (1.0.2)
Quote:
|
Re: [INC] Colors (1.0.2)
need help with
OverflowMessage(Client, "\x04[RP]\x01 - Press <ESC> to access the menu"); i want to make the [RP] to red how would your or i do this |
Re: [INC] Colors (1.0.2)
Quote:
PHP Code:
|
Re: [INC] Colors (1.0.2)
but with cprittochat. it spams the menu. becuse if you select a menu item, it repeats and repeats this. and it gets really anoying and looks unprofesinal
[RP] - Press <ESC> to access the menu |
Re: [INC] Colors (1.0.2)
You're probably putting stuff in the wrong place.
|
Re: [INC] Colors (1.0.2)
IM not. PrintToChat does not have the same effect as OverflowMessage. But i want the coloured chat to be in OverflowMessage.
|
Re: [INC] Colors (1.0.2)
What is OverflowMessage? This is not a documented SM function.
|
Re: [INC] Colors (1.0.2)
yes it is. this is the full ... for it
////////////////////////////////////////////////////////////////////////////////// stock DrawMenu(Client, String:Buffers[7][64], MenuHandler:MenuHandle, Variables[7] = {0, 0, 0, 0, 0, 0, 0}, String:Title[32]) { //Declare: decl Handle:Panel; //Initialize: Panel = CreatePanel(); //Print: OverflowMessage(Client, "\x03[RP]\x04 - Press <ESC> to access the menu"); //Display: for(new X = 0; X < 7; X++) if(strlen(Buffers[X]) > 0) { //Add: DrawPanelItem(Panel, Buffers[X]); //Var: SelectedBuffer[X][Client] = Variables[X]; } //Title SetPanelTitle(Panel, Title); //Draw: SendPanelToClient(Panel, Client, MenuHandle, 30); //Close: CloseHandle(Panel); } ////////////////////////////////////////////////////////////////////////////////// |
Re: [INC] Colors (1.0.2)
Where it is from? Third party's code? I still have no idea what is OverflowMessage.
|
Re: [INC] Colors (1.0.2)
|
Re: [INC] Colors (1.0.2)
well, here is an actual code of OverflowMessage:
PHP Code:
This is the place where you should change PrintToChat to CPrintToChat. |
Re: [INC] Colors (1.0.2)
okay thanks
|
Re: [INC] Colors (1.0.2)
I have added this library to Yak's FAQs :)
|
Re: [INC] Colors (1.0.2)
Quote:
|
Re: [INC] Colors (1.0.2)
This is probably a stupid question, but can I use this with Connect Announce? I want my connect announcements to be in blue. Is this possible?
|
Re: [INC] Colors (1.0.2)
Yes, sure.
|
Re: [INC] Colors (1.0.2)
I tried using colors.inc with the connect announce sourcemod plugin, but it's not working.
Code:
"CountryShow" |
Re: [INC] Colors (1.0.2)
How are you "using colors.inc with the connect announce sourcemod plugin"? For the colors to work, the plug-in must be rewritten to use the colors.inc functions (for example, by changing PrintToChatAll to CPrintToChatAll).
|
Re: [INC] Colors (1.0.2)
hm my text does not even get blue nor read, simply LIGHTGREEN :/
PrintToChatAll ("\x01 1 .. \x02 2 .. \x03 3 .. \x04 4 .. \x05 5 .. \x06 6 .. \x07 7 .. \x08 8"); this neither. mod is counterstrike source |
Re: [INC] Colors (1.0.2)
Quote:
|
Re: [INC] Colors (1.0.2)
PrintToChat(client,"\x04[VIP-Message] \x03%s\x01: \x03%s", name, text[startidx+1]);
this should print blue text on the %s if i am ct, but it does not. colors.inc doesnt format anything just repeats the text #include <colors> ... CPrintToChatAll("{GREEN}[VIP-Message]{TEAMCOLOR}%s{DEFAULT}:{TEAMCOLOR}%s",name,te xt); //EDIT: this works like a charm... stock SayText2All(author, const String:message[]) { new Handle:buffer = StartMessageAll("SayText2"); if ( buffer != INVALID_HANDLE ) { BfWriteByte(buffer, author); BfWriteByte(buffer, true); BfWriteString(buffer, message); EndMessage(); } } |
Re: [INC] Colors (1.0.2)
You should use CPrintToChatAllEx.
|
Re: [INC] Colors (1.0.2)
sorry if sound dume but were you put it ??? ^^ for give me
|
Re: [INC] Colors (1.0.2)
Quote:
|
Re: [INC] Colors (1.0.2)
I love the idea of being able to set the colors in the plugins i use but i'm having a problem using CPrintToAllChatEx.
CPrintToAllChat works fine though. :) Whenever i use CPrintToAllChatEx it gives me : error 035: argument type mismatch <argument 1> case 2: { if(IsFakeClient(playerClient)) return Plugin_Continue; CPrintToChatAllEx("{green}%N {teamcolor}joined Survivor Team.", playerClient) } What extra steps do i have to do to make Ex work? Teamcolor is pretty useful :) |
Re: [INC] Colors (1.0.2)
You've forgot to specify argument "author". If you want {teamcolor} to be the same color as "playerClient" you should use it like that:
PHP Code:
|
Re: [INC] Colors (1.0.2)
Quote:
|
Re: [INC] Colors (1.0.2)
Hello again,
Whats wrong here, i got the same error >.< error 035: argument type mismatch <argument 1> if (Mode > 2) { GetClientName(Attacker, AttackerName, sizeof(AttackerName)); CPrintToChatAllEx(AttackerName,"\x04[\x03RANK\x04] {teamcolor}%s \x01has earned \x04%i \x01points for killing%s \x05%s\x01!", AttackerName, Score, (VictimIsBot ? " a" : ""), VictimName); } |
Re: [INC] Colors (1.0.2)
First argument should be an integer (number - that is client's index) but you have specified a player's name (string).
Also you don't have to use \x0.. codes, use color tags. |
Re: [INC] Colors (1.0.2)
Just a heads up for those using colors in uppercase - colors.inc converts string color codes only if all letters are in lower case! This should be probably fixed...
|
Re: [INC] Colors (1.0.2)
Easy fix exvel;
Code:
native ReplaceString(String:text[], maxlength, const String:search[], const String:replace[], bool:caseSensitive=true); |
Re: [INC] Colors (1.0.2)
Quote:
|
Re: [INC] Colors (1.0.2)
Since in a lot of cases the end user is using these tags, I would make them case insensitive. It would be a different story if it were for developers only.
Copying files is hard enough for some server admins. |
Re: [INC] Colors (1.0.2)
I'll add a bool to determine if it must be case sensitive or not. =)
|
| All times are GMT -4. The time now is 22:58. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.