[FilterScript] Sonny's Ranking system [Based on Scores, Cash] + Extra: Ping
#10

@RajatAsthana thanks!

@Variable™, in the case if textdraws not needed you can use ScoreName(playerid), MoneyName(playerid) in your /stats command just like this:

Quote:

new playerranks[728];
format(playerranks, sizeof(playerranks), "{00FFFF}S{FFFFFF}cores: %d ({00FF00}%s{FFFFFF}) \n{00FFFF}C{FFFFFF}ash: %d ({00FF00}%s{FFFFFF})",GetPlayerScore(playerid), ScoreName(playerid), GetPlayerMoney(playerid), MoneyName(playerid));

Example:

Code:
CMD:myrank(playerid,params[])
{
new playerranks[728];
    format(playerranks, sizeof(playerranks), "{00FFFF}S{FFFFFF}cores: %d ({00FF00}%s{FFFFFF}) \n{00FFFF}C{FFFFFF}ash: %d ({00FF00}%s{FFFFFF})",GetPlayerScore(playerid), ScoreName(playerid), GetPlayerMoney(playerid), MoneyName(playerid));
ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"My Rank",strz,"Close","");
return 1;
}
You can use boths functions anywhere,
I just used it for textdraws this time

Well anyways thanks for advices and comments
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)