23.09.2014, 13:06
pawn Код:
stock GetPlayerFRank(playerid)
{
new string[64];
format(string, sizeof(string), "%s", "None");
// if player is in a family, format family rank
if(PlayerInfo[playerid][pFMember] != 255)
{
new fam = PlayerInfo[playerid][pFMember];
if(PlayerInfo[playerid][pFRank]>= 1 && PlayerInfo[playerid][pFRank]<= 6)
{
format(string, sizeof(string), "%s", FamilyRank[fam][rank-1]);
}
else
{
format(string, sizeof(string), "%s", FamilyRank[fam][0]);
}
}
return string;
}