Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new numm;
- CMD:clans(playerid,params[])
- {
- numm++;
- new ClanNamee[256],DClans[1000],Clans,String2[200],ABCD[2000],file2[100];
- format(Str,sizeof Str, "%d",numm);
- format(file2,sizeof file2,"Clans/ClanList.ini");
- inline LoadListData(string:name[],string:value[])
- {
- INI_String("ClanName",ClanNamee,sizeof ClanNamee);
- }
- INI_ParseFile(file2,using inline "LoadListData");
- format(cInfo[ClanFile],sizeof cInfo[ClanFile], "Clans/%s.ini",ClanNamee);
- inline LoadClanData(string:name[],string:value[])
- {
- INI_Int("R",cInfo[R]);
- INI_Int("G",cInfo[G]);
- INI_Int("B",cInfo[B]);
- INI_String("ClanName",cInfo[ClanName],50);
- INI_Int("Players",cInfo[Players]);
- INI_String("Founder",cInfo[Founder],50);
- }
- INI_ParseFile(cInfo[ClanFile], using inline "LoadClanData");
- if(fexist(cInfo[ClanFile]))
- {
- Clans++;
- format(Str,sizeof Str,"{%s}Clan: %s » Players: %d » Founder: %s",DRGBA2HEX(cInfo[R],cInfo[G],cInfo[B],255),cInfo[ClanName],cInfo[Founder]);
- strcat(DClans,Str);
- }
- if(Clans == 0) return ShowPlayerDialog(playerid, 8888, DIALOG_STYLE_LIST, "{FFA600}מערכת הקלאנים", "{0099FF}לא נוצרו קלאנים", "סגור", "");
- format(String2,sizeof String2,"\t\t{CCEEFF}- %d - מספר הקלאנים בשרת -",Clans);
- format(ABCD,sizeof ABCD,"%s\n%s",String2,DClans);
- ShowPlayerDialog(playerid, 8888, DIALOG_STYLE_LIST, "{FFA600}מערכת הקלאנים", ABCD, "סגור", "");
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment