05.11.2013, 19:13
You'll need to make a function for it to easier set the skin.
For example:
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.
For example:
pawn Код:
stock ReturnRankSkin( rank )
{
new
skinid
;
switch( rank )
{
case 0: skinid = 269;
case 1: skinid = 270;
default: skinid = 1;
}
return skinid;
}
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]));