14.12.2014, 17:40
Instead of this why not use this??
Use this code instead of the above
Replace this
With this
Код:
#define Trial_Admin 10 #define Junior_Administrator 11 #define General_Administrator 12 #define Senior_Administrator 13 #define Head_Administrator 14 #define Community_Manager 15 #define Co-Owner 16
Код:
stock RankLevelName(playerid) { new RankLevelName[128]; switch(PlayerInfo[playerid][pRank]) { case 0: RankLevelName = "Player"; case 1: RankLevelName= "Trial Moderator"; case 2: RankLevelName= "Basic Moderator"; case 3: RankLevelName= "Master Moderator"; case 4: RankLevelName = "Senior Administrator"; case 5: RankLevelName = "Proffesional Administrator"; case 6: RankLevelName = "Lead Administrator"; case 7: RankLevelName = "Head Administrator"; case 8: RankLevelName= "Manager"; case 9: RankLevelName = "Community Co-Owner"; case 10: RankLevelName = "Community Owner"; } return RankLevelName; }
Код:
This on PlayerSpawn if(PlayerInfo[playerid][pRank] == Trial_Admin) { //your things do here } else if(PlayerInfo[playerid][pRank] == Junior_Administrator) { //your things do here } else if(PlayerInfo[playerid][pRank] == General_Administrator) { //your things do here } else if(PlayerInfo[playerid][pRank] == Senior_Administrator) { //your things do here } else if(PlayerInfo[playerid][pRank] == Head_Administrator) { //your things do here } else if(PlayerInfo[playerid][pRank] == Community_Manager) { //your things do here } else if(PlayerInfo[playerid][pRank] == Co-Owner) { //your things do here }
Код:
This on PlayerSpawn if(PlayerInfo[playerid][pRank] == 0) { //your things do here } else if(PlayerInfo[playerid][pRank] == 1) { //your things do here } else if(PlayerInfo[playerid][pRank] == 2) { //your things do here } else if(PlayerInfo[playerid][pRank] == 3) { //your things do here } else if(PlayerInfo[playerid][pRank] == 4) { //your things do here } else if(PlayerInfo[playerid][pRank] == 5) { //your things do here } else if(PlayerInfo[playerid][pRank] == 6) { //your things do here }