Is this command to check what your kill level is?
Paste in OnPlayerCommand
else if (cmd == "lvl") {
// Check if the player is logged in
if (stats[player.ID].Logged == false)
return MessagePlayer("[#FF0000][Error] - You need to be logged in to use this command.", player);
// Get player's rank
local rank = GetCriminalRank(player);
// Display stats and rank
MessagePlayer(
"[#00ff00]Your Rank: [#FFFFFF]Kills: [#FFFF00]" + stats[player.ID].Kills +
"[#FFFFFF], Deaths: [#FF4500]" + stats[player.ID].Deaths +
"[#FFFFFF], Rank: [#39FF14]" + rank + ".",
player
);
}
Paste this at the end of the script.
function GetCriminalRank( player )
{
local kill=stats[ player.ID ].Kills,a;
if(kill<=10)
{
a="Begginer";
return a;
}
else if(kill<=20)
{
a="Adventurer";
return a;
}
else if(kill<=40)
{
a="Dangerous";
return a;
}
else if(kill<=60)
{
a="Fighter";
return a;
}
else if(kill<=80)
{
a="Middle One";
return a;
}
else if(kill<100)
{
a="Legolas";
return a;
}
else if(kill<=120)
{
a="Hustler";
return a;
}
else if(kill<=130)
{
a="PRO";
return a;
}
else if(kill<=140)
{
a="Outlaw";
return a;
}
else if(kill<=160)
{
a="Assassin";
return a;
}
else if(kill<=180)
{
a="Murderous";
return a;
}
else if(kill<=200)
{
a="Dragon Slayer";
return a;
}
else if(kill<=250)
{
a="Boss";
return a;
}
else if(kill<=300)
{
a="Legend";
return a;
}
else if(kill<=500)
{
a="Godfather";
return a;
}
else if(kill<=10000)
{
a="DarkSider";
return a;
}
return 0;
}
{
print("Kill Level System Successfully Loaded By ZainGamingNinjaPro");
}
My request to you is to keep my credit for this, please.
Replace With OnPlayerChat
Onplayerchat
local rank = GetCriminalRank(player); // Get the rank based on kills
ClientMessageToAll(
"[#FFFFFF]--<< " + levelTag + " [#FF0000]" + rank + " >>-- [#00FFFF]" + player.Name +
"[#FFFFFF]: " + text,
player.Color.r, player.Color.g, player.Color.b
);
print(levelTag + " " + rank + " " + player.Name + ": " + text);
}
Thank you for keeping my credit.
u forget to add return;