#5

pawn Код:
new PoliceRanks[][32] =
{
    {"Rank1"},//Count starts from 0 so this would actually be 0. Rank0 (mabye Officer)
    {"Rank2"},
    {"Rank3"},
    {"Rank4"},
    {"Rank5"},
    {"Rank6"},
};

COMMAND:getrank(playerid, params[])
{
    new id,rank = your rank variable;
    if(sscanf(params,"u",id))return SendClientMessage(playerid,-1,"Usage: /getrank [id / part of name]");
    format(string,sizeof(string),"%s's rank is %s",GetName(id),PoliceRanks[rank]);
    SendClientMessage(playerid,-1,string);
    return 1;
}

stock GetName(playerid)
{
    new n[24];
    GetPlayerName(playerid,n,sizeof(n));
    return n;
}
Reply


Messages In This Thread
Rank - by McCarthy - 17.09.2011, 13:37
Re: Rank - by =WoR=Varth - 17.09.2011, 14:25
Re: Rank - by Tee - 17.09.2011, 14:29
Re: Rank - by McCarthy - 17.09.2011, 14:43
Re: Rank - by Tee - 17.09.2011, 14:50
Re: Rank - by McCarthy - 17.09.2011, 15:32
Re: Rank - by Tee - 17.09.2011, 15:41
Re: Rank - by McCarthy - 17.09.2011, 16:11
Re: Rank - by =WoR=Varth - 17.09.2011, 16:17
Re: Rank - by McCarthy - 17.09.2011, 16:20

Forum Jump:


Users browsing this thread: 1 Guest(s)