[AJUDA] Sistema de rank
#3

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    new string[256];

    if(GetPlayerScore(killerid) == 100) // Amount of required kills to get rank 1 *Biggner'*
    {
        GetPlayerName(killerid, string, sizeof(string) );
        format(string, sizeof(string), ">> %s Avanзou para o nivel *Aspirante'* por matar %d jogadores!", string, GetPlayerScore(killerid) );
        SendClientMessageToAll(COLOR_LIGHTBLUE, string);
        pRank[playerid] = 1;
    }
    else if(GetPlayerScore(killerid) == 200) // Amount of required kills to get rank 2 *Soldier*
    {
        GetPlayerName(killerid, string, sizeof(string) );
        format(string, sizeof(string), ">> %s Avanзou para o nivel *Soldado* por matar %d jogadores!", string, GetPlayerScore(killerid));
        SendClientMessageToAll(COLOR_LIGHTBLUE, string);
        pRank[playerid] = 2;
    }
    else if(GetPlayerScore(killerid) == 300) // Amount of required kills to get rank 3 *Commander'*
    {
        GetPlayerName(killerid, string, sizeof(string) );
        format(string, sizeof(string), ">> %s Avanзou para o nivel *Comandante'* por matar %d jogadores!", string, GetPlayerScore(killerid));
        SendClientMessageToAll(COLOR_LIGHTBLUE, string);
        pRank[playerid] = 3;
    }
    else if(GetPlayerScore(killerid) == 500 ) // Amount of required kills to get rank 4 *Boss*
    {
        GetPlayerName(killerid, string, sizeof(string) );
        format(string, sizeof(string), ">> %s Avanзou para o nivel *Mestre* por matar %d jogadores!", string, GetPlayerScore(killerid));
        SendClientMessageToAll(COLOR_LIGHTBLUE, string);
        pRank[playerid] = 4;
    }
    else if(GetPlayerScore(killerid) == 1000) // Amount of required kills to get rank 5 *Don*
    {
        GetPlayerName(killerid, string, sizeof(string) );
        format(string, sizeof(string), ">> %s Chegou ao ULTIMO Nivel!! *Viciado* por matar %d JOGADORES!", string, GetPlayerScore(killerid));
        SendClientMessageToAll(COLOR_LIGHTBLUE, string);
        pRank[playerid] = 5;
 }
    return 1;
}
Reply


Messages In This Thread
[AJUDA] Sistema de rank - by Nobiin - 23.05.2011, 22:18
Re: [AJUDA] Sistema de rank - by Hardware - 23.05.2011, 22:45
Re: [AJUDA] Sistema de rank - by Nobiin - 23.05.2011, 22:51
Re: [AJUDA] Sistema de rank - by Hardware - 23.05.2011, 23:01
Re: [AJUDA] Sistema de rank - by Nobiin - 23.05.2011, 23:45
Re: [AJUDA] Sistema de rank - by Hardware - 24.05.2011, 00:01
Re: [AJUDA] Sistema de rank - by Nobiin - 24.05.2011, 00:05
Re: [AJUDA] Sistema de rank - by Hardware - 24.05.2011, 00:21
Re: [AJUDA] Sistema de rank - by Nobiin - 24.05.2011, 00:27
Re: [AJUDA] Sistema de rank - by CyNiC - 24.05.2011, 01:13

Forum Jump:


Users browsing this thread: 1 Guest(s)