Color of player in gui

For fulfilled maps that most likely don't work on the latest patch (1.24 or later).

Moderator: Cheaters

Arabidnun
Forum Staff
Posts: 506
Joined: August 5th, 2007, 1:38 pm
Title: Gui Expert
Location: *Unknown*

Color of player in gui

Post by Arabidnun »

How can i do this...i know how to make it happen i just dont know how to do it in player colors...

I want o know how to make it so when a player dies, their name and color that they are specifically at that time is displayed...

Like Arabidnun Eliminates KillerNoob
User avatar
Aero
Forum Staff
Posts: 829
Joined: January 28th, 2007, 8:10 pm
Title: JASS Programmer
Location: Canada

Re: Color of player in gui

Post by Aero »

Create a GUI variable called "PlayerNames" and run this code at map initialization (GUI)

Code: Select all

Actions
    Set PlayerNames[1] = (|c00ff0303 + ((Name of Player 1 (Red)) + |r)
    Set PlayerNames[2] = (|c000042ff + ((Name of Player 2 (Blue)) + |r)
    Set PlayerNames[3] = (|c001ce6b9 + ((Name of Player 3 (Teal)) + |r)
    Set PlayerNames[4] = (|c00540081 + ((Name of Player 4 (Purple)) + |r)
    Set PlayerNames[5] = (|c00fffc01 + ((Name of Player 5 (Yellow)) + |r)
    Set PlayerNames[6] = (|c00ff8000 + ((Name of Player 6 (Orange)) + |r)
    Set PlayerNames[7] = (|c0020c000 + ((Name of Player 7 (Green)) + |r)
    Set PlayerNames[8] = (|c00e55bb0 + ((Name of Player 8 (Pink)) + |r)
    Set PlayerNames[9] = (|c00959697 + ((Name of Player 9 (Gray)) + |r)
    Set PlayerNames[10] = (|c007ebff1 + ((Name of Player 10 (Light Blue)) + |r)
    Set PlayerNames[11] = (|c00106246 + ((Name of Player 11 (Dark Green)) + |r)
    Set PlayerNames[12] = (|c004e2a04 + ((Name of Player 12 (Brown)) + |r))
Simply use PlayerNames[Player #] in place of "Name of Player #"
Arabidnun
Forum Staff
Posts: 506
Joined: August 5th, 2007, 1:38 pm
Title: Gui Expert
Location: *Unknown*

Re: Color of player in gui

Post by Arabidnun »

Tyvm I appreciate it