Advertisement
Gireada

CreateClan v2

Feb 23rd, 2013
579
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 59.71 KB | None | 0 0
  1. /****************************************************************************************************************************************************************************
  2. *****************************************************************************************************************************************************************************
  3. *****************************************************************************************************************************************************************************
  4. ***********************************************************************__________________************************************************************************************
  5. **********************************************************************|    CreateClan    |***********************************************************************************
  6. **********************************************************************|                  |***********************************************************************************
  7. **********************************************************************|      By          |***********************************************************************************
  8. **********************************************************************|        Gireada   |***********************************************************************************
  9. **********************************************************************|                  |***********************************************************************************
  10. **********************************************************************|                  |***********************************************************************************
  11. **********************************************************************|                  |***********************************************************************************
  12. **********************************************************************|                  |***********************************************************************************
  13. **********************************************************************|                  |***********************************************************************************
  14. **********************************************************************---------------------************************************************************************************
  15. */
  16.  
  17. //Nu stergeti Creditele.
  18.  
  19.  
  20. #include <a_samp>
  21. #include <dini>
  22. #include <zcmd>
  23. #include <sscanf>
  24. #include <bdial>
  25. #include <mSelection>
  26.  
  27. #define Creiat_de_Gireada
  28.  
  29. forward SaveClans();
  30. forward LoadClans();
  31. forward SaveThisClan(clanid);
  32. forward SendClanMesaj(color,const string[],clanid);
  33.  
  34. new skinlist = mS_INVALID_LISTID;
  35. new skinlist2 = mS_INVALID_LISTID;
  36. new arma1 = mS_INVALID_LISTID;
  37. new arma2 = mS_INVALID_LISTID;
  38. new arma3 = mS_INVALID_LISTID;
  39. new arma4 = mS_INVALID_LISTID;
  40. new arma5 = mS_INVALID_LISTID;
  41. new arma6 = mS_INVALID_LISTID;
  42.  
  43. new maxclans = 100;
  44.  
  45. enum PlayerData
  46. {
  47.     pCreateClan,
  48.     pClan,
  49.     pRank,
  50.     pInvitation,
  51.     pInvClan,
  52.     pClanName,
  53.  
  54. }
  55. new PlayerInfo[MAX_PLAYERS][PlayerData];
  56.  
  57. enum ClanData
  58. {
  59.     cID,
  60.     cNume[MAX_PLAYER_NAME],
  61.     cSkin1,
  62.     cSkin2,
  63.     cColor[MAX_PLAYER_NAME],
  64.     cArma1,
  65.     cArma2,
  66.     cArma3,
  67.     cArma4,
  68.     cArma5,
  69.     cArma6,
  70.     cRank,
  71.     cLider[MAX_PLAYER_NAME],
  72.     Float:cSpawnx,
  73.     Float:cSpawny,
  74.     Float:cSpawnz,
  75.     Float:cAngle,
  76.     cInterior,
  77.     cVirtual,
  78.     cMembri,
  79.     cZi,
  80.     cLuna,
  81.     cAn,
  82. }
  83. new ClanInfo[100][ClanData];
  84.  
  85. public OnGameModeInit()
  86. {
  87.     skinlist = LoadModelSelectionMenu("skins.txt");
  88.     skinlist2 = LoadModelSelectionMenu("skins2.txt");
  89.     arma1 = LoadModelSelectionMenu("arma1.txt");
  90.     arma2 = LoadModelSelectionMenu("arma2.txt");
  91.     arma3 = LoadModelSelectionMenu("arma3.txt");
  92.     arma4 = LoadModelSelectionMenu("arma4.txt");
  93.     arma5 = LoadModelSelectionMenu("arma5.txt");
  94.     arma6 = LoadModelSelectionMenu("arma6.txt");
  95.     return 1;
  96. }
  97.  
  98. public OnFilterScriptInit()
  99. {
  100.     LoadClans();
  101.     print("\n--------------------------------------");
  102.     print(" Create Clan by Gireada");
  103.     print("--------------------------------------\n");
  104.     /*skinlist = LoadModelSelectionMenu("skins.txt");
  105.     skinlist2 = LoadModelSelectionMenu("skins2.txt");
  106.     arma1 = LoadModelSelectionMenu("arma1.txt");
  107.     arma2 = LoadModelSelectionMenu("arma2.txt");
  108.     arma3 = LoadModelSelectionMenu("arma3.txt");
  109.     arma4 = LoadModelSelectionMenu("arma4.txt");
  110.     arma5 = LoadModelSelectionMenu("arma5.txt");
  111.     arma6 = LoadModelSelectionMenu("arma6.txt");*/
  112.     return 1;
  113. }
  114.  
  115. public OnFilterScriptExit()
  116. {
  117.     SaveClans();
  118.     return 1;
  119. }
  120.  
  121.  
  122. main()
  123. {
  124.     print("\n----------------------------------");
  125.     print(" Create Clan by Gireada");
  126.     print("----------------------------------\n");
  127. }
  128.  
  129. stock pName(playerid)
  130. {
  131.     new name[MAX_PLAYER_NAME];
  132.     GetPlayerName(playerid,name,sizeof(name));
  133.     return name;
  134. }
  135.  
  136. public OnPlayerConnect(playerid)
  137. {
  138.     new file[35], clanname[MAX_PLAYERS],file2[500];
  139.     format(clanname, sizeof(clanname), "N/a");
  140.     format(file, sizeof(file),"JucatoriClan/%s.ini", pName(playerid));
  141.     if(dini_Exists(file))
  142.     {
  143.         PlayerInfo[playerid][pRank] = dini_Int(file,"Rank");
  144.         PlayerInfo[playerid][pCreateClan] = dini_Int(file,"CreateClan");
  145.         PlayerInfo[playerid][pClan] = dini_Int(file,"Clan");
  146.         strmid(PlayerInfo[playerid][pClanName], dini_Get(file,"ClanNume"), 0, strlen(dini_Get(file,"ClanNume")), 255);
  147.     }
  148.     else if(!dini_Exists(file))
  149.     {
  150.         dini_Create(file);
  151.         dini_IntSet(file,"Rank",PlayerInfo[playerid][pRank] = 0);
  152.         dini_IntSet(file,"CreateClan",PlayerInfo[playerid][pCreateClan] = 0);
  153.         dini_IntSet(file,"Clan",PlayerInfo[playerid][pClan] = 0);
  154.         dini_Set(file,"ClanNume","N/a");
  155.     }
  156.     new clanid = PlayerInfo[playerid][pClan];
  157.     format(file2, sizeof(file2), "Clans/%d.ini", clanid);
  158.     if(dini_Exists(file2))
  159.     {
  160.         if(!(ClanInfo[clanid][cNume] == PlayerInfo[playerid][pClanName]) && (PlayerInfo[playerid][pClan] > 0))
  161.         {
  162.             dini_Set(file,"ClanNume","N/a");
  163.             dini_IntSet(file,"Rank",0);
  164.             dini_IntSet(file,"CreateClan",0);
  165.             dini_IntSet(file,"Clan",PlayerInfo[playerid][pClan] = 0);
  166.             dini_IntSet(file,"CreateClan",PlayerInfo[playerid][pCreateClan] = 0);
  167.             SendClientMessage(playerid, 0xFF0000AA, "Clanul sa desfintat!");
  168.         }
  169.     }
  170.     else if(!dini_Exists(file2))
  171.     {
  172.         dini_Set(file,"ClanNume","N/a");
  173.         dini_IntSet(file,"Rank",0);
  174.         dini_IntSet(file,"CreateClan",0);
  175.         PlayerInfo[playerid][pCreateClan] = 0;
  176.         SendClientMessage(playerid, 0xFF0000AA, "Clanul sa desfintat!");
  177.     }
  178.     SendClientMessage(playerid, 0xFF0000AA, "Sistem de Clan creeat de Gireada! Contact: gireada09");
  179.     return 1;
  180. }
  181.  
  182. public OnPlayerDisconnect(playerid, reason)
  183. {
  184.     new file[35];
  185.     format(file, sizeof(file),"JucatoriClan/%s.ini", pName(playerid));
  186.     dini_IntSet(file,"Rank",PlayerInfo[playerid][pRank]);
  187.     dini_IntSet(file,"CreateClan",PlayerInfo[playerid][pCreateClan]);
  188.     dini_IntSet(file,"Clan",PlayerInfo[playerid][pClan]);
  189.     dini_Set(file,"ClanNume",PlayerInfo[playerid][pClanName]);
  190.     return 1;
  191. }
  192.  
  193. public OnPlayerSpawn(playerid)
  194. {
  195.     new clanid = PlayerInfo[playerid][pClan];
  196.     if(PlayerInfo[playerid][pClan] >= 0)
  197.     {
  198.         SetPlayerPos(playerid,ClanInfo[clanid][cSpawnx],ClanInfo[clanid][cSpawny],ClanInfo[clanid][cSpawnz]);
  199.         SetPlayerInterior(playerid, ClanInfo[clanid][cInterior]);
  200.         SetPlayerVirtualWorld(playerid, ClanInfo[clanid][cVirtual]);
  201.         SetPlayerColor(playerid, ClanInfo[PlayerInfo[playerid][pClan]][cColor]);
  202.         GivePlayerWeapon(playerid, ClanInfo[clanid][cArma1], 1);
  203.         GivePlayerWeapon(playerid, ClanInfo[clanid][cArma2], 999999);
  204.         GivePlayerWeapon(playerid, ClanInfo[clanid][cArma3], 999999);
  205.         GivePlayerWeapon(playerid, ClanInfo[clanid][cArma4], 999999);
  206.         GivePlayerWeapon(playerid, ClanInfo[clanid][cArma5], 999999);
  207.         GivePlayerWeapon(playerid, ClanInfo[clanid][cArma6], 999999);
  208.         if(PlayerInfo[playerid][pRank] <= 5)
  209.         {
  210.             SetPlayerSkin(playerid, ClanInfo[clanid][cSkin1]);
  211.         }
  212.         else if(PlayerInfo[playerid][pRank] == 6)
  213.         {
  214.             SetPlayerSkin(playerid, ClanInfo[clanid][cSkin2]);
  215.         }
  216.     }
  217.     return 1;
  218. }
  219.  
  220. CMD:clanhelp(playerid, params[])
  221. {
  222.     new string[1024];
  223.     strcat( string, "         {FF9094}Comenzi Clan\n\n");
  224.     strcat( string, "{7CFC00}/setrank - {FFFAF0}setezi rank-ul\n");
  225.     strcat( string, "{7CFC00}/createclan - {FFFAF0}creezi clanul \n");
  226.     strcat( string, "{7CFC00}/invite - {FFFAF0}inviti pe cineva in clan \n");
  227.     strcat( string, "{7CFC00}/accepta - {FFFAF0}accepti invitatia \n");
  228.     strcat( string, "{7CFC00}/refuza - {FFFAF0}refuzi invitatia \n");
  229.     strcat( string, "{7CFC00}/claniesi - {FFFAF0}parasesti clanul \n");
  230.     strcat( string, "{7CFC00}/desclan - {FFFAF0}desfintezi clanul(Rank 6)\n");
  231.     strcat( string, "{7CFC00}/setspawn - {FFFAF0}setezi spawn-ul clanului\n");
  232.     strcat( string, "{7CFC00}/clist - {FFFAF0}vezi membri online\n");
  233.     strcat( string, "{7CFC00}/clanchat - {FFFAF0}vorbesti pe chatul clanului\n");
  234.     strcat( string, "{7CFC00}/clanarme - {FFFAF0}te inarmezi(La locul de spawn)\n");
  235.     strcat( string, "{FFFFFF}Sistemul de clan creeat de: {FFFAF0}Gireada");
  236.     ShowPlayerDialog(playerid, 8, DIALOG_STYLE_MSGBOX,"Comenzi",string,"Accept","");
  237.     return 1;
  238. }
  239.  
  240. CMD:setrank(playerid, params[])
  241. {
  242.     new giveplayerid,rank,name[35],string[256];
  243.     if(unformat(params, "ui", giveplayerid,rank))
  244.     {
  245.         SendClientMessage(playerid, 0xFF0000AA, "Usage: /setrank <playerid/name> <rank>");
  246.         return 1;
  247.     }
  248.     if(rank < 0 && rank > 6)
  249.     {
  250.         SendClientMessage(playerid, 0xFF0000AA, "Rank-ul pot fi de la 1 la 5");
  251.         return 1;
  252.     }
  253.     new clanid = PlayerInfo[playerid][pClan];
  254.     GetPlayerName(giveplayerid, name, sizeof(name));
  255.     if(PlayerInfo[playerid][pRank] == 6)
  256.     {
  257.         if(PlayerInfo[giveplayerid][pClan] == PlayerInfo[playerid][pClan])
  258.         {
  259.             PlayerInfo[playerid][pRank] = rank;
  260.             format(string, sizeof(string), " %s a primit rank %d", name, rank);
  261.             SendClanMesaj(ClanInfo[clanid][cColor],string,clanid);
  262.         }
  263.     }
  264.     return 1;
  265. }
  266.  
  267. CMD:createclan(playerid, params[])
  268. {
  269.     new i=1;
  270.     while(i<maxclans)
  271.     {
  272.         new file2[512];
  273.         format(file2, sizeof(file2),"Clans/%d.ini", i);
  274.         if(!dini_Exists(file2))
  275.         {
  276.             PlayerInfo[playerid][pClan] = i;
  277.             new name[MAX_PLAYER_NAME];
  278.             GetPlayerName(playerid, name, sizeof(name));
  279.             strmid(ClanInfo[PlayerInfo[playerid][pClan]][cLider], name, 0, strlen(name), 256);
  280.             break;
  281.         }
  282.         else
  283.         {
  284.             i++;
  285.         }
  286.        
  287.     }
  288.     if(PlayerInfo[playerid][pCreateClan] == 0)
  289.     {
  290.         ShowPlayerDialog(playerid,10, DIALOG_STYLE_INPUT, "Create Clan", "Introdu numele clanului tau:", "Accept", "Cancel");
  291.     }
  292.     else
  293.     {
  294.         SendClientMessage(playerid, 0xFF0000AA, "Ai creeat deja un clan!");
  295.     }
  296.     return 1;
  297. }
  298.  
  299. CMD:invite(playerid, params[])
  300. {
  301.     new giveplayerid, name[25], string[256];
  302.     GetPlayerName(playerid, name, sizeof(name));
  303.     if(unformat(params, "u", giveplayerid))
  304.     {
  305.         SendClientMessage(playerid, 0xFF0000AA, "Usage: /invite <playerid/name>");
  306.         return 1;
  307.     }
  308.     if(giveplayerid == INVALID_PLAYER_ID)
  309.     {
  310.         SendClientMessage(playerid, 0xFF0000AA, "ID jucator invalid");
  311.     }
  312.     if(PlayerInfo[playerid][pRank] >= 5)
  313.     {
  314.         if(PlayerInfo[giveplayerid][pClan] == 0)
  315.         {
  316.             PlayerInfo[giveplayerid][pInvitation] = 1;
  317.             PlayerInfo[giveplayerid][pInvClan] = PlayerInfo[playerid][pClan];
  318.             format(string, sizeof(string), "%s te-a invitat in clanul %s. Scrie /accepta pentru a accepta.",name, ClanInfo[PlayerInfo[playerid][pClan]][cNume]);
  319.             SendClientMessage(giveplayerid, 0xFF0000AA, string);
  320.             SendClientMessage(playerid, 0xFF0000AA, "Scrie /accepta pentru a accepta");
  321.             SendClientMessage(playerid, 0xFF0000AA, "Scrie /refuza pentru al refuza");
  322.         }
  323.     }
  324.     return 1;
  325. }
  326.  
  327. CMD:accepta(playerid, params[])
  328. {
  329.     if(PlayerInfo[playerid][pInvitation] == 1)
  330.     {
  331.         new name[MAX_PLAYER_NAME], string[256];
  332.         GetPlayerName(playerid, name, sizeof(name));
  333.         PlayerInfo[playerid][pClan] = PlayerInfo[playerid][pInvClan];
  334.         PlayerInfo[playerid][pRank] = 1;
  335.         ClanInfo[PlayerInfo[playerid][pClan]][cMembri] += 1;
  336.         PlayerInfo[playerid][pInvClan] = 0;
  337.         PlayerInfo[playerid][pInvitation] = 0;
  338.         new clanid = PlayerInfo[playerid][pClan];
  339.         strmid(PlayerInfo[playerid][pClanName], ClanInfo[clanid][cNume], 0, strlen(ClanInfo[clanid][cNume]), 255);
  340.         format(string, sizeof(string), "%s s-a alaturat clanului.",name);
  341.         SendClanMesaj(ClanInfo[clanid][cColor],string,clanid);
  342.         SaveThisClan(clanid);
  343.     }
  344.     return 1;
  345. }
  346.  
  347. CMD:refuza(playerid, params[])
  348. {
  349.     if(PlayerInfo[playerid][pInvitation] == 1)
  350.     {
  351.         new name[25], string[256];
  352.         GetPlayerName(playerid, name, sizeof(name));
  353.         format(string, sizeof(string), "%s a refuzat invitatia clanului.",name);
  354.         SendClanMesaj(0xFF0000AA,string,PlayerInfo[playerid][pInvClan]);
  355.         PlayerInfo[playerid][pInvClan] = 0;
  356.     }
  357.     return 1;
  358. }
  359.  
  360. CMD:claniesi(playerid, params[])
  361. {
  362.     new name[MAX_PLAYER_NAME];
  363.     new clanid = PlayerInfo[playerid][pClan];
  364.     GetPlayerName(playerid,name,sizeof(name));
  365.     if(PlayerInfo[playerid][pRank] <= 5)
  366.     {
  367.         new name2[25], string[256];
  368.         GetPlayerName(playerid, name2, sizeof(name2));
  369.         format(string, sizeof(string), "%s a iesit din clan.",name2);
  370.         SendClanMesaj(0xFF0000AA,string,PlayerInfo[playerid][pInvClan]);
  371.         ClanInfo[PlayerInfo[playerid][pClan]][cMembri] -= 1;
  372.         SaveThisClan(clanid);
  373.         PlayerInfo[playerid][pClan] = 0;
  374.         PlayerInfo[playerid][pRank] = 0;
  375.         strmid(PlayerInfo[playerid][pClanName], "N/a", 0, strlen("N/a"), 255);
  376.     }
  377.     else
  378.     {
  379.         SendClientMessage(playerid, 0xFF0000AA, "Esti liderul clanului, nu poti iesi. Foloseste /desclan");
  380.     }
  381.     return 1;
  382. }
  383.  
  384. CMD:desclan(playerid, params[])
  385. {
  386.     new clanid = PlayerInfo[playerid][pClan];
  387.     new file[35];
  388.     if(PlayerInfo[playerid][pRank] == 6)
  389.     {
  390.         format(file, sizeof(file),"Clans/%d.ini", clanid);
  391.         dini_Remove(file);
  392.         PlayerInfo[playerid][pClan] = 0;
  393.         PlayerInfo[playerid][pCreateClan] = 0;
  394.         strmid(PlayerInfo[playerid][pClanName], "N/a", 0, strlen("N/a"), 255);
  395.         SendClientMessage(playerid, 0xFF0000AA, "Clanul s-a desfintat");
  396.     }
  397.     return 1;
  398. }
  399.  
  400. CMD:setspawn(playerid, params[])
  401. {
  402.     new Float:x, Float:y, Float:z;
  403.     GetPlayerPos(playerid, x, y, z);
  404.     new Float:Angle, string[100];
  405.     GetPlayerFacingAngle(playerid, Angle);
  406.     new clanid = PlayerInfo[playerid][pClan];
  407.     if(PlayerInfo[playerid][pRank] == 6)
  408.     {
  409.         ClanInfo[clanid][cSpawnx] = x;
  410.         ClanInfo[clanid][cSpawny] = y;
  411.         ClanInfo[clanid][cSpawnz] = z;
  412.         ClanInfo[clanid][cAngle] = Angle;
  413.         ClanInfo[clanid][cVirtual] = GetPlayerVirtualWorld(playerid);
  414.         ClanInfo[clanid][cInterior] = GetPlayerInterior(playerid);
  415.         format(string, sizeof(string), "Ai setat spawn-ul clanului la %d %d %d", x,y,z);
  416.         SendClientMessage(playerid, 0xFF0000AA, string);
  417.         SaveThisClan(clanid);
  418.     }
  419.     else
  420.     {
  421.         SendClientMessage(playerid, 0xFF0000AA, "[ClanInfo] Trebuie sa fii liderul clanului, pentru a folosi comanda.");
  422.     }
  423.     return 1;
  424. }
  425.  
  426. CMD:clist(playerid, params[])
  427. {
  428.     new name[256], string[256];
  429.     if(PlayerInfo[playerid][pClan] >= 0)
  430.     {
  431.         for(new i=1;i<MAX_PLAYERS;i++)
  432.         {
  433.             GetPlayerName(i,name,sizeof(name));
  434.             if(PlayerInfo[i][pClan] == PlayerInfo[playerid][pClan])
  435.             {
  436.                 if(PlayerInfo[i][pRank] == 6)
  437.                 {
  438.                     format(string, 256, "** Fondator ** %s", name);
  439.                     SendClientMessage(playerid, 0xFF0000AA, string);
  440.                 }
  441.                 else if(PlayerInfo[i][pRank] == 5)
  442.                 {
  443.                     format(string, 256, "** Rank 5 ** %s", name);
  444.                     SendClientMessage(playerid, 0xFF0000AA, string);
  445.                 }
  446.                 else if(PlayerInfo[i][pRank] == 4)
  447.                 {
  448.                     format(string, 256, "** Rank 4 ** %s", name);
  449.                     SendClientMessage(playerid, 0xFF0000AA, string);
  450.                 }
  451.                 else if(PlayerInfo[i][pRank] == 3)
  452.                 {
  453.                     format(string, 256, "** Rank 3 ** %s", name);
  454.                     SendClientMessage(playerid, 0xFF0000AA, string);
  455.                 }
  456.                 else if(PlayerInfo[i][pRank] == 2)
  457.                 {
  458.                     format(string, 256, "** Rank 2 ** %s", name);
  459.                     SendClientMessage(playerid, 0xFF0000AA, string);
  460.                 }
  461.                 else if(PlayerInfo[i][pRank] == 1)
  462.                 {
  463.                     format(string, 256, "** Rank 1 ** %s", name);
  464.                     SendClientMessage(playerid, 0xFF0000AA, string);
  465.                 }
  466.             }
  467.         }
  468.     }
  469.     else if(PlayerInfo[playerid][pClan] == -1)
  470.     {
  471.         SendClientMessage(playerid, 0xFF0000AA, "Nu esti intr-un clan");
  472.     }
  473.     return 1;
  474. }
  475.  
  476. CMD:clanchat(playerid, params[])
  477. {
  478.     new text[1000], string[256], name[35];
  479.     if(unformat(params, "s[1000]", text))
  480.     {
  481.         SendClientMessage(playerid, 0xFF0000AA, "Usage: /clanchat <clancheat>");
  482.         return 1;
  483.     }
  484.     if(PlayerInfo[playerid][pClan] >= 0)
  485.     {
  486.         GetPlayerName(playerid,name,sizeof(name));
  487.         format(string, sizeof(string), "[ClanChat] [%d] [%s]: {FFFFFF}%s", PlayerInfo[playerid][pRank],name,text);
  488.         SendClanMesaj(ClanInfo[PlayerInfo[playerid][pClan]][cColor],string,PlayerInfo[playerid][pClan]);
  489.     }
  490.     return 1;
  491. }
  492.  
  493. CMD:clanarme(playerid, params[])
  494. {
  495.     new clanid = PlayerInfo[playerid][pClan];
  496.     if(IsPlayerInRangeOfPoint(playerid, 7.0, ClanInfo[clanid][cSpawnx], ClanInfo[clanid][cSpawny], ClanInfo[clanid][cSpawnz]))
  497.     {
  498.         GivePlayerWeapon(playerid, ClanInfo[clanid][cArma1], 1);
  499.         GivePlayerWeapon(playerid, ClanInfo[clanid][cArma2], 999999);
  500.         GivePlayerWeapon(playerid, ClanInfo[clanid][cArma3], 999999);
  501.         GivePlayerWeapon(playerid, ClanInfo[clanid][cArma4], 999999);
  502.         GivePlayerWeapon(playerid, ClanInfo[clanid][cArma5], 999999);
  503.         GivePlayerWeapon(playerid, ClanInfo[clanid][cArma6], 999999);
  504.     }
  505.     return 1;
  506. }
  507.  
  508. DIAL:10(playerid, bool:response, listitem, inputtext[])
  509. {
  510.     new Year, Month, Day;
  511.     getdate(Year, Month, Day);
  512.     new clanid = PlayerInfo[playerid][pClan];
  513.     if(response)
  514.     {
  515.         strmid(ClanInfo[clanid][cNume], inputtext, 0, strlen(inputtext), 256);
  516.         strmid(PlayerInfo[playerid][pClanName], inputtext, 0, strlen(inputtext), 256);
  517.         PlayerInfo[playerid][pRank] = 6;
  518.         PlayerInfo[playerid][pCreateClan] = 1;
  519.         ClanInfo[PlayerInfo[playerid][pClan]][cID] = PlayerInfo[playerid][pClan];ClanInfo[PlayerInfo[playerid][pClan]][cZi] = Day; ClanInfo[PlayerInfo[playerid][pClan]][cLuna] = Month;
  520.         ClanInfo[PlayerInfo[playerid][pClan]][cAn] = Year; SaveThisClan(PlayerInfo[playerid][pClan]);
  521.     }
  522.     ShowPlayerDialog(playerid, 21, DIALOG_STYLE_LIST, "Skinul Membrilor", "Pasi cu Preview\nIntroducere ID", "Accept", "Anulez");
  523.     return 1;
  524. }
  525.  
  526. DIAL:21(playerid, bool:response, listitem, inputtext[])
  527. {
  528.     if(response)
  529.     {
  530.         if(listitem == 0)
  531.         {
  532.             ShowModelSelectionMenu(playerid, skinlist2, "Skin Rank 1-5");
  533.         }
  534.         if(listitem == 1)
  535.         {
  536.             ShowPlayerDialog(playerid,11, DIALOG_STYLE_LIST, "Arme Clan", "Crosa\nBaston\nCutit\nBata\nLopata\nTac\nKatana\nDrujba", "Accept", "Anulez");
  537.         }
  538.     }
  539.     return 1;
  540. }
  541.  
  542. DIAL:11(playerid, bool:response, listitem, inputtext[])
  543. {
  544.         new clanid = PlayerInfo[playerid][pClan];
  545.         if(listitem == 0)
  546.         {
  547.             ShowPlayerDialog(playerid,12, DIALOG_STYLE_LIST, "Arme Clan", "9mm\nSilent 9mm\nDesert Eagle", "Accept", "Anulez");
  548.             ClanInfo[clanid][cArma1] = 2;
  549.             SaveThisClan(clanid);
  550.         }
  551.         if(listitem == 1)
  552.         {
  553.             ShowPlayerDialog(playerid,12, DIALOG_STYLE_LIST, "Arme Clan", "9mm\n Silent 9mm\n Desert Eagle", "Accept", "Anulez");
  554.             ClanInfo[clanid][cArma1] = 3;
  555.             SaveThisClan(clanid);
  556.         }
  557.         if(listitem == 2)
  558.         {
  559.             ShowPlayerDialog(playerid,12, DIALOG_STYLE_LIST, "Arme Clan", "9mm\nSilent 9mm\nDesert Eagle", "Accept", "Anulez");
  560.             ClanInfo[clanid][cArma1] = 4;
  561.             SaveThisClan(clanid);
  562.         }
  563.         if(listitem == 3)
  564.         {
  565.             ShowPlayerDialog(playerid,12, DIALOG_STYLE_LIST, "Arme Clan", "9mm\nSilent 9mm\nDesert Eagle", "Accept", "Anulez");
  566.             ClanInfo[clanid][cArma1] = 5;
  567.             SaveThisClan(clanid);
  568.         }
  569.         if(listitem == 4)
  570.         {
  571.             ShowPlayerDialog(playerid,12, DIALOG_STYLE_LIST, "Arme Clan", "9mm\nSilent 9mm\nDesert Eagle", "Accept", "Anulez");
  572.             ClanInfo[clanid][cArma1] = 6;
  573.             SaveThisClan(clanid);
  574.         }
  575.         if(listitem == 5)
  576.         {
  577.             ShowPlayerDialog(playerid,12, DIALOG_STYLE_LIST, "Arme Clan", "9mm\nSilent 9mm\nDesert Eagle", "Accept", "Anulez");
  578.             ClanInfo[clanid][cArma1] = 7;
  579.             SaveThisClan(clanid);
  580.         }
  581.         if(listitem == 6)
  582.         {
  583.             ShowPlayerDialog(playerid,12, DIALOG_STYLE_LIST, "Arme Clan", "9mm\nSilent 9mm\nDesert Eagle", "Accept", "Anulez");
  584.             ClanInfo[clanid][cArma1] = 8;
  585.             SaveThisClan(clanid);
  586.  
  587.         }
  588.         if(listitem == 7)
  589.         {
  590.             ShowPlayerDialog(playerid,12, DIALOG_STYLE_LIST, "Arme Clan", "9mm\nSilent 9mm\nDesert Eagle", "Accept", "Anulez");
  591.             ClanInfo[clanid][cArma1] = 9;
  592.             SaveThisClan(clanid);
  593.         }
  594.         return 1;
  595. }
  596.  
  597. DIAL:12(playerid, bool:response, listitem, inputtext[])
  598. {
  599.         new clanid = PlayerInfo[playerid][pClan];
  600.         if(listitem == 0)
  601.         {
  602.             ShowPlayerDialog(playerid,13, DIALOG_STYLE_LIST, "Arme Clan", "ShoutGun\nSawnoff Shotgun\nCombat Shotgun", "Accept", "Anulez");
  603.             ClanInfo[clanid][cArma2] = 22;
  604.             SaveThisClan(clanid);
  605.         }
  606.         if(listitem == 1)
  607.         {
  608.             ShowPlayerDialog(playerid,13, DIALOG_STYLE_LIST, "Arme Clan", "ShoutGun\nSawnoff Shotgun\nCombat Shotgun", "Accept", "Anulez");
  609.             ClanInfo[clanid][cArma2] = 23;
  610.             SaveThisClan(clanid);
  611.         }
  612.         if(listitem == 2)
  613.         {
  614.             ShowPlayerDialog(playerid,13, DIALOG_STYLE_LIST, "Arme Clan", "ShoutGun\nSawnoff Shotgun\nCombat Shotgun", "Accept", "Anulez");
  615.             ClanInfo[clanid][cArma2] = 24;
  616.             SaveThisClan(clanid);
  617.         }
  618.         return 1;
  619. }
  620.  
  621. DIAL:13(playerid, bool:response, listitem, inputtext[])
  622. {
  623.         new clanid = PlayerInfo[playerid][pClan];
  624.         if(listitem == 0)
  625.         {
  626.             ShowPlayerDialog(playerid,14, DIALOG_STYLE_LIST, "Arme Clan", "Micro SMG\nMP5", "Accept", "Anulez");
  627.             ClanInfo[clanid][cArma3] = 25;
  628.             SaveThisClan(clanid);
  629.         }
  630.         if(listitem == 1)
  631.         {
  632.             ShowPlayerDialog(playerid,14, DIALOG_STYLE_LIST, "Arme Clan", "Micro SMG\nMP5", "Accept", "Anulez");
  633.             ClanInfo[clanid][cArma3] = 26;
  634.             SaveThisClan(clanid);
  635.         }
  636.         if(listitem == 2)
  637.         {
  638.             ShowPlayerDialog(playerid,14, DIALOG_STYLE_LIST, "Arme Clan", "Micro SMG\nMP5", "Accept", "Anulez");
  639.             ClanInfo[clanid][cArma3] = 27;
  640.             SaveThisClan(clanid);
  641.         }
  642.         return 1;
  643. }
  644.  
  645. DIAL:14(playerid, bool:response, listitem, inputtext[])
  646. {
  647.         new clanid = PlayerInfo[playerid][pClan];
  648.         if(listitem == 0)
  649.         {
  650.             ShowPlayerDialog(playerid,15, DIALOG_STYLE_LIST, "Arme Clan", "Ak-47\nM5", "Accept", "Anulez");
  651.             ClanInfo[clanid][cArma4] = 28;
  652.             SaveThisClan(clanid);
  653.         }
  654.         if(listitem == 1)
  655.         {
  656.             ShowPlayerDialog(playerid,15, DIALOG_STYLE_LIST, "Arme Clan", "Ak-47\nM5", "Accept", "Anulez");
  657.             ClanInfo[clanid][cArma4] = 29;
  658.             SaveThisClan(clanid);
  659.         }
  660.         return 1;
  661. }
  662.  
  663. DIAL:15(playerid, bool:response, listitem, inputtext[])
  664. {
  665.         new clanid = PlayerInfo[playerid][pClan];
  666.         if(listitem == 0)
  667.         {
  668.             ShowPlayerDialog(playerid,16, DIALOG_STYLE_LIST, "Arme Clan", "Country Rifle\nSniper Rifle", "Accept", "Anulez");
  669.             ClanInfo[clanid][cArma5] = 30;
  670.             SaveThisClan(clanid);
  671.         }
  672.         if(listitem == 1)
  673.         {
  674.             ShowPlayerDialog(playerid,16, DIALOG_STYLE_LIST, "Arme Clan", "Country Rifle\nSniper Rifle", "Accept", "Anulez");
  675.             ClanInfo[clanid][cArma5] = 31;
  676.             SaveThisClan(clanid);
  677.         }
  678.         return 1;
  679. }
  680.  
  681. DIAL:16(playerid, bool:response, listitem, inputtext[])
  682. {
  683.         new clanid = PlayerInfo[playerid][pClan];
  684.         if(listitem == 0)
  685.         {
  686.             ShowPlayerDialog(playerid,17, DIALOG_STYLE_LIST, "Culoare", "{FF0000}Rosu\n{0000FF}Albastru\n{FF00FF}Mov\n{FFFF00}Galben\n{00FF00}Verde\n{00FFFF}Cyan\n{C0C0C0}Gri", "Accept", "Anulez");
  687.             ClanInfo[clanid][cArma6] = 33;
  688.             SaveThisClan(clanid);
  689.         }
  690.         if(listitem == 1)
  691.         {
  692.             ShowPlayerDialog(playerid,17, DIALOG_STYLE_LIST, "Culoare", "{FF0000}Rosu\n{0000FF}Albastru\n{FF00FF}Mov\n{FFFF00}Galben\n{00FF00}Verde\n{00FFFF}Cyan\n{C0C0C0}Gri", "Accept", "Anulez");
  693.             ClanInfo[clanid][cArma6] = 34;
  694.             SaveThisClan(clanid);
  695.         }
  696.         return 1;
  697. }
  698.  
  699. DIAL:17(playerid, bool:response, listitem, inputtext[])
  700. {
  701.         new clanid = PlayerInfo[playerid][pClan];
  702.         if(listitem == 0)
  703.         {
  704.             ShowPlayerDialog(playerid,18, DIALOG_STYLE_INPUT, "Skin Clan", "Introdu id-ul skinului:", "Accept", "Cancel");
  705.             strmid(ClanInfo[clanid][cColor], "0xFF0000", 0, strlen("0xFF0000"), 999);
  706.             SaveThisClan(clanid);
  707.         }
  708.         if(listitem == 1)
  709.         {
  710.             ShowPlayerDialog(playerid,18, DIALOG_STYLE_INPUT, "Skin Clan", "Introdu id-ul skinului:", "Accept", "Cancel");
  711.             strmid(ClanInfo[clanid][cColor], "0x0000FF", 0, strlen("0x0000FF"), 999);
  712.             SaveThisClan(clanid);
  713.         }
  714.         if(listitem == 2)
  715.         {
  716.             ShowPlayerDialog(playerid,18, DIALOG_STYLE_INPUT, "Skin Clan", "Introdu id-ul skinului:", "Accept", "Cancel");
  717.             strmid(ClanInfo[clanid][cColor], "0xFF00FF", 0, strlen("0xFF00FF"), 999);
  718.             SaveThisClan(clanid);
  719.         }
  720.         if(listitem == 3)
  721.         {
  722.             ShowPlayerDialog(playerid,18, DIALOG_STYLE_INPUT, "Skin Clan", "Introdu id-ul skinului:", "Accept", "Cancel");
  723.             strmid(ClanInfo[clanid][cColor], "0xFFFF00", 0, strlen("0xFFFF00"), 999);
  724.             SaveThisClan(clanid);
  725.         }
  726.         if(listitem == 4)
  727.         {
  728.             ShowPlayerDialog(playerid,18, DIALOG_STYLE_INPUT, "Skin Clan", "Introdu id-ul skinului:", "Accept", "Cancel");
  729.             strmid(ClanInfo[clanid][cColor], "0x00FF00", 0, strlen("0x00FF00"), 999);
  730.             SaveThisClan(clanid);
  731.         }
  732.         if(listitem == 5)
  733.         {
  734.             ShowPlayerDialog(playerid,18, DIALOG_STYLE_INPUT, "Skin Clan", "Introdu id-ul skinului:", "Accept", "Cancel");
  735.             strmid(ClanInfo[clanid][cColor], "0x00FFFF", 0, strlen("0x00FFFF"), 999);
  736.             SaveThisClan(clanid);
  737.         }
  738.         if(listitem == 6)
  739.         {
  740.             ShowPlayerDialog(playerid,18, DIALOG_STYLE_INPUT, "Skin Clan", "Introdu id-ul skinului:", "Accept", "Cancel");
  741.             strmid(ClanInfo[clanid][cColor], "0xC0C0C0", 0, strlen("0xC0C0C0"), 999);
  742.             SaveThisClan(clanid);
  743.         }
  744.         return 1;
  745. }
  746.  
  747. DIAL:20(playerid, bool:response, listitem, inputtext[])
  748. {
  749.         new clanid = PlayerInfo[playerid][pClan];
  750.         if(listitem == 0)
  751.         {
  752.             strmid(ClanInfo[clanid][cColor], "0xFF0000AA", 0, strlen("0xFF0000AA"), 999);
  753.             SaveThisClan(clanid);
  754.         }
  755.         if(listitem == 1)
  756.         {
  757.             strmid(ClanInfo[clanid][cColor], "0x0000FFAA", 0, strlen("0x0000FFAA"), 999);
  758.             SaveThisClan(clanid);
  759.         }
  760.         if(listitem == 2)
  761.         {
  762.             strmid(ClanInfo[clanid][cColor], "0xFF00FFAA", 0, strlen("0xFF00FFAA"), 999);
  763.             SaveThisClan(clanid);
  764.         }
  765.         if(listitem == 3)
  766.         {
  767.             strmid(ClanInfo[clanid][cColor], "0xFFFF00AA", 0, strlen("0xFFFF00AA"), 999);
  768.             SaveThisClan(clanid);
  769.         }
  770.         if(listitem == 4)
  771.         {
  772.             strmid(ClanInfo[clanid][cColor], "0x00FF00AA", 0, strlen("0x00FF00AA"), 999);
  773.             SaveThisClan(clanid);
  774.         }
  775.         if(listitem == 5)
  776.         {
  777.             strmid(ClanInfo[clanid][cColor], "0x00FFFFAA", 0, strlen("0x00FFFFAA"), 999);
  778.             SaveThisClan(clanid);
  779.         }
  780.         if(listitem == 6)
  781.         {
  782.             strmid(ClanInfo[clanid][cColor], "0xC0C0C0AA", 0, strlen("0xC0C0C0AA"), 999);
  783.             SaveThisClan(clanid);
  784.         }
  785.         return 1;
  786. }
  787.  
  788. DIAL:18(playerid, bool:response, listitem, inputtext[])
  789. {
  790.     new clanid = PlayerInfo[playerid][pClan];
  791.     new skinid = strval(inputtext);
  792.     if(!IsValidSkin(skinid))
  793.     {
  794.         ShowPlayerDialog(playerid,18, DIALOG_STYLE_INPUT, "Skin Clan 1-5", "Introdu id-ul skinului:", "Accept", "Cancel");
  795.     }
  796.     else
  797.     {
  798.         ShowPlayerDialog(playerid,19, DIALOG_STYLE_INPUT, "Skin Clan 6", "Introdu id-ul skinului2:", "Accept", "Cancel");
  799.         strmid(ClanInfo[clanid][cSkin1], inputtext[100], 0, strlen(inputtext[100]), 999);
  800.         SaveThisClan(clanid);
  801.     }
  802.     return 1;
  803. }
  804.  
  805. DIAL:19(playerid, bool:response, listitem, inputtext[])
  806. {
  807.     new clanid = PlayerInfo[playerid][pClan];
  808.     new skinid = strval(inputtext);
  809.     if(!IsValidSkin(skinid))
  810.     {
  811.         ShowPlayerDialog(playerid,19, DIALOG_STYLE_INPUT, "Skin Clan 6", "Introdu id-ul skinului:", "Accept", "Cancel");
  812.     }
  813.     else
  814.     {
  815.         strmid(ClanInfo[clanid][cSkin2], inputtext[100], 0, strlen(inputtext[100]), 999);
  816.         SendClientMessage(playerid, 0xFF0000AA, "Felicitari ti-ai creeat un clan.");
  817.         SendClientMessage(playerid, 0xFF0000AA, "Nu uita sa folosesti /clanhelp pentru a vedea comenzile clanului.");
  818.     }
  819.     return 1;
  820. }
  821.  
  822.    
  823.  
  824. public LoadClans()
  825. {
  826.     new file[512];
  827.     for(new idx=1;idx<maxclans;idx++)
  828.     {
  829.         format(file, sizeof(file),"Clans/%d.ini", idx);
  830.         if(dini_Exists(file))
  831.         {
  832.             ClanInfo[idx][cID] = dini_Int(file,"ClanId");
  833.             strmid(ClanInfo[idx][cNume], dini_Get(file,"Nume"), 0, strlen(dini_Get(file,"Nume")), 255);
  834.             strmid(ClanInfo[idx][cLider], dini_Get(file,"Lider"), 0, strlen(dini_Get(file,"Lider")), 255);
  835.             ClanInfo[idx][cSkin1] = dini_Int(file,"Skin1");
  836.             ClanInfo[idx][cSkin2] = dini_Int(file,"Skin2");
  837.             strmid(ClanInfo[idx][cColor], dini_Get(file,"Culoare"), 0, strlen(dini_Get(file,"Culoare")), 255);
  838.             ClanInfo[idx][cArma1] = dini_Int(file,"Arma1");
  839.             ClanInfo[idx][cArma2] = dini_Int(file,"Arma2");
  840.             ClanInfo[idx][cArma3] = dini_Int(file,"Arma3");
  841.             ClanInfo[idx][cArma4] = dini_Int(file,"Arma4");
  842.             ClanInfo[idx][cArma5] = dini_Int(file,"Arma5");
  843.             ClanInfo[idx][cArma6] = dini_Int(file,"Arma6");
  844.             ClanInfo[idx][cSpawnx] = dini_Float(file,"Spawnx");
  845.             ClanInfo[idx][cSpawny] = dini_Float(file,"Spawny");
  846.             ClanInfo[idx][cSpawnz] = dini_Float(file,"Spawnz");
  847.             ClanInfo[idx][cAngle] = dini_Float(file,"Rotatie");
  848.             ClanInfo[idx][cInterior] = dini_Int(file,"Interior");
  849.             ClanInfo[idx][cVirtual] = dini_Int(file,"Virtual");
  850.             ClanInfo[idx][cMembri] = dini_Int(file,"Membri");
  851.             ClanInfo[idx][cZi] = dini_Int(file,"Zi");
  852.             ClanInfo[idx][cLuna] = dini_Int(file,"Luna");
  853.             ClanInfo[idx][cAn] = dini_Int(file,"An");
  854.         }
  855.     }
  856.     return 1;
  857. }
  858.  
  859. public SendClanMesaj(color,const string[],clanid)
  860. {
  861.     for(new i = 0; i < MAX_PLAYERS; i++)
  862.     {
  863.         if(IsPlayerConnected(i))
  864.         {
  865.             if (PlayerInfo[i][pClan] == clanid)
  866.             {
  867.                 SendClientMessage(i, color, string);
  868.             }
  869.         }
  870.     }
  871.     return 1;
  872. }
  873.  
  874. IsValidSkin(skinid)
  875. {
  876.     #define     MAX_BAD_SKINS 22
  877.     new badSkins[MAX_BAD_SKINS] =
  878.     {
  879.         3, 4, 5, 6, 8, 42, 65, 74, 86,
  880.         119, 149, 208, 265, 266, 267,
  881.         268, 269, 270, 271, 272, 273, 289
  882.     };
  883.     if (skinid < 0 || skinid > 299) return false;
  884.     for (new i = 0; i < MAX_BAD_SKINS; i++)
  885.     {
  886.         if (skinid == badSkins[i]) return false;
  887.     }
  888.     #undef MAX_BAD_SKINS
  889.     return 1;
  890.  
  891. }
  892.  
  893. public OnPlayerModelSelection(playerid, response, listid, modelid)
  894. {
  895.     new clanid = PlayerInfo[playerid][pClan];
  896.     new file[512];
  897.     format(file, sizeof(file),"Clans/%d.ini", clanid);
  898.     if(listid == skinlist2)
  899.     {
  900.         if(response)
  901.         {
  902.             ShowModelSelectionMenu(playerid, skinlist, "Skin Rank 6");
  903.             ClanInfo[clanid][cSkin1] = modelid;
  904.         }
  905.         else SendClientMessage(playerid, 0xFF0000FF, "Canceled skin selection");
  906.         return 1;
  907.     }
  908.     if(listid == skinlist)
  909.     {
  910.         if(response)
  911.         {
  912.             ShowModelSelectionMenu(playerid, arma1, "Arma Slot 1");
  913.             ClanInfo[clanid][cSkin2] = modelid;
  914.         }
  915.         else SendClientMessage(playerid, 0xFF0000FF, "Canceled skin selection");
  916.         return 1;
  917.     }
  918.     if(listid == arma1)
  919.     {
  920.         if(response)
  921.         {
  922.             ShowModelSelectionMenu(playerid, arma2, "Arma Slot 2");
  923.             switch(modelid)
  924.             {
  925.                 case 331: ClanInfo[clanid][cArma1] = 1; // Brass Knuckles
  926.                 case 333: /*GivePlayerWeapon(playerid, 2, 99999);*/ ClanInfo[clanid][cArma1] = 2; // Golf Club
  927.                 case 334: /*GivePlayerWeapon(playerid, 3, 99999);*/ ClanInfo[clanid][cArma1] = 3;// Nightstick
  928.                 case 335: /*GivePlayerWeapon(playerid, 4, 99999);*/ ClanInfo[clanid][cArma1] = 4;// Knife
  929.                 case 336: /*GivePlayerWeapon(playerid, 5, 99999);*/ ClanInfo[clanid][cArma1] = 5;// Baseball Bat
  930.                 case 337: /*GivePlayerWeapon(playerid, 6, 99999);*/ ClanInfo[clanid][cArma1] = 6;// Shovel
  931.                 case 338: /*GivePlayerWeapon(playerid, 7, 99999);*/ ClanInfo[clanid][cArma1] = 7;// Pool Cue
  932.                 case 339: /*GivePlayerWeapon(playerid, 8, 99999);*/ ClanInfo[clanid][cArma1] = 8;// Katana
  933.                 case 341: /*GivePlayerWeapon(playerid, 9, 99999);*/ ClanInfo[clanid][cArma1] = 9;// Chainsaw
  934.                 case 321: /*GivePlayerWeapon(playerid, 10, 99999);*/ ClanInfo[clanid][cArma1] = 10;// Double-ended Dildo
  935.                 case 325: /*GivePlayerWeapon(playerid, 14, 99999);*/ ClanInfo[clanid][cArma1] = 14;// Flowers
  936.                 case 326: /*GivePlayerWeapon(playerid, 15, 99999);*/ ClanInfo[clanid][cArma1] = 15;// Cane
  937.                 case 342: /*GivePlayerWeapon(playerid, 16, 99999);*/ ClanInfo[clanid][cArma1] = 16;// Grenade
  938.                 case 343: /*GivePlayerWeapon(playerid, 17, 99999);*/ ClanInfo[clanid][cArma1] = 17;// Tear Gas
  939.                 case 344: /*GivePlayerWeapon(playerid, 18, 99999);*/ ClanInfo[clanid][cArma1] = 18;// Molotov Cocktail
  940.                 case 346: /*GivePlayerWeapon(playerid, 22, 99999);*/ ClanInfo[clanid][cArma1] = 22;// 9mm
  941.                 case 347: /*GivePlayerWeapon(playerid, 23, 99999);*/ ClanInfo[clanid][cArma1] = 23;// Silenced 9mm
  942.                 case 348: /*GivePlayerWeapon(playerid, 24, 99999);*/ ClanInfo[clanid][cArma1] = 24;// Desert Eagle
  943.                 case 349: /*GivePlayerWeapon(playerid, 25, 99999);*/ ClanInfo[clanid][cArma1] = 25;// Shotgun
  944.                 case 350: /*GivePlayerWeapon(playerid, 26, 99999);*/ ClanInfo[clanid][cArma1] = 26;// Sawnoff
  945.                 case 351: /*GivePlayerWeapon(playerid, 27, 99999);*/ ClanInfo[clanid][cArma1] = 27;// Combat Shotgun
  946.                 case 352: /*GivePlayerWeapon(playerid, 28, 99999);*/ ClanInfo[clanid][cArma1] = 28;// Micro SMG/Uzi
  947.                 case 353: /*GivePlayerWeapon(playerid, 29, 99999);*/ ClanInfo[clanid][cArma1] = 29;// MP5
  948.                 case 355: /*GivePlayerWeapon(playerid, 30, 99999);*/ ClanInfo[clanid][cArma1] = 30;// AK-47
  949.                 case 356: /*GivePlayerWeapon(playerid, 31, 99999);*/ ClanInfo[clanid][cArma1] = 31;// M4
  950.                 case 372: /*GivePlayerWeapon(playerid, 32, 99999);*/ ClanInfo[clanid][cArma1] = 32;// Tec-9
  951.                 case 357: /*GivePlayerWeapon(playerid, 33, 99999);*/ ClanInfo[clanid][cArma1] = 33;// Country Rifle
  952.                 case 358: /*GivePlayerWeapon(playerid, 34, 99999);*/ ClanInfo[clanid][cArma1] = 34;// Sniper Rifle
  953.                 case 359: /*GivePlayerWeapon(playerid, 35, 99999);*/ ClanInfo[clanid][cArma1] = 35;// RPG
  954.                 case 360: /*GivePlayerWeapon(playerid, 36, 99999);*/ ClanInfo[clanid][cArma1] = 36;// HS Rocket
  955.                 case 361: /*GivePlayerWeapon(playerid, 37, 99999);*/ ClanInfo[clanid][cArma1] = 37;// Flamethrower
  956.                 case 362: /*GivePlayerWeapon(playerid, 38, 99999);*/ ClanInfo[clanid][cArma1] = 37;// Minigun
  957.                 case 363: { /*GivePlayerWeapon(playerid, 39, 99999);*/ /*GivePlayerWeapon(playerid, 40, 1);*/ ClanInfo[clanid][cArma1] = 39;}// Satchel Charge + Detonator
  958.                 case 365: /*GivePlayerWeapon(playerid, 41, 99999);*/ ClanInfo[clanid][cArma1] = 41;// Spraycan
  959.                 case 366: /*GivePlayerWeapon(playerid, 42, 99999);*/ ClanInfo[clanid][cArma1] = 42;// Fire Extinguisher
  960.             }
  961.         }
  962.         else SendClientMessage(playerid, 0xFF0000FF, "Canceled skin selection");
  963.         return 1;
  964.     }
  965.     if(listid == arma2)
  966.     {
  967.         if(response)
  968.         {
  969.             ShowModelSelectionMenu(playerid, arma3, "Arma Slot 3");
  970.             switch(modelid)
  971.             {
  972.                 case 331: ClanInfo[clanid][cArma2] = 1; // Brass Knuckles
  973.                 case 333: /*GivePlayerWeapon(playerid, 2, 99999);*/ ClanInfo[clanid][cArma2] = 2; // Golf Club
  974.                 case 334: /*GivePlayerWeapon(playerid, 3, 99999);*/ ClanInfo[clanid][cArma2] = 3;// Nightstick
  975.                 case 335: /*GivePlayerWeapon(playerid, 4, 99999);*/ ClanInfo[clanid][cArma2] = 4;// Knife
  976.                 case 336: /*GivePlayerWeapon(playerid, 5, 99999);*/ ClanInfo[clanid][cArma2] = 5;// Baseball Bat
  977.                 case 337: /*GivePlayerWeapon(playerid, 6, 99999);*/ ClanInfo[clanid][cArma2] = 6;// Shovel
  978.                 case 338: /*GivePlayerWeapon(playerid, 7, 99999);*/ ClanInfo[clanid][cArma2] = 7;// Pool Cue
  979.                 case 339: /*GivePlayerWeapon(playerid, 8, 99999);*/ ClanInfo[clanid][cArma2] = 8;// Katana
  980.                 case 341: /*GivePlayerWeapon(playerid, 9, 99999);*/ ClanInfo[clanid][cArma2] = 9;// Chainsaw
  981.                 case 321: /*GivePlayerWeapon(playerid, 10, 99999);*/ ClanInfo[clanid][cArma2] = 10;// Double-ended Dildo
  982.                 case 325: /*GivePlayerWeapon(playerid, 14, 99999);*/ ClanInfo[clanid][cArma2] = 14;// Flowers
  983.                 case 326: /*GivePlayerWeapon(playerid, 15, 99999);*/ ClanInfo[clanid][cArma2] = 15;// Cane
  984.                 case 342: /*GivePlayerWeapon(playerid, 16, 99999);*/ ClanInfo[clanid][cArma2] = 16;// Grenade
  985.                 case 343: /*GivePlayerWeapon(playerid, 17, 99999);*/ ClanInfo[clanid][cArma2] = 17;// Tear Gas
  986.                 case 344: /*GivePlayerWeapon(playerid, 18, 99999);*/ ClanInfo[clanid][cArma2] = 18;// Molotov Cocktail
  987.                 case 346: /*GivePlayerWeapon(playerid, 22, 99999);*/ ClanInfo[clanid][cArma2] = 22;// 9mm
  988.                 case 347: /*GivePlayerWeapon(playerid, 23, 99999);*/ ClanInfo[clanid][cArma2] = 23;// Silenced 9mm
  989.                 case 348: /*GivePlayerWeapon(playerid, 24, 99999);*/ ClanInfo[clanid][cArma2] = 24;// Desert Eagle
  990.                 case 349: /*GivePlayerWeapon(playerid, 25, 99999);*/ ClanInfo[clanid][cArma2] = 25;// Shotgun
  991.                 case 350: /*GivePlayerWeapon(playerid, 26, 99999);*/ ClanInfo[clanid][cArma2] = 26;// Sawnoff
  992.                 case 351: /*GivePlayerWeapon(playerid, 27, 99999);*/ ClanInfo[clanid][cArma2] = 27;// Combat Shotgun
  993.                 case 352: /*GivePlayerWeapon(playerid, 28, 99999);*/ ClanInfo[clanid][cArma2] = 28;// Micro SMG/Uzi
  994.                 case 353: /*GivePlayerWeapon(playerid, 29, 99999);*/ ClanInfo[clanid][cArma2] = 29;// MP5
  995.                 case 355: /*GivePlayerWeapon(playerid, 30, 99999);*/ ClanInfo[clanid][cArma2] = 30;// AK-47
  996.                 case 356: /*GivePlayerWeapon(playerid, 31, 99999);*/ ClanInfo[clanid][cArma2] = 31;// M4
  997.                 case 372: /*GivePlayerWeapon(playerid, 32, 99999);*/ ClanInfo[clanid][cArma2] = 32;// Tec-9
  998.                 case 357: /*GivePlayerWeapon(playerid, 33, 99999);*/ ClanInfo[clanid][cArma2] = 33;// Country Rifle
  999.                 case 358: /*GivePlayerWeapon(playerid, 34, 99999);*/ ClanInfo[clanid][cArma2] = 34;// Sniper Rifle
  1000.                 case 359: /*GivePlayerWeapon(playerid, 35, 99999);*/ ClanInfo[clanid][cArma2] = 35;// RPG
  1001.                 case 360: /*GivePlayerWeapon(playerid, 36, 99999);*/ ClanInfo[clanid][cArma2] = 36;// HS Rocket
  1002.                 case 361: /*GivePlayerWeapon(playerid, 37, 99999);*/ ClanInfo[clanid][cArma2] = 37;// Flamethrower
  1003.                 case 362: /*GivePlayerWeapon(playerid, 38, 99999);*/ ClanInfo[clanid][cArma2] = 37;// Minigun
  1004.                 case 363: { /*GivePlayerWeapon(playerid, 39, 99999);*/ /*GivePlayerWeapon(playerid, 40, 1);*/ ClanInfo[clanid][cArma2] = 39;}// Satchel Charge + Detonator
  1005.                 case 365: /*GivePlayerWeapon(playerid, 41, 99999);*/ ClanInfo[clanid][cArma2] = 41;// Spraycan
  1006.                 case 366: /*GivePlayerWeapon(playerid, 42, 99999);*/ ClanInfo[clanid][cArma2] = 42;// Fire Extinguisher
  1007.             }
  1008.         }
  1009.         else SendClientMessage(playerid, 0xFF0000FF, "Canceled skin selection");
  1010.         return 1;
  1011.     }
  1012.     if(listid == arma3)
  1013.     {
  1014.         if(response)
  1015.         {
  1016.             ShowModelSelectionMenu(playerid, arma4, "Arma Slot 4");
  1017.             switch(modelid)
  1018.             {
  1019.                 case 331: ClanInfo[clanid][cArma3] = 1; // Brass Knuckles
  1020.                 case 333: /*GivePlayerWeapon(playerid, 2, 99999);*/ ClanInfo[clanid][cArma3] = 2; // Golf Club
  1021.                 case 334: /*GivePlayerWeapon(playerid, 3, 99999);*/ ClanInfo[clanid][cArma3] = 3;// Nightstick
  1022.                 case 335: /*GivePlayerWeapon(playerid, 4, 99999);*/ ClanInfo[clanid][cArma3] = 4;// Knife
  1023.                 case 336: /*GivePlayerWeapon(playerid, 5, 99999);*/ ClanInfo[clanid][cArma3] = 5;// Baseball Bat
  1024.                 case 337: /*GivePlayerWeapon(playerid, 6, 99999);*/ ClanInfo[clanid][cArma3] = 6;// Shovel
  1025.                 case 338: /*GivePlayerWeapon(playerid, 7, 99999);*/ ClanInfo[clanid][cArma3] = 7;// Pool Cue
  1026.                 case 339: /*GivePlayerWeapon(playerid, 8, 99999);*/ ClanInfo[clanid][cArma3] = 8;// Katana
  1027.                 case 341: /*GivePlayerWeapon(playerid, 9, 99999);*/ ClanInfo[clanid][cArma3] = 9;// Chainsaw
  1028.                 case 321: /*GivePlayerWeapon(playerid, 10, 99999);*/ ClanInfo[clanid][cArma3] = 10;// Double-ended Dildo
  1029.                 case 325: /*GivePlayerWeapon(playerid, 14, 99999);*/ ClanInfo[clanid][cArma3] = 14;// Flowers
  1030.                 case 326: /*GivePlayerWeapon(playerid, 15, 99999);*/ ClanInfo[clanid][cArma3] = 15;// Cane
  1031.                 case 342: /*GivePlayerWeapon(playerid, 16, 99999);*/ ClanInfo[clanid][cArma3] = 16;// Grenade
  1032.                 case 343: /*GivePlayerWeapon(playerid, 17, 99999);*/ ClanInfo[clanid][cArma3] = 17;// Tear Gas
  1033.                 case 344: /*GivePlayerWeapon(playerid, 18, 99999);*/ ClanInfo[clanid][cArma3] = 18;// Molotov Cocktail
  1034.                 case 346: /*GivePlayerWeapon(playerid, 22, 99999);*/ ClanInfo[clanid][cArma3] = 22;// 9mm
  1035.                 case 347: /*GivePlayerWeapon(playerid, 23, 99999);*/ ClanInfo[clanid][cArma3] = 23;// Silenced 9mm
  1036.                 case 348: /*GivePlayerWeapon(playerid, 24, 99999);*/ ClanInfo[clanid][cArma3] = 24;// Desert Eagle
  1037.                 case 349: /*GivePlayerWeapon(playerid, 25, 99999);*/ ClanInfo[clanid][cArma3] = 25;// Shotgun
  1038.                 case 350: /*GivePlayerWeapon(playerid, 26, 99999);*/ ClanInfo[clanid][cArma3] = 26;// Sawnoff
  1039.                 case 351: /*GivePlayerWeapon(playerid, 27, 99999);*/ ClanInfo[clanid][cArma3] = 27;// Combat Shotgun
  1040.                 case 352: /*GivePlayerWeapon(playerid, 28, 99999);*/ ClanInfo[clanid][cArma3] = 28;// Micro SMG/Uzi
  1041.                 case 353: /*GivePlayerWeapon(playerid, 29, 99999);*/ ClanInfo[clanid][cArma3] = 29;// MP5
  1042.                 case 355: /*GivePlayerWeapon(playerid, 30, 99999);*/ ClanInfo[clanid][cArma3] = 30;// AK-47
  1043.                 case 356: /*GivePlayerWeapon(playerid, 31, 99999);*/ ClanInfo[clanid][cArma3] = 31;// M4
  1044.                 case 372: /*GivePlayerWeapon(playerid, 32, 99999);*/ ClanInfo[clanid][cArma3] = 32;// Tec-9
  1045.                 case 357: /*GivePlayerWeapon(playerid, 33, 99999);*/ ClanInfo[clanid][cArma3] = 33;// Country Rifle
  1046.                 case 358: /*GivePlayerWeapon(playerid, 34, 99999);*/ ClanInfo[clanid][cArma3] = 34;// Sniper Rifle
  1047.                 case 359: /*GivePlayerWeapon(playerid, 35, 99999);*/ ClanInfo[clanid][cArma3] = 35;// RPG
  1048.                 case 360: /*GivePlayerWeapon(playerid, 36, 99999);*/ ClanInfo[clanid][cArma3] = 36;// HS Rocket
  1049.                 case 361: /*GivePlayerWeapon(playerid, 37, 99999);*/ ClanInfo[clanid][cArma3] = 37;// Flamethrower
  1050.                 case 362: /*GivePlayerWeapon(playerid, 38, 99999);*/ ClanInfo[clanid][cArma3] = 37;// Minigun
  1051.                 case 363: { /*GivePlayerWeapon(playerid, 39, 99999);*/ /*GivePlayerWeapon(playerid, 40, 1);*/ ClanInfo[clanid][cArma3] = 39;}// Satchel Charge + Detonator
  1052.                 case 365: /*GivePlayerWeapon(playerid, 41, 99999);*/ ClanInfo[clanid][cArma3] = 41;// Spraycan
  1053.                 case 366: /*GivePlayerWeapon(playerid, 42, 99999);*/ ClanInfo[clanid][cArma3] = 42;// Fire Extinguisher
  1054.             }
  1055.         }
  1056.         else SendClientMessage(playerid, 0xFF0000FF, "Canceled skin selection");
  1057.         return 1;
  1058.     }
  1059.     if(listid == arma4)
  1060.     {
  1061.         if(response)
  1062.         {
  1063.             ShowModelSelectionMenu(playerid, arma5, "Arma Slot 5");
  1064.             switch(modelid)
  1065.             {
  1066.                 case 331: ClanInfo[clanid][cArma4] = 1; // Brass Knuckles
  1067.                 case 333: /*GivePlayerWeapon(playerid, 2, 99999);*/ ClanInfo[clanid][cArma4] = 2; // Golf Club
  1068.                 case 334: /*GivePlayerWeapon(playerid, 3, 99999);*/ ClanInfo[clanid][cArma4] = 3;// Nightstick
  1069.                 case 335: /*GivePlayerWeapon(playerid, 4, 99999);*/ ClanInfo[clanid][cArma4] = 4;// Knife
  1070.                 case 336: /*GivePlayerWeapon(playerid, 5, 99999);*/ ClanInfo[clanid][cArma4] = 5;// Baseball Bat
  1071.                 case 337: /*GivePlayerWeapon(playerid, 6, 99999);*/ ClanInfo[clanid][cArma4] = 6;// Shovel
  1072.                 case 338: /*GivePlayerWeapon(playerid, 7, 99999);*/ ClanInfo[clanid][cArma4] = 7;// Pool Cue
  1073.                 case 339: /*GivePlayerWeapon(playerid, 8, 99999);*/ ClanInfo[clanid][cArma4] = 8;// Katana
  1074.                 case 341: /*GivePlayerWeapon(playerid, 9, 99999);*/ ClanInfo[clanid][cArma4] = 9;// Chainsaw
  1075.                 case 321: /*GivePlayerWeapon(playerid, 10, 99999);*/ ClanInfo[clanid][cArma4] = 10;// Double-ended Dildo
  1076.                 case 325: /*GivePlayerWeapon(playerid, 14, 99999);*/ ClanInfo[clanid][cArma4] = 14;// Flowers
  1077.                 case 326: /*GivePlayerWeapon(playerid, 15, 99999);*/ ClanInfo[clanid][cArma4] = 15;// Cane
  1078.                 case 342: /*GivePlayerWeapon(playerid, 16, 99999);*/ ClanInfo[clanid][cArma4] = 16;// Grenade
  1079.                 case 343: /*GivePlayerWeapon(playerid, 17, 99999);*/ ClanInfo[clanid][cArma4] = 17;// Tear Gas
  1080.                 case 344: /*GivePlayerWeapon(playerid, 18, 99999);*/ ClanInfo[clanid][cArma4] = 18;// Molotov Cocktail
  1081.                 case 346: /*GivePlayerWeapon(playerid, 22, 99999);*/ ClanInfo[clanid][cArma4] = 22;// 9mm
  1082.                 case 347: /*GivePlayerWeapon(playerid, 23, 99999);*/ ClanInfo[clanid][cArma4] = 23;// Silenced 9mm
  1083.                 case 348: /*GivePlayerWeapon(playerid, 24, 99999);*/ ClanInfo[clanid][cArma4] = 24;// Desert Eagle
  1084.                 case 349: /*GivePlayerWeapon(playerid, 25, 99999);*/ ClanInfo[clanid][cArma4] = 25;// Shotgun
  1085.                 case 350: /*GivePlayerWeapon(playerid, 26, 99999);*/ ClanInfo[clanid][cArma4] = 26;// Sawnoff
  1086.                 case 351: /*GivePlayerWeapon(playerid, 27, 99999);*/ ClanInfo[clanid][cArma4] = 27;// Combat Shotgun
  1087.                 case 352: /*GivePlayerWeapon(playerid, 28, 99999);*/ ClanInfo[clanid][cArma4] = 28;// Micro SMG/Uzi
  1088.                 case 353: /*GivePlayerWeapon(playerid, 29, 99999);*/ ClanInfo[clanid][cArma4] = 29;// MP5
  1089.                 case 355: /*GivePlayerWeapon(playerid, 30, 99999);*/ ClanInfo[clanid][cArma4] = 30;// AK-47
  1090.                 case 356: /*GivePlayerWeapon(playerid, 31, 99999);*/ ClanInfo[clanid][cArma4] = 31;// M4
  1091.                 case 372: /*GivePlayerWeapon(playerid, 32, 99999);*/ ClanInfo[clanid][cArma4] = 32;// Tec-9
  1092.                 case 357: /*GivePlayerWeapon(playerid, 33, 99999);*/ ClanInfo[clanid][cArma4] = 33;// Country Rifle
  1093.                 case 358: /*GivePlayerWeapon(playerid, 34, 99999);*/ ClanInfo[clanid][cArma4] = 34;// Sniper Rifle
  1094.                 case 359: /*GivePlayerWeapon(playerid, 35, 99999);*/ ClanInfo[clanid][cArma4] = 35;// RPG
  1095.                 case 360: /*GivePlayerWeapon(playerid, 36, 99999);*/ ClanInfo[clanid][cArma4] = 36;// HS Rocket
  1096.                 case 361: /*GivePlayerWeapon(playerid, 37, 99999);*/ ClanInfo[clanid][cArma4] = 37;// Flamethrower
  1097.                 case 362: /*GivePlayerWeapon(playerid, 38, 99999);*/ ClanInfo[clanid][cArma4] = 37;// Minigun
  1098.                 case 363: { /*GivePlayerWeapon(playerid, 39, 99999);*/ /*GivePlayerWeapon(playerid, 40, 1);*/ ClanInfo[clanid][cArma4] = 39;}// Satchel Charge + Detonator
  1099.                 case 365: /*GivePlayerWeapon(playerid, 41, 99999);*/ ClanInfo[clanid][cArma4] = 41;// Spraycan
  1100.                 case 366: /*GivePlayerWeapon(playerid, 42, 99999);*/ ClanInfo[clanid][cArma4] = 42;// Fire Extinguisher
  1101.             }
  1102.         }
  1103.         else SendClientMessage(playerid, 0xFF0000FF, "Canceled skin selection");
  1104.         return 1;
  1105.     }
  1106.     if(listid == arma5)
  1107.     {
  1108.         if(response)
  1109.         {
  1110.             ShowModelSelectionMenu(playerid, arma6, "Arma Slot 6");
  1111.             switch(modelid)
  1112.             {
  1113.                 case 331: ClanInfo[clanid][cArma5] = 1; // Brass Knuckles
  1114.                 case 333: /*GivePlayerWeapon(playerid, 2, 99999);*/ ClanInfo[clanid][cArma5] = 2; // Golf Club
  1115.                 case 334: /*GivePlayerWeapon(playerid, 3, 99999);*/ ClanInfo[clanid][cArma5] = 3;// Nightstick
  1116.                 case 335: /*GivePlayerWeapon(playerid, 4, 99999);*/ ClanInfo[clanid][cArma5] = 4;// Knife
  1117.                 case 336: /*GivePlayerWeapon(playerid, 5, 99999);*/ ClanInfo[clanid][cArma5] = 5;// Baseball Bat
  1118.                 case 337: /*GivePlayerWeapon(playerid, 6, 99999);*/ ClanInfo[clanid][cArma5] = 6;// Shovel
  1119.                 case 338: /*GivePlayerWeapon(playerid, 7, 99999);*/ ClanInfo[clanid][cArma5] = 7;// Pool Cue
  1120.                 case 339: /*GivePlayerWeapon(playerid, 8, 99999);*/ ClanInfo[clanid][cArma5] = 8;// Katana
  1121.                 case 341: /*GivePlayerWeapon(playerid, 9, 99999);*/ ClanInfo[clanid][cArma5] = 9;// Chainsaw
  1122.                 case 321: /*GivePlayerWeapon(playerid, 10, 99999);*/ ClanInfo[clanid][cArma5] = 10;// Double-ended Dildo
  1123.                 case 325: /*GivePlayerWeapon(playerid, 14, 99999);*/ ClanInfo[clanid][cArma5] = 14;// Flowers
  1124.                 case 326: /*GivePlayerWeapon(playerid, 15, 99999);*/ ClanInfo[clanid][cArma5] = 15;// Cane
  1125.                 case 342: /*GivePlayerWeapon(playerid, 16, 99999);*/ ClanInfo[clanid][cArma5] = 16;// Grenade
  1126.                 case 343: /*GivePlayerWeapon(playerid, 17, 99999);*/ ClanInfo[clanid][cArma5] = 17;// Tear Gas
  1127.                 case 344: /*GivePlayerWeapon(playerid, 18, 99999);*/ ClanInfo[clanid][cArma5] = 18;// Molotov Cocktail
  1128.                 case 346: /*GivePlayerWeapon(playerid, 22, 99999);*/ ClanInfo[clanid][cArma5] = 22;// 9mm
  1129.                 case 347: /*GivePlayerWeapon(playerid, 23, 99999);*/ ClanInfo[clanid][cArma5] = 23;// Silenced 9mm
  1130.                 case 348: /*GivePlayerWeapon(playerid, 24, 99999);*/ ClanInfo[clanid][cArma5] = 24;// Desert Eagle
  1131.                 case 349: /*GivePlayerWeapon(playerid, 25, 99999);*/ ClanInfo[clanid][cArma5] = 25;// Shotgun
  1132.                 case 350: /*GivePlayerWeapon(playerid, 26, 99999);*/ ClanInfo[clanid][cArma5] = 26;// Sawnoff
  1133.                 case 351: /*GivePlayerWeapon(playerid, 27, 99999);*/ ClanInfo[clanid][cArma5] = 27;// Combat Shotgun
  1134.                 case 352: /*GivePlayerWeapon(playerid, 28, 99999);*/ ClanInfo[clanid][cArma5] = 28;// Micro SMG/Uzi
  1135.                 case 353: /*GivePlayerWeapon(playerid, 29, 99999);*/ ClanInfo[clanid][cArma5] = 29;// MP5
  1136.                 case 355: /*GivePlayerWeapon(playerid, 30, 99999);*/ ClanInfo[clanid][cArma5] = 30;// AK-47
  1137.                 case 356: /*GivePlayerWeapon(playerid, 31, 99999);*/ ClanInfo[clanid][cArma5] = 31;// M4
  1138.                 case 372: /*GivePlayerWeapon(playerid, 32, 99999);*/ ClanInfo[clanid][cArma5] = 32;// Tec-9
  1139.                 case 357: /*GivePlayerWeapon(playerid, 33, 99999);*/ ClanInfo[clanid][cArma5] = 33;// Country Rifle
  1140.                 case 358: /*GivePlayerWeapon(playerid, 34, 99999);*/ ClanInfo[clanid][cArma5] = 34;// Sniper Rifle
  1141.                 case 359: /*GivePlayerWeapon(playerid, 35, 99999);*/ ClanInfo[clanid][cArma5] = 35;// RPG
  1142.                 case 360: /*GivePlayerWeapon(playerid, 36, 99999);*/ ClanInfo[clanid][cArma5] = 36;// HS Rocket
  1143.                 case 361: /*GivePlayerWeapon(playerid, 37, 99999);*/ ClanInfo[clanid][cArma5] = 37;// Flamethrower
  1144.                 case 362: /*GivePlayerWeapon(playerid, 38, 99999);*/ ClanInfo[clanid][cArma5] = 37;// Minigun
  1145.                 case 363: { /*GivePlayerWeapon(playerid, 39, 99999);*/ /*GivePlayerWeapon(playerid, 40, 1);*/ ClanInfo[clanid][cArma5] = 39;}// Satchel Charge + Detonator
  1146.                 case 365: /*GivePlayerWeapon(playerid, 41, 99999);*/ ClanInfo[clanid][cArma5] = 41;// Spraycan
  1147.                 case 366: /*GivePlayerWeapon(playerid, 42, 99999);*/ ClanInfo[clanid][cArma5] = 42;// Fire Extinguisher
  1148.             }
  1149.         }
  1150.         else SendClientMessage(playerid, 0xFF0000FF, "Canceled skin selection");
  1151.         return 1;
  1152.     }
  1153.     if(listid == arma6)
  1154.     {
  1155.         if(response)
  1156.         {
  1157.             ShowPlayerDialog(playerid,20, DIALOG_STYLE_LIST, "Culoare", "{FF0000}Rosu\n{0000FF}Albastru\n{FF00FF}Mov\n{FFFF00}Galben\n{00FF00}Verde\n{00FFFF}Cyan\n{C0C0C0}Gri", "Accept", "Anulez");
  1158.             switch(modelid)
  1159.             {
  1160.                 case 331: ClanInfo[clanid][cArma1] = 1; // Brass Knuckles
  1161.                 case 333: /*GivePlayerWeapon(playerid, 2, 99999);*/ ClanInfo[clanid][cArma6] = 2; // Golf Club
  1162.                 case 334: /*GivePlayerWeapon(playerid, 3, 99999);*/ ClanInfo[clanid][cArma6] = 3;// Nightstick
  1163.                 case 335: /*GivePlayerWeapon(playerid, 4, 99999);*/ ClanInfo[clanid][cArma6] = 4;// Knife
  1164.                 case 336: /*GivePlayerWeapon(playerid, 5, 99999);*/ ClanInfo[clanid][cArma6] = 5;// Baseball Bat
  1165.                 case 337: /*GivePlayerWeapon(playerid, 6, 99999);*/ ClanInfo[clanid][cArma6] = 6;// Shovel
  1166.                 case 338: /*GivePlayerWeapon(playerid, 7, 99999);*/ ClanInfo[clanid][cArma6] = 7;// Pool Cue
  1167.                 case 339: /*GivePlayerWeapon(playerid, 8, 99999);*/ ClanInfo[clanid][cArma6] = 8;// Katana
  1168.                 case 341: /*GivePlayerWeapon(playerid, 9, 99999);*/ ClanInfo[clanid][cArma6] = 9;// Chainsaw
  1169.                 case 321: /*GivePlayerWeapon(playerid, 10, 99999);*/ ClanInfo[clanid][cArma6] = 10;// Double-ended Dildo
  1170.                 case 325: /*GivePlayerWeapon(playerid, 14, 99999);*/ ClanInfo[clanid][cArma6] = 14;// Flowers
  1171.                 case 326: /*GivePlayerWeapon(playerid, 15, 99999);*/ ClanInfo[clanid][cArma6] = 15;// Cane
  1172.                 case 342: /*GivePlayerWeapon(playerid, 16, 99999);*/ ClanInfo[clanid][cArma6] = 16;// Grenade
  1173.                 case 343: /*GivePlayerWeapon(playerid, 17, 99999);*/ ClanInfo[clanid][cArma1] = 17;// Tear Gas
  1174.                 case 344: /*GivePlayerWeapon(playerid, 18, 99999);*/ ClanInfo[clanid][cArma6] = 18;// Molotov Cocktail
  1175.                 case 346: /*GivePlayerWeapon(playerid, 22, 99999);*/ ClanInfo[clanid][cArma6] = 22;// 9mm
  1176.                 case 347: /*GivePlayerWeapon(playerid, 23, 99999);*/ ClanInfo[clanid][cArma6] = 23;// Silenced 9mm
  1177.                 case 348: /*GivePlayerWeapon(playerid, 24, 99999);*/ ClanInfo[clanid][cArma6] = 24;// Desert Eagle
  1178.                 case 349: /*GivePlayerWeapon(playerid, 25, 99999);*/ ClanInfo[clanid][cArma6] = 25;// Shotgun
  1179.                 case 350: /*GivePlayerWeapon(playerid, 26, 99999);*/ ClanInfo[clanid][cArma6] = 26;// Sawnoff
  1180.                 case 351: /*GivePlayerWeapon(playerid, 27, 99999);*/ ClanInfo[clanid][cArma6] = 27;// Combat Shotgun
  1181.                 case 352: /*GivePlayerWeapon(playerid, 28, 99999);*/ ClanInfo[clanid][cArma6] = 28;// Micro SMG/Uzi
  1182.                 case 353: /*GivePlayerWeapon(playerid, 29, 99999);*/ ClanInfo[clanid][cArma6] = 29;// MP5
  1183.                 case 355: /*GivePlayerWeapon(playerid, 30, 99999);*/ ClanInfo[clanid][cArma6] = 30;// AK-47
  1184.                 case 356: /*GivePlayerWeapon(playerid, 31, 99999);*/ ClanInfo[clanid][cArma6] = 31;// M4
  1185.                 case 372: /*GivePlayerWeapon(playerid, 32, 99999);*/ ClanInfo[clanid][cArma6] = 32;// Tec-9
  1186.                 case 357: /*GivePlayerWeapon(playerid, 33, 99999);*/ ClanInfo[clanid][cArma6] = 33;// Country Rifle
  1187.                 case 358: /*GivePlayerWeapon(playerid, 34, 99999);*/ ClanInfo[clanid][cArma6] = 34;// Sniper Rifle
  1188.                 case 359: /*GivePlayerWeapon(playerid, 35, 99999);*/ ClanInfo[clanid][cArma6] = 35;// RPG
  1189.                 case 360: /*GivePlayerWeapon(playerid, 36, 99999);*/ ClanInfo[clanid][cArma1] = 36;// HS Rocket
  1190.                 case 361: /*GivePlayerWeapon(playerid, 37, 99999);*/ ClanInfo[clanid][cArma6] = 37;// Flamethrower
  1191.                 case 362: /*GivePlayerWeapon(playerid, 38, 99999);*/ ClanInfo[clanid][cArma6] = 37;// Minigun
  1192.                 case 363: { /*GivePlayerWeapon(playerid, 39, 99999);*/ /*GivePlayerWeapon(playerid, 40, 1);*/ ClanInfo[clanid][cArma6] = 39;}// Satchel Charge + Detonator
  1193.                 case 365: /*GivePlayerWeapon(playerid, 41, 99999);*/ ClanInfo[clanid][cArma6] = 41;// Spraycan
  1194.                 case 366: /*GivePlayerWeapon(playerid, 42, 99999);*/ ClanInfo[clanid][cArma6] = 42;// Fire Extinguisher
  1195.             }
  1196.         }
  1197.         else SendClientMessage(playerid, 0xFF0000FF, "Canceled skin selection");
  1198.         return 1;
  1199.     }
  1200.     return 1;
  1201. }
  1202.  
  1203. public SaveClans()
  1204. {
  1205.     for(new clanid=1;clanid<maxclans;clanid++)
  1206.     {
  1207.         new file2[512];
  1208.         format(file2, sizeof(file2),"Clans/%d.ini", clanid);
  1209.         if(dini_Exists(file2))
  1210.         {
  1211.             dini_IntSet(file2,"ClanId",ClanInfo[clanid][cID]);
  1212.             dini_Set(file2,"Nume", ClanInfo[clanid][cNume]);
  1213.             dini_Set(file2,"Lider", ClanInfo[clanid][cLider]);
  1214.             dini_IntSet(file2,"Skin1",ClanInfo[clanid][cSkin1]);
  1215.             dini_IntSet(file2,"Skin2",ClanInfo[clanid][cSkin2]);
  1216.             dini_Set(file2,"Culoare",ClanInfo[clanid][cColor]);
  1217.             dini_IntSet(file2,"Arma1",ClanInfo[clanid][cArma1]);
  1218.             dini_IntSet(file2,"Arma2",ClanInfo[clanid][cArma2]);
  1219.             dini_IntSet(file2,"Arma3",ClanInfo[clanid][cArma3]);
  1220.             dini_IntSet(file2,"Arma4",ClanInfo[clanid][cArma4]);
  1221.             dini_IntSet(file2,"Arma5",ClanInfo[clanid][cArma5]);
  1222.             dini_IntSet(file2,"Arma6",ClanInfo[clanid][cArma6]);
  1223.             dini_FloatSet(file2,"Spawnx",ClanInfo[clanid][cSpawnx]);
  1224.             dini_FloatSet(file2,"Spawny",ClanInfo[clanid][cSpawny]);
  1225.             dini_FloatSet(file2,"Spawnz",ClanInfo[clanid][cSpawnz]);
  1226.             dini_FloatSet(file2,"Rotatie",ClanInfo[clanid][cAngle]);
  1227.             dini_IntSet(file2,"Interior",ClanInfo[clanid][cInterior]);
  1228.             dini_IntSet(file2,"Virtual",ClanInfo[clanid][cVirtual]);
  1229.             dini_IntSet(file2,"Membri",ClanInfo[clanid][cMembri]);
  1230.             dini_IntSet(file2,"Zi",ClanInfo[clanid][cZi]);
  1231.             dini_IntSet(file2,"Luna",ClanInfo[clanid][cLuna]);
  1232.             dini_IntSet(file2,"An",ClanInfo[clanid][cAn]);
  1233.         }
  1234.         return 1;
  1235.     }
  1236.     return 1;
  1237. }
  1238.  
  1239. public SaveThisClan(clanid)
  1240. {
  1241.     new file2[512];
  1242.     format(file2, sizeof(file2),"Clans/%d.ini", clanid);
  1243.     if(dini_Exists(file2))
  1244.     {
  1245.         dini_IntSet(file2,"ClanId",ClanInfo[clanid][cID]);
  1246.         dini_Set(file2,"Nume", ClanInfo[clanid][cNume]);
  1247.         dini_Set(file2,"Lider", ClanInfo[clanid][cLider]);
  1248.         dini_IntSet(file2,"Skin1",ClanInfo[clanid][cSkin1]);
  1249.         dini_IntSet(file2,"Skin2",ClanInfo[clanid][cSkin2]);
  1250.         dini_Set(file2,"Culoare",ClanInfo[clanid][cColor]);
  1251.         dini_IntSet(file2,"Arma1",ClanInfo[clanid][cArma1]);
  1252.         dini_IntSet(file2,"Arma2",ClanInfo[clanid][cArma2]);
  1253.         dini_IntSet(file2,"Arma3",ClanInfo[clanid][cArma3]);
  1254.         dini_IntSet(file2,"Arma4",ClanInfo[clanid][cArma4]);
  1255.         dini_IntSet(file2,"Arma5",ClanInfo[clanid][cArma5]);
  1256.         dini_IntSet(file2,"Arma6",ClanInfo[clanid][cArma6]);
  1257.         dini_FloatSet(file2,"Spawnx",ClanInfo[clanid][cSpawnx]);
  1258.         dini_FloatSet(file2,"Spawny",ClanInfo[clanid][cSpawny]);
  1259.         dini_FloatSet(file2,"Spawnz",ClanInfo[clanid][cSpawnz]);
  1260.         dini_FloatSet(file2,"Rotatie",ClanInfo[clanid][cAngle]);
  1261.         dini_IntSet(file2,"Interior",ClanInfo[clanid][cInterior]);
  1262.         dini_IntSet(file2,"Virtual",ClanInfo[clanid][cVirtual]);
  1263.         dini_IntSet(file2,"Membri",ClanInfo[clanid][cMembri]);
  1264.         dini_IntSet(file2,"Zi",ClanInfo[clanid][cZi]);
  1265.         dini_IntSet(file2,"Luna",ClanInfo[clanid][cLuna]);
  1266.         dini_IntSet(file2,"An",ClanInfo[clanid][cAn]);
  1267.         return 1;
  1268.     }
  1269.     else if(!dini_Exists(file2))
  1270.     {
  1271.         dini_Create(file2);
  1272.         dini_IntSet(file2,"ClanId",ClanInfo[clanid][cID]);
  1273.         dini_Set(file2,"Nume", ClanInfo[clanid][cNume]);
  1274.         dini_Set(file2,"Lider", ClanInfo[clanid][cLider]);
  1275.         dini_IntSet(file2,"Skin1",ClanInfo[clanid][cSkin1]);
  1276.         dini_IntSet(file2,"Skin2",ClanInfo[clanid][cSkin2]);
  1277.         dini_Set(file2,"Culoare",ClanInfo[clanid][cColor]);
  1278.         dini_IntSet(file2,"Arma1",ClanInfo[clanid][cArma1]);
  1279.         dini_IntSet(file2,"Arma2",ClanInfo[clanid][cArma2]);
  1280.         dini_IntSet(file2,"Arma3",ClanInfo[clanid][cArma3]);
  1281.         dini_IntSet(file2,"Arma4",ClanInfo[clanid][cArma4]);
  1282.         dini_IntSet(file2,"Arma5",ClanInfo[clanid][cArma5]);
  1283.         dini_IntSet(file2,"Arma6",ClanInfo[clanid][cArma6]);
  1284.         dini_FloatSet(file2,"Spawnx",ClanInfo[clanid][cSpawnx]);
  1285.         dini_FloatSet(file2,"Spawny",ClanInfo[clanid][cSpawny]);
  1286.         dini_FloatSet(file2,"Spawnz",ClanInfo[clanid][cSpawnz]);
  1287.         dini_FloatSet(file2,"Rotatie",ClanInfo[clanid][cAngle]);
  1288.         dini_IntSet(file2,"Interior",ClanInfo[clanid][cInterior]);
  1289.         dini_IntSet(file2,"Virtual",ClanInfo[clanid][cVirtual]);
  1290.         dini_IntSet(file2,"Membri",ClanInfo[clanid][cMembri]);
  1291.         dini_IntSet(file2,"Zi",ClanInfo[clanid][cZi]);
  1292.         dini_IntSet(file2,"Luna",ClanInfo[clanid][cLuna]);
  1293.         dini_IntSet(file2,"An",ClanInfo[clanid][cAn]);
  1294.         return 1;
  1295.     }
  1296.     return 1;
  1297. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement