Player Rank - 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: Player Rank (
/showthread.php?tid=580431)
Player Rank -
Kqly - 05.07.2015
Hi guys... I need rank system...
example
"Rank: 1/Total Registered Players(mysql)"
NOT:
new rankname[32];
switch(rankid)
{
case 1: rankname = "Rank1";
case 2: rankname = "Rank2";
case 3: rankname = "Rank3";
default: rankname = "None";
}
return rankname;
}
Re: Player Rank -
dusk - 05.07.2015
Do you need help with something your creating or are you asking for someone to write all of the code for you?
Re: Player Rank -
Kqly - 05.07.2015
Quote:
Originally Posted by dusk
Do you need help with something your creating or are you asking for someone to write all of the code for you?
|
I need only example...
like:
Код:
stock PlayerRank(playerid)
{
format(query,sizeof(query),"SELECT ID FROM `users` WHERE totalscore > '%d'",PlayerInfo[playerid][pTotalScore]);
mysql_query(query);
mysql_store_result();
new str[256];
new num = mysql_num_rows();
mysql_free_result();
strdel(str,0,strlen(str));
format(str,sizeof(str),"You are in position %d with %d total score",(num + 1),PlayerInfo[playerid][pTotalScore]);
SendClientMessage(playerid,COLOR,str);
return true;
}
Re: Player Rank -
dusk - 05.07.2015
So what are you trying to achieve? What is the problem?
Re: Player Rank -
GTLS - 05.07.2015
Explain us what you want? is it some kind of Team Ranks like as in a Faction or normal Ranks like if player's score(or any other thing) is xyz then he is in abc rank?