Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (!strcmp(inputtext, "Change rank"))
- {
- PlayerData[playerid][pOffRank] = false;
- new string[1024], sayi;
- foreach (new i : Player) { if (PlayerData[i][pFaction] == factionid) format(string, sizeof(string), "%s{59DC1C}%d - ID : {FFFFFF}%s (%s)\n", string, i, ReturnName(i), Faction_GetRank(i)); sayi++; }
- Dialog_Show(playerid, Changerank, DIALOG_STYLE_LIST, "{72C425}ยป Change rank", string, "Schimba", "{FF6347}Anuleaza");
- if(sayi == 0)
- {
- SendErrorMessage(playerid, "No Active Members.");
- cmd_faction(playerid, "\1");
- return 1;
- }
- }
- Dialog:Changerank(playerid, response, listitem, inputtext[]) {
- if(response)
- {
- new userid, notreal[128], idx;
- notreal = strtok(inputtext, idx);
- userid = strval(notreal);
- SetPVarInt(playerid, "DKI", userid);
- if(userid == playerid) return SendErrorMessage(playerid, "You can not edit your rank.");
- Faction_RutbeDegistir(playerid, PlayerData[playerid][pFaction]);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment