[HELP] GetPlayerRank - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP] GetPlayerRank (
/showthread.php?tid=286988)
[HELP] GetPlayerRank -
serman - 01.10.2011
Hello,
Код:
stock GetPlayerRank(playerid)
{
new rank[100];
switch(Kills3[playerid])
{
case 0..25:rank = "Newbie Shooter";
case 26..75:rank = "Killer Shooter";
case 76..150:rank = "Master Shooter";
case 151..300:rank = "Pro Shooter";
case 301..450:rank = "Striker Shooter";
case 451..675:rank = "Freekill Shooter";
case 676..1000:rank = "Psycho Shooter";
case 1001..1500:rank = "Fatal Shooter";
case 1501..2250:rank = "Havoc Shooter";
case 2251..3375:rank = "Extreme Shooter";
case 3376..5100:rank = "Wild Shooter";
case 5101..7650:rank = "Hazardous Shooter";
case 7651..11475:rank = "IGI Shooter";
case 11476..17500:rank = "Tactical Shooter";
case 17501..26250:rank = "Deticated Shooter";
case 26251..39375:rank = "Insane Shooter";
case 39376..60000:rank = "The Real Shooter";
case 60001..100000:rank = "Professional Shooter";
case 100001..150000:rank = "Rockstar Shooter";
}
return rank;
}
ok i make this function for Getting Player Ranks:
this function works but Compile Time too much maybe 3 or 4 minutes
can u guyz plz tell me how i make GetPlayerRank func with another method ??
Please Help..
Re: [HELP] GetPlayerRank -
MadeMan - 01.10.2011
pawn Код:
stock GetPlayerRank(playerid)
{
new rank[64];
new kills = Kills3[playerid];
if(kills >= 0 && kills <= 25) rank = "Newbie Shooter";
else if(kills >= 26 && kills <= 75) rank = "Killer Shooter";
else if(kills >= 76 && kills <= 150) rank = "Master Shooter";
else if(kills >= 151 && kills <= 300) rank = "Pro Shooter";
...
Re: [HELP] GetPlayerRank -
serman - 01.10.2011
nvm fixed lol i didnt use if else in stock before i used in public its giving me error
btw thanks.