31.07.2011, 15:46
pawn Код:
if(PlayerInfo[playerid][pFMember] < 255 && PlayerInfo[playerid][pFRank] == 0 && PlayerInfo[playerid][pRank] > 0)
{
PlayerInfo[playerid][pFRank] = PlayerInfo[playerid][pRank];
PlayerInfo[playerid][pRank] = 0;
}
- Checking if the player is in a family, with pFRank (new family rank variable) variable 0 and pRank (old family rank variable) higher than 0.
- If the above is true it would transfer the value from pRank to pFRank and set pRank to 0.
Doesn't seem to work, I've even tried putting it under OnPlayerSpawn but no luck... Any ideas?