help with script :)

Have questions about CoD4 mapping that aren't covered in the tutorials section? Post here!

Moderator: Core Staff

IzNoGoD
CJ Worshipper
CJ Worshipper
Posts: 343
Joined: January 6th, 2009, 8:39 pm
Location: Netherlands/Holland

Re: help with script :)

Post by IzNoGoD » June 15th, 2011, 4:06 pm

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);
LMGTFY!

Its not a glitch... Its the future!

User avatar
Goro92
CJ Spammer!
CJ Spammer!
Posts: 605
Joined: March 7th, 2011, 5:54 pm
Location: Brescia, Italy

Re: help with script :)

Post by Goro92 » June 15th, 2011, 9:30 pm

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
Image

IzNoGoD
CJ Worshipper
CJ Worshipper
Posts: 343
Joined: January 6th, 2009, 8:39 pm
Location: Netherlands/Holland

Re: help with script :)

Post by IzNoGoD » June 16th, 2011, 1:19 am

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.
LMGTFY!

Its not a glitch... Its the future!

User avatar
Goro92
CJ Spammer!
CJ Spammer!
Posts: 605
Joined: March 7th, 2011, 5:54 pm
Location: Brescia, Italy

Re: help with script :)

Post by Goro92 » June 16th, 2011, 8:20 am

IzNoGoD wrote:Watch the &&1, this is where the settext/setvalue/setplayernamestring goes
ohhhhhhh yes! :D

i needed that .....another time thanks
Image

User avatar
Goro92
CJ Spammer!
CJ Spammer!
Posts: 605
Joined: March 7th, 2011, 5:54 pm
Location: Brescia, Italy

Re: help with script :)

Post by Goro92 » June 17th, 2011, 3:22 pm

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
Image

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest