Simple rank system
#8

I created this one for joining message, when he join it will check his score and it will show message!

pawn Код:
public OnPlayerConnect(playerid)
{
    new pname[MAX_PLAYER_NAME], string[22 + MAX_PLAYER_NAME];
    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);
        return 1;
    }
    if(GetPlayerScore(playerid) <= 50)
    {
        format(string, sizeof(string), "%s has logged in with the rank: Trucker in Training", pname);
        SendClientMessageToAll(0xAAAAAAAA, string);
        return 1;
    }
    if(GetPlayerScore(playerid) <= 100)
    {
        format(string, sizeof(string), "%s has logged in with the rank: Trucker", pname);
        SendClientMessageToAll(0xAAAAAAAA, string);
        return 1;
    }
    if(GetPlayerScore(playerid) <= 250)
    {
        format(string, sizeof(string), "%s has logged in with the rank: Half-Experienced Trucker", pname);
        SendClientMessageToAll(0xAAAAAAAA, string);
        return 1;
    }
    if(GetPlayerScore(playerid) <= 500)
    {
        format(string, sizeof(string), "%s has logged in with the rank: Full-Experienced Trucker", pname);
        SendClientMessageToAll(0xAAAAAAAA, string);
        return 1;
    }
    if(GetPlayerScore(playerid) <= 100)
    {
        format(string, sizeof(string), "%s has logged in with the rank: European Trucker", pname);
        SendClientMessageToAll(0xAAAAAAAA, string);
        return 1;
    }
    if(GetPlayerScore(playerid) <= 3000)
    {
        format(string, sizeof(string), "%s has logged in with the rank: Worl European Trucker", pname);
        SendClientMessageToAll(0xAAAAAAAA, string);
        return 1;
    }
    return 1;
}
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: 2 Guest(s)