This will work for fsod and realms resolution, IDK if it works for other sources just try it on them.
When you're done it should look something like this:
as you can see it will say [Owner] in the chat but not in your name so people can still /tell you with your original name.
Let's start. First off we're gonna fix the custom ranks.
Head to wServer => realm => commands => commands.cs
find the section where it sais :
Code:
private static int GetPermissionLevel(Player player)
{
if (player.Client.Account.Rank == 3)
return 1;
return 0;
}
and replace that with this:
Code:
private static int GetPermissionLevel(Player player)
{
return player.Client.Account.Rank;
}
internal class Ranks
{
public static readonly int Owner = 5;
public static readonly int Dev = 4;
public static readonly int Admin = 3;
public static readonly int Mod = 2;
public static readonly int Donor = 1;
}
you can change the values and add more if you want to. Now when we are changing our ranks we don't put
Code:
internal class Kick : Command
{
public Kick()
: base("kick", 5)
{
}
you do it like this:
Code:
internal class Kick : Command
{
public Kick()
: base("kick", Ranks.Owner)
{
}
So when you, for example, want to add a new rank you simply put it in here like this:
Code:
{
public static readonly int Owner = 6;
public static readonly int Dev = 5;
public static readonly int MPGH = 4
public static readonly int Admin = 3;
public static readonly int Mod = 2;
public static readonly int Donor = 1;
}
so you don't need to change the value for every command you have, it changes automatically.
Now for the custom tags/prefixes.
Head to wServer => realm => ChatManager.cs
find this:
It goes in a list from highest to lowest so the highest rank ALWAYS needs to be the one all the way to the left and the lowest rank on the right. You can't have it here and there cuz it won't work. If you put a "@" before your tag your name and text will be yellow. If you put a "#" before your tag your name and text will be orange.If you don't put either '@' or '#' it will be the normal color. If you get any errors post them bellow and ill see what i can do. Have fun!
Maybe we can see servers that doesnt have their prefix in their name, nice tutorial.
Hello got 2 errors in Microsoft Visual , here are : h ttp s://gy azo.c om/d 90b8bc 011d f7aea85b 74051bbb2c 5f4 ; htt ps://gy azo.com/0bcf45a 1de e0c2029 970a7 1a5d 30fd6f
Originally Posted by badboyallan
Hello got 2 errors in Microsoft Visual , here are : h ttp s://gy azo.c om/d 90b8bc 011d f7aea85b 74051bbb2c 5f4 ; htt ps://gy azo.com/0bcf45a 1de e0c2029 970a7 1a5d 30fd6f
but you should just put other code UNDER it, your not supposed to put that somewhere
You got a thanks from me ^^
Credits?? Pretty sure @rigged said somethıng about this.
Originally Posted by Orbit
add this:
Code:
internal class Ranks
{
public static readonly int Owner = 5;
public static readonly int Dev = 4;
public static readonly int Admin = 3;
public static readonly int Mod = 2;
public static readonly int Donor = 1;
}
btw your source is so nice will you ever release it ?
Originally Posted by BurritoYunus
Credits?? Pretty sure @rigged said somethıng about this.
Anyone with a brain could have done so, that's not even the best way to do it, Kithi posted on my thread a shorter and more efficient way of doing it.
This was already simple enough, if you want your name to be the announcement color, instead of @ put #, if you just want the prefix without any special colors, don't put any symbol, just the Prefix
- - - Updated - - -
Although I'll drop a thanks because it was a good tut
Originally Posted by Riigged
Anyone with a brain could have done so, that's not even the best way to do it, Kithi posted on my thread a shorter and more efficient way of doing it.
Yeh i know, but no creds? He also did it the way you showed..
Originally Posted by BurritoYunus
Yeh i know, but no creds? He also did it the way you showed..
Unless there is 100% proof he actually copied the code from Riigged's thread, can't give credits.
OP could've done it without seeing the thread
xd no argument plis about credits on something any1 could do without tut or no plis <3
Hello again . if i want to add a command to rank 3 how i do ?
I had many errors at first, but the problem that fixed it was log needs to be capitalized to Log.
But thanks for the code!
Hey man, i did everything here and still dont know how to make the ranks. When i type in chat it doesn't say owner or anything. also it doesn't say it on my name, Plz Reply ASAP i need help!