Raised This Month: $12 Target: $400
 3% 

[INC] Multi Colors


Post New Thread Reply   
 
Thread Tools Display Modes
Toastbrot_290
SourceMod Donor
Join Date: Apr 2013
Old 06-09-2015 , 07:21   Re: [INC] Multi Colors - 2.0.0
Reply With Quote #11

Why do you require new syntax within your include? Keep it compatible to old syntax. I don't think stuff like that should be set within an include file. Devs should decide on their own.
__________________
Toastbrot_290 is offline
Bara
AlliedModders Donor
Join Date: Apr 2012
Location: Germany
Old 06-09-2015 , 07:30   Re: [INC] Multi Colors - 2.0.0
Reply With Quote #12

1.7 is stable with the new syntax... so why not. But you can use the old version ( https://github.com/Bara20/Multi-Colo...cafb33c95aabe2 ).

And I don't enforce the new syntax, only in example plugin ( https://github.com/Bara20/Multi-Colo...ors_example.sp ). You need an 1.7+ compiler for this. Please read the code correct.
__________________
Discord (Bara#5006) | My Plugins (GitHub)
You like my work? Support is not a crime.
Bara is offline
Toastbrot_290
SourceMod Donor
Join Date: Apr 2013
Old 06-09-2015 , 10:02   Re: [INC] Multi Colors
Reply With Quote #13

Nvm i used a version before commit cf64cf5 this morning.
__________________
Toastbrot_290 is offline
iGANGNAM
AlliedModders Donor
Join Date: Sep 2012
Location: Lithuania
Old 06-19-2015 , 05:35   Re: [INC] Multi Colors
Reply With Quote #14

Can you make custom-chatcolors plugin with this include?
iGANGNAM is offline
Bara
AlliedModders Donor
Join Date: Apr 2012
Location: Germany
Old 06-19-2015 , 16:32   Re: [INC] Multi Colors
Reply With Quote #15

Not from my side, sry.
__________________
Discord (Bara#5006) | My Plugins (GitHub)
You like my work? Support is not a crime.
Bara is offline
PeEzZ
Senior Member
Join Date: Jan 2014
Location: Hungary
Old 10-10-2015 , 04:56   Re: [INC] Multi Colors
Reply With Quote #16

Idea: color HEX code in chat message.
Code:
CPrintToChatAll("{FF0000}This is an {00FF00}message.");
Server Say: "This is an message."
__________________
I MAKING MY PLUGINS/MAPS STILL, BUT I DON'T HAVE ENOUGH TIME, PLEASE STAND BY.
Sorry for my bad english, correct me if i'm wrong.
Magyarok írjanak PM-et ha fontos!

If you want, you can donate for me here
My plugins here / My maps here

Last edited by PeEzZ; 10-10-2015 at 04:56.
PeEzZ is offline
KissLick
Veteran Member
Join Date: Nov 2012
Location: void
Old 10-10-2015 , 07:25   Re: [INC] Multi Colors
Reply With Quote #17

Quote:
Originally Posted by PeEzZ View Post
Idea: color HEX code in chat message.
Code:
CPrintToChatAll("{FF0000}This is an {00FF00}message.");
Server Say: "This is an message."
This cannot work in CS:GO.
KissLick is offline
Bara
AlliedModders Donor
Join Date: Apr 2012
Location: Germany
Old 10-10-2015 , 08:58   Re: [INC] Multi Colors
Reply With Quote #18

Quote:
Originally Posted by KissLick View Post
This cannot work in CS:GO.
But on "source 2009".
__________________
Discord (Bara#5006) | My Plugins (GitHub)
You like my work? Support is not a crime.
Bara is offline
404UserNotFound
BANNED
Join Date: Dec 2011
Old 10-13-2015 , 18:51   Re: [INC] Multi Colors
Reply With Quote #19

I like the premise of this and I'm thinking of using it in a plugin I'm working on at the moment (an update of a rather old plugin) but I'm a bit confused about some things:

1. Being that Multi Colors uses the new decl's, would I be able to use this in a plugin that does not use the new decl's? I am using a 1.7 compiler, but I'm not sure if new syntax in an include mixes well with old syntax in a plugin.

2. With this, do I not have to do any form of GetGameEngine checks before any instances of like, CPrintToChat? The include does it on the fly when a message is printed? So like, if I send a message that uses something like "{community}Test Message" (which would look like TEST MESSAGE), it would automatically convert it to use whatever CS:GO uses and display the colors properly?

Last edited by 404UserNotFound; 10-13-2015 at 18:55.
404UserNotFound is offline
xXDeathreusXx
Veteran Member
Join Date: Mar 2013
Location: pPlayer->GetOrigin();
Old 10-22-2015 , 14:33   Re: [INC] Multi Colors
Reply With Quote #20

Quote:
Originally Posted by abrandnewday View Post
I like the premise of this and I'm thinking of using it in a plugin I'm working on at the moment (an update of a rather old plugin) but I'm a bit confused about some things:

1. Being that Multi Colors uses the new decl's, would I be able to use this in a plugin that does not use the new decl's? I am using a 1.7 compiler, but I'm not sure if new syntax in an include mixes well with old syntax in a plugin.

2. With this, do I not have to do any form of GetGameEngine checks before any instances of like, CPrintToChat? The include does it on the fly when a message is printed? So like, if I send a message that uses something like "{community}Test Message" (which would look like TEST MESSAGE), it would automatically convert it to use whatever CS:GO uses and display the colors properly?
You can have new syntax and old syntax mishmashed in a jumble of code unreadable to the human, but the computer reads it all as the same thing

As long as you don't have "#pragma newdecls required" in the plugin or the include, syntax is not enforced and it doesn't care

As for the second one, it does do game engine checks when the function is called, but if it converts it appropriately I'm not sure
__________________
Plugins|Profile
Requests closed

I'm a smartass by nature, get used to it
xXDeathreusXx is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:03.


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