Raised This Month: $32 Target: $400
 8% 

[ANY] ServerAdvertisement3 - MultiLang | *UPDATED 05.04.2020* | *VERSION 3.1.4


Post New Thread Reply   
 
Thread Tools Display Modes
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 05-03-2017 , 13:01   Re: [ANY] ServerAdvertisement3 - MultiLang | *UPDATED 2.5.2017* | *NEW FEATURES*
Reply With Quote #421

Nice release Esk0, very helpful use of newly available game_text in CS:GO.

A couple things:

I had to change this line to
Code:
char sServerName[64];
so I could fit my server tag with multiple colors, different colored brackets & inner tag text can make the tag take up quite a bit more room, very quickly. I'm assuming others will run across this same issue, might be worth tweaking.

A suggestion: Would it be possible to implement a feature to allow game_text "h" adverts be displayed at the same time as other types of adverts (ex. chat advert)? I personally would like to constantly roll adverts using game_text since they do not take up much space and don't spam chat, while occasionally printing chat adverts once in a while.
__________________
sneaK is offline
ESK0
BANNED
Join Date: May 2014
Location: Czech Republic
Old 05-03-2017 , 13:25   Re: [ANY] ServerAdvertisement3 - MultiLang | *UPDATED 2.5.2017* | *NEW FEATURES*
Reply With Quote #422

Quote:
Originally Posted by sneaK View Post
Nice release Esk0, very helpful use of newly available game_text in CS:GO.

A couple things:

I had to change this line to
Code:
char sServerName[64];
so I could fit my server tag with multiple colors, different colored brackets & inner tag text can make the tag take up quite a bit more room, very quickly. I'm assuming others will run across this same issue, might be worth tweaking.

A suggestion: Would it be possible to implement a feature to allow game_text "h" adverts be displayed at the same time as other types of adverts (ex. chat advert)? I personally would like to constantly roll adverts using game_text since they do not take up much space and don't spam chat, while occasionally printing chat adverts once in a while.
Thank you so much!

Code:
sServerName size increased to 64 - Hopefully, it's enough.
I have thought about the same but now I am working on something else what could be more or same interesting as displaying HUD and CHAT messages at once. But I added it to my Todo list. Thanks for your suggestion.

Feel free to tell me any other suggestions or code improvements.
ESK0 is offline
qiuhaian
Senior Member
Join Date: Nov 2009
Old 05-03-2017 , 23:57   Re: [ANY] ServerAdvertisement3 - MultiLang | *UPDATED 2.5.2017* | *NEW FEATURES*
Reply With Quote #423

hud message:
ct use blue color
t use orange color?
hope MySQL support.
thanks.
qiuhaian is offline
ESK0
BANNED
Join Date: May 2014
Location: Czech Republic
Old 05-04-2017 , 00:07   Re: [ANY] ServerAdvertisement3 - MultiLang | *UPDATED 2.5.2017* | *NEW FEATURES*
Reply With Quote #424

Quote:
Originally Posted by qiuhaian View Post
hud message:
ct use blue color
t use orange color?
hope MySQL support.
thanks.
You can use own color with RGB. "color" "R G B" R/G/B is number from 0 to 255.

Last edited by ESK0; 05-04-2017 at 00:08.
ESK0 is offline
krikus62
Senior Member
Join Date: Jan 2015
Old 05-07-2017 , 19:25   Re: [ANY] ServerAdvertisement3 - MultiLang | *UPDATED 2.5.2017* | *NEW FEATURES*
Reply With Quote #425

How would one display a message to players without any flags?
__________________
My plugins:
Spoiler
krikus62 is offline
ESK0
BANNED
Join Date: May 2014
Location: Czech Republic
Old 05-08-2017 , 02:58   Re: [ANY] ServerAdvertisement3 - MultiLang | *UPDATED 2.5.2017* | *NEW FEATURES*
Reply With Quote #426

Quote:
Originally Posted by krikus62 View Post
How would one display a message to players without any flags?
Use "all" as a flag or leave it empty or just remove "flags" key like its in message 3,4,5
ESK0 is offline
qiuhaian
Senior Member
Join Date: Nov 2009
Old 05-08-2017 , 03:14   Re: [ANY] ServerAdvertisement3 - MultiLang | *UPDATED 2.5.2017* | *NEW FEATURES*
Reply With Quote #427

you can add:
PHP Code:
  if (StrContains(message"{CURRENTDATE}") != -1
  {
    
FormatTime(sBuffersizeof(sBuffer), "%Y-%m-%d");
    
ReplaceString(messagelen"{CURRENTDATE}"sBuffer);
  } 
qiuhaian is offline
ESK0
BANNED
Join Date: May 2014
Location: Czech Republic
Old 05-08-2017 , 05:35   Re: [ANY] ServerAdvertisement3 - MultiLang | *UPDATED 2.5.2017* | *NEW FEATURES*
Reply With Quote #428

Quote:
Originally Posted by qiuhaian View Post
you can add:
PHP Code:
  if (StrContains(message"{CURRENTDATE}") != -1
  {
    
FormatTime(sBuffersizeof(sBuffer), "%Y-%m-%d");
    
ReplaceString(messagelen"{CURRENTDATE}"sBuffer);
  } 
Good idea ) Thanks
ESK0 is offline
krikus62
Senior Member
Join Date: Jan 2015
Old 05-08-2017 , 07:15   Re: [ANY] ServerAdvertisement3 - MultiLang | *UPDATED 2.5.2017* | *NEW FEATURES*
Reply With Quote #429

Quote:
Originally Posted by ESK0 View Post
Use "all" as a flag or leave it empty or just remove "flags" key like its in message 3,4,5
No you misunderstood, what I need is to display message to players without any flags, but hide it from anyone who has a flag. So I could let players who dont have VIP know that they can buy it, but those who do have shouldnt see that advertisement.
__________________
My plugins:
Spoiler
krikus62 is offline
ESK0
BANNED
Join Date: May 2014
Location: Czech Republic
Old 05-08-2017 , 07:39   Re: [ANY] ServerAdvertisement3 - MultiLang | *UPDATED 2.5.2017* | *NEW FEATURES*
Reply With Quote #430

Quote:
Originally Posted by krikus62 View Post
No you misunderstood, what I need is to display message to players without any flags, but hide it from anyone who has a flag. So I could let players who dont have VIP know that they can buy it, but those who do have shouldnt see that advertisement.
Oh I understand now Going to add it to new version.
ESK0 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 04:18.


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