Custura

Untitled

Jun 30th, 2017
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. if (!strcmp(inputtext, "Change rank"))
  2. {
  3. PlayerData[playerid][pOffRank] = false;
  4. new string[1024], sayi;
  5. 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++; }
  6. Dialog_Show(playerid, Changerank, DIALOG_STYLE_LIST, "{72C425}ยป Change rank", string, "Schimba", "{FF6347}Anuleaza");
  7. if(sayi == 0)
  8. {
  9. SendErrorMessage(playerid, "No Active Members.");
  10. cmd_faction(playerid, "\1");
  11. return 1;
  12. }
  13. }
  14.  
  15.  
  16. Dialog:Changerank(playerid, response, listitem, inputtext[]) {
  17.  
  18. if(response)
  19. {
  20. new userid, notreal[128], idx;
  21. notreal = strtok(inputtext, idx);
  22. userid = strval(notreal);
  23. SetPVarInt(playerid, "DKI", userid);
  24. if(userid == playerid) return SendErrorMessage(playerid, "You can not edit your rank.");
  25. Faction_RutbeDegistir(playerid, PlayerData[playerid][pFaction]);
  26. }
  27. return 1;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment