Originally Posted by
AM_Wizard
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.