player ranks

=RK=MarineForce

  • Sr. Member
  • why noise ??? Re 100%
  • Posts: 388
player ranks
«  »Last edited
Code: [Select]
local ranks = "Member Pro Unstopable GodLike GodFather"

Code: [Select]
function onPlayerKill( player, killer, reason, bodypart )
{
if ( plr.kills < 10 ) MessagePlayer(" " + plr.Name + " Rank  Newbie ",player);
if ( player.kills = 30 ) Announce( "~q~ Rank Member", plr, 5 );
if ( player.kills = 50 ) Announce( "~q~ Rank Pro", plr, 5 );
if ( player.kills = 100 ) Announce( "~q~ Rank Unstopable", plr, 5 );
if ( player.kills = 200 ) Announce( "~q~ Rank GodLIKE", plr, 5 );
if ( player.kills = 250 ) Announce( "~q~ Rank GodFather", plr, 5 );
}

Code: [Select]
function onPlayerJoin( player )
{
if ( player.kills < 10 ) MessagePlayer(" " + plr.Name + " Rank  Newbie ",player);
if ( player.kills = 30 ) Announce( "~q~ Rank Member", plr, 5 );
if ( player.kills = 50 ) Announce( "~q~ Rank Pro", plr, 5 );
if ( player.kills = 100 ) Announce( "~q~ Rank Unstopable", plr, 5 );
if ( player.kills = 200 ) Announce( "~q~ Rank GodLIKE", plr, 5 );
if ( player.kills = 250 ) Announce( "~q~ Rank GodFather", plr, 5 );
}

Code: [Select]
function onPlayerCommand( player, cmd, text )
{
else if ( cmd == "rank" )
{
local plr = FindPlayer(text);
if(text) MessagePlayer(" /rank <NICK> ",player);
if(!plr) MessagePlayer(" text + " not online ",player);
else{
if ( plr.kills < 10 ) MessagePlayer(" " + plr.Name + " Rank  Newbie ",player);
if ( plr.kills < 30 ) MessagePlayer(" " + plr.Name + " Rank  Member ",player);
if ( plr.kills  < 50 ) MessagePlayer(" " + plr.Name + " Rank  PRO ",player);
if ( plr.kills < 100 ) MessagePlayer(" " + plr.Name + " Rank  Unstopable ",player);
if ( plr.kills < 200 ) MessagePlayer(" " + plr.Name + " Rank  GOD Father ",player);
if ( plr.kills < 250 ) MessagePlayer(" " + plr.Name + " Rank  GOD LIKE  ",player);
}
}
}


Code: [Select]
else if ( cmd == "rank" )
{
local plr = FindPlayer(text);
if(!plr) MessagePlayer(" text + " not online ",player);
else{
if ( plr.kills < 10 ) MessagePlayer(" " + plr.Name + " Rank  Newbie ",player);
if ( plr.kills = 30 ) MessagePlayer(" " + plr.Name + " Rank  Member ",player);
if ( player.kills = 30 ) Announce( "~q~ Rank Member", plr, 5 );
if ( player.kills = 31 ) Announce( "~q~ Rank Member", plr, 5 );
if ( player.kills = 32 ) Announce( "~q~ Rank Member", plr, 5 );
if ( player.kills = 33 ) Announce( "~q~ Rank Member", plr, 5 );
if ( player.kills = 34 ) Announce( "~q~ Rank Member", plr, 5 );
if ( player.kills = 35 ) Announce( "~q~ Rank Member", plr, 5 );
if ( player.kills = 36 ) Announce( "~q~ Rank Member", plr, 5 );
if ( player.kills = 37 ) Announce( "~q~ Rank Member", plr, 5 );
if ( player.kills = 30 ) Announce( "~q~ Rank Member", plr, 5 );
if ( player.kills = 50 ) Announce( "~q~ Rank Pro", plr, 5 );
if ( player.kills = 38 ) Announce( "~q~ Rank Member", plr, 5 );
if ( player.kills = 39 ) Announce( "~q~ Rank Member", plr, 5 );
if ( player.kills = 40 ) Announce( "~q~ Rank Member", plr, 5 );
if ( player.kills = 41 ) Announce( "~q~ Rank Member", plr, 5 );
if ( player.kills = 42 ) Announce( "~q~ Rank Member", plr, 5 );
if ( player.kills = 43 ) Announce( "~q~ Rank Member", plr, 5 );
if ( player.kills = 44 ) Announce( "~q~ Rank Member", plr, 5 );
if ( player.kills = 45 ) Announce( "~q~ Rank Member", plr, 5 );
if ( player.kills = 46 ) Announce( "~q~ Rank Member", plr, 5 );
if ( player.kills = 47 ) Announce( "~q~ Rank Member", plr, 5 );
if ( player.kills = 48 ) Announce( "~q~ Rank Member", plr, 5 );
if ( player.kills = 49 ) Announce( "~q~ Rank Member", plr, 5 );
if ( plr.kills = 50 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 51 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 52 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 53 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 54 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 55 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 56 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 57 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 58 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 59 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 60 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 61 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 62 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 63 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 64 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 65 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 66 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 67 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 68 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 69 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 70 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 71 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 72 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 73 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 74 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 75 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 76 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 77 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 78 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 79 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 80 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 81 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 82 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 83 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 84 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 85 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 86 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 87 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 88 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 89 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 90 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 91 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 92 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 93 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 94 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 95 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 96 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 97 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 98 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 99 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 100 ) MessagePlayer(" " + plr.Name + " Rank Unstopable ",player);
if ( plr.kills = 101 ) MessagePlayer(" " + plr.Name + " Rank Unstopable",player);
if ( plr.kills = 102 ) MessagePlayer(" " + plr.Name + " Rank  Unstopable ",player);
if ( plr.kills = 103 ) MessagePlayer(" " + plr.Name + " Rank  Unstopable ",player);
if ( plr.kills = 104 ) MessagePlayer(" " + plr.Name + " Rank Unstopable",player);
if ( plr.kills = 105 ) MessagePlayer(" " + plr.Name + " Rank  Unstopable ",player);
if ( plr.kills = 106 ) MessagePlayer(" " + plr.Name + " Rank  Unstopable",player);
if ( plr.kills = 107 ) MessagePlayer(" " + plr.Name + " Rank Unstopable",player);
if ( plr.kills = 108 ) MessagePlayer(" " + plr.Name + " Rank  Unstopable",player);
if ( plr.kills = 109 ) MessagePlayer(" " + plr.Name + " Rank  Unstopable ",player);
if ( plr.kills = 111 ) MessagePlayer(" " + plr.Name + " Rank P Unstopable ",player);
if ( plr.kills = 112 ) MessagePlayer(" " + plr.Name + " Rank  Unstopable ",player);
if ( plr.kills = 113 ) MessagePlayer(" " + plr.Name + " Rank  Unstopable ",player);
if ( plr.kills = 114 ) MessagePlayer(" " + plr.Name + " Rank Unstopable",player);
if ( plr.kills = 115 ) MessagePlayer(" " + plr.Name + " Rank  Unstopable",player);
if ( plr.kills = 116 ) MessagePlayer(" " + plr.Name + " Rank  Unstopable ",player);
if ( plr.kills = 117 ) MessagePlayer(" " + plr.Name + " Rank  Unstopable ",player);
if ( plr.kills = 118 ) MessagePlayer(" " + plr.Name + " Rank  Unstopable",player);
if ( plr.kills = 119 ) MessagePlayer(" " + plr.Name + " Rank  Unstopable ",player);
if ( plr.kills = 121 ) MessagePlayer(" " + plr.Name + " Rank  Unstopable ",player);
if ( plr.kills = 122 ) MessagePlayer(" " + plr.Name + " Rank  Unstopable ",player);
if ( plr.kills = 123 ) MessagePlayer(" " + plr.Name + " Rank  Unstopable ",player);
if ( plr.kills = 124 ) MessagePlayer(" " + plr.Name + " Rank  Unstopable",player);
if ( plr.kills = 125 ) MessagePlayer(" " + plr.Name + " Rank  Unstopable ",player);
if ( plr.kills = 126 ) MessagePlayer(" " + plr.Name + " Rank  Unstopable ",player);
if ( plr.kills = 127 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 128 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 129 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 130 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 131 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 132 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 133 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 134 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 135 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 136 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 137 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 138 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 139 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 141 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 142 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 143 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 144 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 145 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 146 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 147 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 148 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 149 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 150 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 151 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 152 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 153 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 154 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 155 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 156 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 157 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 158 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 159 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 160 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 161 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 162 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 163 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 164 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 165 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 166 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 167 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 168 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 169 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 170 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 171 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 172 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 173 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 174 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 175 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 176 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 177 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 178 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 179 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 180 ) MessagePlayer(" " + plr.Name + " Rank Pro ",player);
if ( plr.kills = 200 ) MessagePlayer(" " + plr.Name + " Rank GodLike",player);
}
}



Mahmoud Tornado

  • Full Member
  • Posts: 215
Re: player ranks
« Reply #1,  »Last edited
There's nothing called, player.Kills so, u can make it with Stats[player.ID].Kills, or in other way you can make it by player.Score.
Local ranks are unused so it doesn't  important.
There's a problems in the command that will make u bugged a lot, it been like that. ↓↓
Code: [Select]
if(! text) MessagePlayer("/rank <NICK> ",player); //It's Important to use "!" if the text unused. "false"
else{
local plr = FindPlayer(text); // Add this after else
if(!plr) MessagePlayer( plr + " not online ",player); //This too and this the problem was in this " .

Yourcodes........
I just say this to be careful in the next time if something bugged may be an something small like this ! or " or +.
Finally, Nice again as you trying to make by yourself.

Off Topic: Player.anything will find here. Squirrel Player Functions

umar4911

  • Sr. Member
  • Creating own server!
  • Posts: 375
Re: player ranks
« Reply #2,  »
Complete waste topic
I am gamer, programmer and hacker. Try to find me!
xD

=RK=MarineForce

  • Sr. Member
  • why noise ??? Re 100%
  • Posts: 388

[KM]Helathien

  • Newbie
  • Posts: 22
Re: player ranks
« Reply #4,  »
Quote from umar4911 on September 16th, 03:03 PM
Complete waste topic
I agree, I haven't tested it but I know it won't work.

@marineforce plr.kill doesn't exist tho.
Feel free to PM me for any help.
If I am not available on the forum come to VKs Official Server I am usually there.

=RK=MarineForce

  • Sr. Member
  • why noise ??? Re 100%
  • Posts: 388
Re: player ranks
« Reply #5,  »
stats[player.ID].kills == player.Kills; its working at my server thats why...