Algorithm for rank points
#2

PHP код:
aR(playerid)
{
    new 
ranks[555];
    if(
GetPlayerScore(playerid) => 10 && GetPlayerScore(playerid) =< 19ranks "Level 1";
    if(
GetPlayerScore(playerid) => 20 && GetPlayerScore(playerid) =< 39ranks "Level 2";
    if(
GetPlayerScore(playerid) => 40 && GetPlayerScore(playerid) =< 69ranks "Level 3";
    if(
GetPlayerScore(playerid) >= 70ranks "Level 4";
    return 
ranks;

This is an example of it. Change the Level names. And also go in the same pattern for more ranks.
Reply


Messages In This Thread
Algorithm for rank points - by MP2 - 05.11.2015, 11:22
Re: Algorithm for rank points - by Karan007 - 05.11.2015, 11:25
Re: Algorithm for rank points - by Macluawn - 05.11.2015, 11:41
Re: Algorithm for rank points - by MP2 - 05.11.2015, 11:43
Re: Algorithm for rank points - by Macluawn - 05.11.2015, 11:47
Re: Algorithm for rank points - by MP2 - 05.11.2015, 11:49
Re: Algorithm for rank points - by Macluawn - 05.11.2015, 11:55
Re: Algorithm for rank points - by MP2 - 05.11.2015, 12:05
Re: Algorithm for rank points - by Macluawn - 05.11.2015, 12:20
Re: Algorithm for rank points - by AbyssMorgan - 05.11.2015, 14:28

Forum Jump:


Users browsing this thread: 1 Guest(s)