Advertisement
Gireada

CreateClan v3

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