[FilterScript] Rank/EXP System
#1

Features

Rank system that needs the EXP system to rank up with textdraws


Files Needed
No files needed for this filterscript only the a_samp.

Downloads:
PasteBin
Picture

Reply
#2

Seems like a good script, but some more information wouldnґt be wrong xD
Reply
#3

Is it possible to make the "10" a variable? Example at rank two you need 50 points to level up but on your FilterScript it will still say "X/10".
Reply
#4

That means You are rank %d/10
Reply
#5

Cool ^_^
Reply
#6

When i kill its stay on 0 / 10...
Reply
#7

Good
Reply
#8

not bad, simple and easy to edit good for newbies
Reply
#9

This is horrible and limited coding:

pawn Код:
public OnPlayerSpawn(playerid)
{
        if(PlayerInfo[playerid][EXP] == 50)
        {
            PlayerInfo[playerid][Rank] +=1;
        }
        if(PlayerInfo[playerid][EXP] == 150)
        {
            PlayerInfo[playerid][Rank] +=1;
        }
        if(PlayerInfo[playerid][EXP] == 300)
        {
            PlayerInfo[playerid][Rank] +=1;
        }
        if(PlayerInfo[playerid][EXP] == 400)
        {
            PlayerInfo[playerid][Rank] +=1;
        }
        if(PlayerInfo[playerid][EXP] == 500)
        {
        PlayerInfo[playerid][Rank] +=1;
        }
        if(PlayerInfo[playerid][EXP] == 650)
        {
            PlayerInfo[playerid][Rank] +=1;
        }
        if(PlayerInfo[playerid][EXP] == 800)
        {
            PlayerInfo[playerid][Rank] +=1;
        }
        if(PlayerInfo[playerid][EXP] == 1000)
        {
            PlayerInfo[playerid][Rank] +=1;
        }
        if(PlayerInfo[playerid][EXP] == 1500)
        {
            PlayerInfo[playerid][Rank] +=1;
        }
        if(PlayerInfo[playerid][EXP] == 3000)
        {
            PlayerInfo[playerid][Rank] +=1;
        }
    TextDrawShowForPlayer(playerid,Text:Ranked[playerid]);
        return 1;
}
Something like this would do the job much better and woulden't restrict the player's level (just an example of an algoritme):

pawn Код:
public OnPlayerSpawn(playerid)
{
    new rank = 0;                           // Final rank
    new Float:neededexp = 50.0;             // Starting exp needed
    new Float:multiplier = 1.5;             // Multiplier (exp will be 50 * multiplier for every raise of rank)
    while(PlayerInfo[playerid][EXP] > neededexp) {
        rank++;
        neededexp *= multiplier;
    }
    PlayerInfo[playerid][Rank] = rank;
}
Reply
#10

Good job! I like it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)