Thread: [PI] Coloured Ingame names

Results 1 to 6 of 6
  1. #1 [PI] Coloured Ingame names 
    Registered Member
    Join Date
    Jul 2014
    Posts
    3
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    How do you make donators/staff have different name color in-game for a PI source? I was thinking of adding a green name colour for them, but can't figure out how. Will Rep++ if you can help me.

    Something similar to this below.
    Reply With Quote  
     

  2. #2  
    Registered Member Verisimilitude's Avatar
    Join Date
    Mar 2012
    Age
    26
    Posts
    487
    Thanks given
    45
    Thanks received
    17
    Rep Power
    0
    Quote Originally Posted by AM_Wizard View Post
    How do you make donators/staff have different name color in-game for a PI source? I was thinking of adding a green name colour for them, but can't figure out how. Will Rep++ if you can help me.


    Something similar to this below.
    Go to your Client folder,client sided. And open up the client.java
    Search for something like
    Code:
    } else if(s.startsWith("slide:"))
    Keep scrolling down a bit and you should find

    Code:
    if(myPrivilege == 4) {
    pushMessage(myPlayer.textSpoken, 2, "@cr0@" + myPlayer.name); //Donator
    } else if(myPrivilege == 3) {
    pushMessage(myPlayer.textSpoken, 2, "@cr2@" + myPlayer.name); //Owner
    } else if(myPrivilege == 2) {
    pushMessage(myPlayer.textSpoken, 2, "@cr2@" + myPlayer.name); //Admin
    } else if(myPrivilege == 1) {
    pushMessage(myPlayer.textSpoken, 2, "@cr1@" + myPlayer.name); //Moderator
    } else {
    pushMessage(myPlayer.textSpoken, 2, myPlayer.name); //Players
    }
    Edit your players rank privilages. There might/should be more than one, so change it to the same as the first one as you find them.
    [spoil][/spoil]
    Code:
    [Today 05:35 AM] Verisimilitude: My new siggy
    [Today 05:34 AM] Verisimilitude: Ikr
    [Today 05:34 AM] a Kitty: 'there is litteraly nothing i can do to reach him, so i will just stand here and accept my fate'

    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jul 2014
    Posts
    3
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Quote Originally Posted by Verisimilitude View Post
    Go to your Client folder,client sided. And open up the client.java
    Search for something like
    Code:
    } else if(s.startsWith("slide:"))
    Keep scrolling down a bit and you should find

    Code:
    if(myPrivilege == 4) {
    pushMessage(myPlayer.textSpoken, 2, "@cr0@" + myPlayer.name); //Donator
    } else if(myPrivilege == 3) {
    pushMessage(myPlayer.textSpoken, 2, "@cr2@" + myPlayer.name); //Owner
    } else if(myPrivilege == 2) {
    pushMessage(myPlayer.textSpoken, 2, "@cr2@" + myPlayer.name); //Admin
    } else if(myPrivilege == 1) {
    pushMessage(myPlayer.textSpoken, 2, "@cr1@" + myPlayer.name); //Moderator
    } else {
    pushMessage(myPlayer.textSpoken, 2, myPlayer.name); //Players
    }
    Edit your players rank privilages. There might/should be more than one, so change it to the same as the first one as you find them.

    Now, what should I do? I want them to have a green coloured name, and I have already found the file. Should I be doing the below?

    else if(myPrivilege == 1)
    pushMessage(myPlayer.textSpoken, 2, "@cr1@" + @gre@ myPlayer.name);
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Jan 2014
    Posts
    813
    Thanks given
    69
    Thanks received
    47
    Rep Power
    9
    Use the search engine buddy
    Reply With Quote  
     

  5. #5  
    Registered Member Verisimilitude's Avatar
    Join Date
    Mar 2012
    Age
    26
    Posts
    487
    Thanks given
    45
    Thanks received
    17
    Rep Power
    0
    Quote Originally Posted by AM_Wizard View Post
    Now, what should I do? I want them to have a green coloured name, and I have already found the file. Should I be doing the below?
    Yea, but if it doesn't work then you need hexdecimals like this
    Code:
    <col=255> myPlayer.name</col>
    I think o-O
    Here are some, but you can go to this site
    Blue: 255
    Purple: 20451204
    Green: 255125000
    Black: 330000
    Orange: 616582400
    Yellow: 200000000
    Red: 800000000
    White: 99999999
    [spoil][/spoil]
    Code:
    [Today 05:35 AM] Verisimilitude: My new siggy
    [Today 05:34 AM] Verisimilitude: Ikr
    [Today 05:34 AM] a Kitty: 'there is litteraly nothing i can do to reach him, so i will just stand here and accept my fate'

    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Jul 2014
    Posts
    3
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Quote Originally Posted by Verisimilitude View Post
    Yea, but if it doesn't work then you need hexdecimals like this
    Code:
    <col=255> myPlayer.name</col>
    I think o-O
    Here are some, but you can go to this site
    Blue: 255
    Purple: 20451204
    Green: 255125000
    Black: 330000
    Orange: 616582400
    Yellow: 200000000
    Red: 800000000
    White: 99999999

    Sorry for late reply, but I'm getting errors while adding the code the way you did.
    Ill post an image:
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Replies: 6
    Last Post: 07-17-2012, 11:22 PM
  2. [PI]changing teleport names [PI]
    By rexz0rd in forum Snippets
    Replies: 17
    Last Post: 02-26-2012, 12:44 PM
  3. [PI] Lunar Teleport Names
    By Markian in forum Help
    Replies: 14
    Last Post: 04-19-2011, 06:08 PM
  4. [PI] Changing object names?
    By Ross in forum Help
    Replies: 5
    Last Post: 09-04-2010, 04:25 PM
  5. [PI]Fixing Player Names (like keith, should be Keith)
    By Shemhamforash in forum Snippets
    Replies: 21
    Last Post: 06-11-2010, 03:57 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •