help code
#4

You'll need to make a function for it to easier set the skin.

For example:
pawn Код:
stock ReturnRankSkin( rank )
{
    new
        skinid
    ;
    switch( rank )
    {
        case 0: skinid = 269;
        case 1: skinid = 270;
        default: skinid = 1;
    }
    return skinid;
}
If the rank is 0, then it returns 269.
Else if the rank is 1, then it returns 270.
Else it returns 1.

You can modify it to your needs, that was just an example.
pawn Код:
SetPlayerSkin(playerid, ReturnRankSkin(playerInfo[playerid][pRank]));
Reply


Messages In This Thread
help code - by 26_RUSSS - 05.11.2013, 18:38
Re: help code - by Konstantinos - 05.11.2013, 18:41
Re: help code - by 26_RUSSS - 05.11.2013, 19:06
Re: help code - by Konstantinos - 05.11.2013, 19:13
Re: help code - by 26_RUSSS - 05.11.2013, 19:22

Forum Jump:


Users browsing this thread: 1 Guest(s)