Page 3 of 3

Re: help with script :)

Posted: June 15th, 2011, 4:06 pm
by IzNoGoD
The edges cant be colored (at least not in cod2, cod4 seems to have some sort of glow function though)
You can however use any rgb value you like, so:
hud.color=(1,0,0); will result in a red hud

2.
Use:

Code: Select all

hud.label=&"This is a label";
hud setplayernamestring(player);

Re: help with script :)

Posted: June 15th, 2011, 9:30 pm
by Goro92
IzNoGoD wrote:The edges cant be colored (at least not in cod2, cod4 seems to have some sort of glow function though)
You can however use any rgb value you like, so:
hud.color=(1,0,0); will result in a red hud

2.
Use:

Code: Select all

hud.label=&"This is a label";
hud setplayernamestring(player);

Code: Select all

hud setplayernamestring(player);
k works thx again!

but is possible to show the playernamestring after a prechacestring?
like

Code: Select all

 player.credits.label = &"HELLOWORLD"+playernamestring(player);
i know that my code is not right...need help

Re: help with script :)

Posted: June 16th, 2011, 1:19 am
by IzNoGoD
serveaiuto wrote: but is possible to show the playernamestring after a prechacestring?
like

Code: Select all

 player.credits.label = &"HELLOWORLD"+playernamestring(player);
i know that my code is not right...need help

yes, it is possible:
Use:

Code: Select all

hud.label=&"This is a label &&1";
hud setplayernamestring(player);
Watch the &&1, this is where the settext/setvalue/setplayernamestring goes.

Re: help with script :)

Posted: June 16th, 2011, 8:20 am
by Goro92
IzNoGoD wrote:Watch the &&1, this is where the settext/setvalue/setplayernamestring goes
ohhhhhhh yes! :D

i needed that .....another time thanks

Re: help with script :)

Posted: June 17th, 2011, 3:22 pm
by Goro92
IzNoGoD wrote:The edges cant be colored (at least not in cod2, cod4 seems to have some sort of glow function though)
I found it :mrgreen:

Code: Select all

 player.credits.glowcolor = (1, 0, 0);
    player.credits.glowalpha = 0.7;

maybe also in cod2 try :P