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

Tank Damage Announce by griffin


Post New Thread Reply   
 
Thread Tools Display Modes
eric0279
AlliedModders Donor
Join Date: May 2007
Old 09-15-2012 , 03:44   Re: Tank Damage Announce by griffin
Reply With Quote #21

Hello,

Quote:
"HP_Tank"
{
"#format" "{1:d},{2:d},{3:N}"
"en" "{olive} {1} {green}HP{olive} {green}({lightgreen}{2}%{green}) {green}: {lightgreen}{3}"

}

% doesn't works, why ?


.txt file is enconding to UTF-8 without bom


Thanks
eric0279 is offline
eric0279
AlliedModders Donor
Join Date: May 2007
Old 12-08-2012 , 19:09   Re: Tank Damage Announce by griffin
Reply With Quote #22

Hello,

kill a tank with bot in campaing :
Code:
4000 HP (66 %) : blablabla  0 HP (0 %) : Coach  0 HP (0 %) : Rochelle  0 HP (0 %) : Ellis  4000
HP = 100 % and not 66%....

In versus mode: it's correctly :
Code:
  6000 HP (100 %) : blablabla
same problem in Expert mode...


Thank you for fix

Last edited by eric0279; 01-14-2013 at 01:47.
eric0279 is offline
arnold
Junior Member
Join Date: Jul 2011
Old 04-30-2013 , 02:19   Re: Tank Damage Announce by griffin
Reply With Quote #23

Quote:
Originally Posted by eric0279 View Post
Hello,




% doesn't works, why ?


.txt file is enconding to UTF-8 without bom


Thanks
still not working ? i see some server wokrs fine ? but i dont know how to get the plugin ?
__________________
Games lover
arnold is offline
s.m.a.c head
Senior Member
Join Date: Apr 2012
Location: Liverpool
Old 06-27-2015 , 13:26   Re: Tank Damage Announce by griffin
Reply With Quote #24

crashes my server on some maps when tank has spawned?
s.m.a.c head is offline
BlackSabbarh
Senior Member
Join Date: Sep 2018
Old 03-05-2019 , 01:08   Re: Tank Damage Announce by griffin
Reply With Quote #25

with colors does not work%, some version fix?
BlackSabbarh is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 03-05-2019 , 17:21   Re: Tank Damage Announce by griffin
Reply With Quote #26

What does not works? Don't print the "%" or the health is displayed with an incorrect value?
Marttt is offline
BlackSabbarh
Senior Member
Join Date: Sep 2018
Old 03-05-2019 , 18:32   Re: Tank Damage Announce by griffin
Reply With Quote #27

Quote:
Originally Posted by Marttt View Post
What does not works? Don't print the "%" or the health is displayed with an incorrect value?

when adding the include #include <colors> and change to CPrintToChatAll the% symbol does not appear in the damage panel indicating%

does not print the "%"

Last edited by BlackSabbarh; 03-05-2019 at 18:33.
BlackSabbarh is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 03-05-2019 , 20:08   Re: Tank Damage Announce by griffin
Reply With Quote #28

Try to replace it with %% (double)

% is a reserved char used as a parameter to replace values.

Here has some info: how to print '%' character

Sample: (not tested)
Code:
PrintToServer("Test this is a bool %b, this is an integer %i, this is a double %d, this is a text %s, this is a %%", true, 1, 2.0, "text");

Last edited by Marttt; 03-05-2019 at 20:12.
Marttt is offline
AK978
Senior Member
Join Date: Jun 2018
Old 03-05-2019 , 20:14   Re: Tank Damage Announce by griffin
Reply With Quote #29

color.inc
{"{default}", "{green}", "{lightgreen}", "{red}", "{blue}", "{olive}"}; // color *2
{"\x01", "\x04", "\x03", "\x03", "\x03", "\x05"}; //color *n


https://wiki.alliedmods.net/Format_C...eMod_Scripting)

CPrintToChatAll("{green}%N", client);

or

CPrintToChatAll("\x04%N", client);

Last edited by AK978; 03-05-2019 at 20:25.
AK978 is offline
Mika
New Member
Join Date: Dec 2020
Old 12-14-2020 , 19:00   Re: Tank Damage Announce by griffin
Reply With Quote #30

Can someone compile this for me please? I've been trying to find a plugin like this for l4d1 but with no success.
Mika is offline
Reply



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 05:01.


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