stev212

Untitled

Apr 2nd, 2015
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. new numm;
  2. CMD:clans(playerid,params[])
  3. {
  4. numm++;
  5. new ClanNamee[256],DClans[1000],Clans,String2[200],ABCD[2000],file2[100];
  6. format(Str,sizeof Str, "%d",numm);
  7. format(file2,sizeof file2,"Clans/ClanList.ini");
  8. inline LoadListData(string:name[],string:value[])
  9. {
  10. INI_String("ClanName",ClanNamee,sizeof ClanNamee);
  11. }
  12. INI_ParseFile(file2,using inline "LoadListData");
  13. format(cInfo[ClanFile],sizeof cInfo[ClanFile], "Clans/%s.ini",ClanNamee);
  14. inline LoadClanData(string:name[],string:value[])
  15. {
  16. INI_Int("R",cInfo[R]);
  17. INI_Int("G",cInfo[G]);
  18. INI_Int("B",cInfo[B]);
  19. INI_String("ClanName",cInfo[ClanName],50);
  20. INI_Int("Players",cInfo[Players]);
  21. INI_String("Founder",cInfo[Founder],50);
  22. }
  23. INI_ParseFile(cInfo[ClanFile], using inline "LoadClanData");
  24. if(fexist(cInfo[ClanFile]))
  25. {
  26. Clans++;
  27. format(Str,sizeof Str,"{%s}Clan: %s » Players: %d » Founder: %s",DRGBA2HEX(cInfo[R],cInfo[G],cInfo[B],255),cInfo[ClanName],cInfo[Founder]);
  28. strcat(DClans,Str);
  29. }
  30. if(Clans == 0) return ShowPlayerDialog(playerid, 8888, DIALOG_STYLE_LIST, "{FFA600}מערכת הקלאנים", "{0099FF}לא נוצרו קלאנים", "סגור", "");
  31. format(String2,sizeof String2,"\t\t{CCEEFF}- %d - מספר הקלאנים בשרת -",Clans);
  32. format(ABCD,sizeof ABCD,"%s\n%s",String2,DClans);
  33. ShowPlayerDialog(playerid, 8888, DIALOG_STYLE_LIST, "{FFA600}מערכת הקלאנים", ABCD, "סגור", "");
  34. return true;
  35. }
Advertisement
Add Comment
Please, Sign In to add comment