Simple rank system
#10

Quote:
Originally Posted by leonardo1434
Посмотреть сообщение
Something like this, you should compare the actual score with the next score for the next rank.
pawn Код:
public OnPlayerConnect(playerid)
{
    new pname[MAX_PLAYER_NAME+1], string[128];      // lazy to count each cell.
    GetPlayerName(playerid, pname, sizeof(pname));
    if(GetPlayerScore(playerid) <= 1) {
        format(string, sizeof(string), "%s has logged in with the rank: Newbie Trucker", pname);
        SendClientMessageToAll(0xAAAAAAAA, string);
    }
    else if(GetPlayerScore(playerid) > 1 && GetPlayerScore(playerid) <=50 ) {
        format(string, sizeof(string), "%s has logged in with the rank: Trucker in Training", pname);
        SendClientMessageToAll(0xAAAAAAAA, string);
    }
    else if(GetPlayerScore(playerid) > 50 && GetPlayerScore(playerid) <=250 ) {
        format(string, sizeof(string), "%s has logged in with the rank: Trucker", pname);
        SendClientMessageToAll(0xAAAAAAAA, string);
    }
    else if(GetPlayerScore(playerid) > 250 && GetPlayerScore(playerid) <=500 ) {
        format(string, sizeof(string), "%s has logged in with the rank: Half-Experienced Trucker", pname);
        SendClientMessageToAll(0xAAAAAAAA, string);
    }
    else if(GetPlayerScore(playerid) > 500 && GetPlayerScore(playerid) <=1000 ) {
        format(string, sizeof(string), "%s has logged in with the rank: Full-Experienced Trucker", pname);
        SendClientMessageToAll(0xAAAAAAAA, string);
    }
    else if(GetPlayerScore(playerid) >1000 && GetPlayerScore(playerid) <=3000 ) {
        format(string, sizeof(string), "%s has logged in with the rank: European Trucker", pname);
        SendClientMessageToAll(0xAAAAAAAA, string);
        return 1;
    }
    else if(GetPlayerScore(playerid) > 3000 ) {
        format(string, sizeof(string), "%s has logged in with the rank: Worl European Trucker", pname);
        SendClientMessageToAll(0xAAAAAAAA, string);
    }
    return 1;
}
Ohhhh I get it now!
Reply


Messages In This Thread
Simple rank system - by jeremy8810 - 10.07.2012, 11:27
Re: Simple rank system - by RedJohn - 10.07.2012, 11:34
Respuesta: Simple rank system - by Siralos - 10.07.2012, 11:36
Re: Simple rank system - by jeremy8810 - 10.07.2012, 11:40
Re: Simple rank system - by leonardo1434 - 10.07.2012, 11:45
Re: Simple rank system - by RedJohn - 10.07.2012, 11:49
Re: Simple rank system - by jeremy8810 - 10.07.2012, 12:01
Re: Simple rank system - by RedJohn - 10.07.2012, 13:35
Re: Simple rank system - by leonardo1434 - 10.07.2012, 14:10
Re: Simple rank system - by RedJohn - 10.07.2012, 14:18

Forum Jump:


Users browsing this thread: 1 Guest(s)