Ranks
#2

I made ex

pawn Код:
new GangRanks[MAX_PLAYERS];

stock GetPlayerRangInString(playerid)
{
    new str[20];
   
    switch(GangRanks[playerid])
    {
        case 0: "None";
        case 1: "Member";
        case 2: "Gangsta";
        case 3: "Leader";
    }
    return str;
}

stock GetPlayerRangInInt(playerid)return GangRanks[playerid];

stock SetPlayerGangRank(playerid, level)
{
    GangRanks[playerid] = level;
   
    new str[100];
    format(str, 100, "Your new Gang Level \"%s\"", GetPlayerRangInString(playerid));
    SendClientMessage(playerid, -1, str);
}
Reply


Messages In This Thread
Ranks - by [GOD]Dragonster82 - 01.10.2011, 09:04
Re: Ranks - by Raimis_R - 01.10.2011, 09:12
Re: Ranks - by park4bmx - 01.10.2011, 09:13
Re: Ranks - by [GOD]Dragonster82 - 01.10.2011, 10:21

Forum Jump:


Users browsing this thread: 1 Guest(s)