20.03.2015, 12:03
Code:
// Variables enum pInfo { AdminRank, }; // Stock - Setting out the Administration ranks stock GetAdminRank(playerid) { new adminrank[128]; for(new i = 0; i < MAX_PLAYERS; i++) { switch(pInfo[I][AdminLevel] { case 0: ""; case 1: //designated Admin rank here case 2: //designated Admin rank here case 3: //designated Admin rank here case 4: //designated Admin rank here case 5: // designated Admin rank here } return adminrank; } CMD:admins(playerid, params[]) { format(string, sizeof(string), "[%s] %s [%d]", GetAdminRank(playerid), n, playerid); SendClientMessage(playerid, colour, string); return 1; }
Also, do you use MySQL or dini for saving?