Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /****************************************************************************************************************************************************************************
- *****************************************************************************************************************************************************************************
- *****************************************************************************************************************************************************************************
- ***********************************************************************__________________************************************************************************************
- **********************************************************************| CreateClan |***********************************************************************************
- **********************************************************************| |***********************************************************************************
- **********************************************************************| By |***********************************************************************************
- **********************************************************************| Gireada |***********************************************************************************
- **********************************************************************| |***********************************************************************************
- **********************************************************************| |***********************************************************************************
- **********************************************************************| |***********************************************************************************
- **********************************************************************| |***********************************************************************************
- **********************************************************************| |***********************************************************************************
- **********************************************************************---------------------************************************************************************************
- */
- //Nu stergeti Creditele.
- #include <a_samp>
- #include <dini>
- #include <zcmd>
- #include <sscanf2>
- #include <mSelection>
- #define Creiat_de_Gireada
- forward SaveClans();
- forward LoadClans();
- forward SaveThisClan(clanid);
- forward SendClanMesaj(color,const string[],clanid);
- new skinlist = mS_INVALID_LISTID;
- new skinlist2 = mS_INVALID_LISTID;
- new arma1 = mS_INVALID_LISTID;
- new arma2 = mS_INVALID_LISTID;
- new arma3 = mS_INVALID_LISTID;
- new arma4 = mS_INVALID_LISTID;
- new arma5 = mS_INVALID_LISTID;
- new arma6 = mS_INVALID_LISTID;
- new cpickup[100];
- new maxclans = 100;
- new Text3D:ctextlabel[100];
- enum PlayerData
- {
- pCreateClan,
- pClan,
- pRank,
- pInvitation,
- pInvClan,
- pClanName,
- }
- new PlayerInfo[MAX_PLAYERS][PlayerData];
- enum ClanData
- {
- cID,
- cNume[MAX_PLAYER_NAME],
- cSkin1,
- cSkin2,
- cColor[MAX_PLAYER_NAME],
- cArma1,
- cArma2,
- cArma3,
- cArma4,
- cArma5,
- cArma6,
- cRank,
- cLider[MAX_PLAYER_NAME],
- Float:cSpawnx,
- Float:cSpawny,
- Float:cSpawnz,
- Float:cAngle,
- cInterior,
- cVirtual,
- cMembri,
- cZi,
- cLuna,
- cAn,
- }
- new ClanInfo[100][ClanData];
- public OnGameModeInit()
- {
- LoadClans();
- skinlist = LoadModelSelectionMenu("skins.txt");
- skinlist2 = LoadModelSelectionMenu("skins2.txt");
- arma1 = LoadModelSelectionMenu("arma1.txt");
- arma2 = LoadModelSelectionMenu("arma2.txt");
- arma3 = LoadModelSelectionMenu("arma3.txt");
- arma4 = LoadModelSelectionMenu("arma4.txt");
- arma5 = LoadModelSelectionMenu("arma5.txt");
- arma6 = LoadModelSelectionMenu("arma6.txt");
- for(new cid = 0; cid < maxclans; cid++)
- {
- new file[80], string2[500];
- format(file, sizeof(file),"Clans/%d.ini", cid);
- if(dini_Exists(file))
- {
- cpickup[cid] = CreatePickup(1314, 1, ClanInfo[cid][cSpawnx], ClanInfo[cid][cSpawny], ClanInfo[cid][cSpawnz], -1);
- 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);
- ctextlabel[cid] = Create3DTextLabel(string2, 0xFFFFFFFF, ClanInfo[cid][cSpawnx], ClanInfo[cid][cSpawny], ClanInfo[cid][cSpawnz], 20.0, 0, 0);
- }
- }
- return 1;
- }
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Create Clan by Gireada");
- print("--------------------------------------\n");
- /*skinlist = LoadModelSelectionMenu("skins.txt");
- skinlist2 = LoadModelSelectionMenu("skins2.txt");
- arma1 = LoadModelSelectionMenu("arma1.txt");
- arma2 = LoadModelSelectionMenu("arma2.txt");
- arma3 = LoadModelSelectionMenu("arma3.txt");
- arma4 = LoadModelSelectionMenu("arma4.txt");
- arma5 = LoadModelSelectionMenu("arma5.txt");
- arma6 = LoadModelSelectionMenu("arma6.txt");*/
- return 1;
- }
- public OnFilterScriptExit()
- {
- SaveClans();
- return 1;
- }
- main()
- {
- print("\n----------------------------------");
- print(" Create Clan by Gireada");
- print("----------------------------------\n");
- }
- stock pName(playerid)
- {
- new name[MAX_PLAYER_NAME];
- GetPlayerName(playerid,name,sizeof(name));
- return name;
- }
- public OnPlayerConnect(playerid)
- {
- new file[35], clanname[MAX_PLAYERS],file2[500];
- format(clanname, sizeof(clanname), "N/a");
- format(file, sizeof(file),"JucatoriClan/%s.ini", pName(playerid));
- if(dini_Exists(file))
- {
- PlayerInfo[playerid][pRank] = dini_Int(file,"Rank");
- PlayerInfo[playerid][pCreateClan] = dini_Int(file,"CreateClan");
- PlayerInfo[playerid][pClan] = dini_Int(file,"Clan");
- strmid(PlayerInfo[playerid][pClanName], dini_Get(file,"ClanNume"), 0, strlen(dini_Get(file,"ClanNume")), 255);
- }
- else if(!dini_Exists(file))
- {
- dini_Create(file);
- dini_IntSet(file,"Rank",PlayerInfo[playerid][pRank] = 0);
- dini_IntSet(file,"CreateClan",PlayerInfo[playerid][pCreateClan] = 0);
- dini_IntSet(file,"Clan",PlayerInfo[playerid][pClan] = 0);
- dini_Set(file,"ClanNume","N/a");
- }
- new clanid = PlayerInfo[playerid][pClan];
- format(file2, sizeof(file2), "Clans/%d.ini", clanid);
- if(dini_Exists(file2))
- {
- if(!(ClanInfo[clanid][cNume] == PlayerInfo[playerid][pClanName]) && (PlayerInfo[playerid][pClan] > 0))
- {
- dini_Set(file,"ClanNume","N/a");
- dini_IntSet(file,"Rank",0);
- dini_IntSet(file,"CreateClan",0);
- dini_IntSet(file,"Clan",PlayerInfo[playerid][pClan] = 0);
- dini_IntSet(file,"CreateClan",PlayerInfo[playerid][pCreateClan] = 0);
- SendClientMessage(playerid, 0xFF0000AA, "Clanul sa desfintat!");
- }
- }
- else if(!dini_Exists(file2))
- {
- dini_Set(file,"ClanNume","N/a");
- dini_IntSet(file,"Rank",0);
- dini_IntSet(file,"CreateClan",0);
- PlayerInfo[playerid][pCreateClan] = 0;
- SendClientMessage(playerid, 0xFF0000AA, "Clanul sa desfintat!");
- }
- SendClientMessage(playerid, 0xFF0000AA, "Sistem de Clan creeat de Gireada! Contact: gireada09");
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- new file[35];
- format(file, sizeof(file),"JucatoriClan/%s.ini", pName(playerid));
- dini_IntSet(file,"Rank",PlayerInfo[playerid][pRank]);
- dini_IntSet(file,"CreateClan",PlayerInfo[playerid][pCreateClan]);
- dini_IntSet(file,"Clan",PlayerInfo[playerid][pClan]);
- dini_Set(file,"ClanNume",PlayerInfo[playerid][pClanName]);
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- new clanid = PlayerInfo[playerid][pClan];
- if(PlayerInfo[playerid][pClan] >= 0)
- {
- SetPlayerPos(playerid,ClanInfo[clanid][cSpawnx],ClanInfo[clanid][cSpawny],ClanInfo[clanid][cSpawnz]);
- SetPlayerInterior(playerid, ClanInfo[clanid][cInterior]);
- SetPlayerVirtualWorld(playerid, ClanInfo[clanid][cVirtual]);
- SetPlayerColor(playerid, ClanInfo[PlayerInfo[playerid][pClan]][cColor]);
- GivePlayerWeapon(playerid, ClanInfo[clanid][cArma1], 1);
- GivePlayerWeapon(playerid, ClanInfo[clanid][cArma2], 999999);
- GivePlayerWeapon(playerid, ClanInfo[clanid][cArma3], 999999);
- GivePlayerWeapon(playerid, ClanInfo[clanid][cArma4], 999999);
- GivePlayerWeapon(playerid, ClanInfo[clanid][cArma5], 999999);
- GivePlayerWeapon(playerid, ClanInfo[clanid][cArma6], 999999);
- if(PlayerInfo[playerid][pRank] <= 5)
- {
- SetPlayerSkin(playerid, ClanInfo[clanid][cSkin1]);
- }
- else if(PlayerInfo[playerid][pRank] == 6)
- {
- SetPlayerSkin(playerid, ClanInfo[clanid][cSkin2]);
- }
- }
- return 1;
- }
- CMD:cstat(playerid, params[])
- {
- new string[1024],string2[1024];
- new clanid = PlayerInfo[playerid][pClan];
- format(string2,sizeof(string2), "{7CFC00}%s {FFFFFF}Clan Stats\n\n\n",ClanInfo[clanid][cNume]);
- strcat( string, string2);
- format(string2,sizeof(string2), "{7CFC00}Cland ID:{FFFFFF} %d\n",ClanInfo[clanid][cID]);
- strcat( string, string2);
- format(string2,sizeof(string2), "{7CFC00}Cland Lider:{FFFFFF} %s\n",ClanInfo[clanid][cLider]);
- strcat( string, string2);
- format(string2,sizeof(string2), "{7CFC00}Cland Membri:{FFFFFF} %d\n",ClanInfo[clanid][cMembri]);
- strcat( string, string2);
- format(string2,sizeof(string2), "{7CFC00}Skin Rank 1-5:{FFFFFF} %d\n",ClanInfo[clanid][cSkin1]);
- strcat( string, string2);
- format(string2,sizeof(string2), "{7CFC00}Skin Rank 6:{FFFFFF} %d\n",ClanInfo[clanid][cSkin2]);
- strcat( string, string2);
- format(string2,sizeof(string2), "{7CFC00}Infintat:{FFFFFF} %d.%d.%d\n",ClanInfo[clanid][cZi],ClanInfo[clanid][cLuna],ClanInfo[clanid][cAn]);
- strcat( string, string2);
- strcat( string, "{7CFC00}Membri Online: ");
- for(new i = 0; i<MAX_PLAYERS; i++)
- {
- if(PlayerInfo[i][pClan] == PlayerInfo[playerid][pClan])
- {
- new name[MAX_PLAYER_NAME];
- GetPlayerName(i,name,sizeof(name));
- format(string2,sizeof(string2), "{FFFFFF}%s ",name);
- strcat( string, string2);
- }
- }
- format(string2,sizeof(string2), "{7CFC00}\nRank-ul tau:{FFFFFF} %d\n",PlayerInfo[playerid][pRank]);
- strcat( string, string2);
- strcat( string, "\n\n\n\nSistem-ul de Clan Creat de Gireada. \nContact: {7CFC00}gireada09(yahoo/skype/live)");
- ShowPlayerDialog(playerid, 33, DIALOG_STYLE_MSGBOX,"Clan Stat",string,"Accept","");
- return 1;
- }
- CMD:clanhelp(playerid, params[])
- {
- new string[1024];
- strcat( string, " {FF9094}Comenzi Clan\n\n");
- strcat( string, "{7CFC00}/setrank - {FFFAF0}setezi rank-ul\n");
- strcat( string, "{7CFC00}/createclan - {FFFAF0}creezi clanul \n");
- strcat( string, "{7CFC00}/invite - {FFFAF0}inviti pe cineva in clan \n");
- strcat( string, "{7CFC00}/accepta - {FFFAF0}accepti invitatia \n");
- strcat( string, "{7CFC00}/refuza - {FFFAF0}refuzi invitatia \n");
- strcat( string, "{7CFC00}/claniesi - {FFFAF0}parasesti clanul \n");
- strcat( string, "{7CFC00}/desclan - {FFFAF0}desfintezi clanul(Rank 6)\n");
- strcat( string, "{7CFC00}/setspawn - {FFFAF0}setezi spawn-ul clanului\n");
- strcat( string, "{7CFC00}/clist - {FFFAF0}vezi membri online\n");
- strcat( string, "{7CFC00}/clanchat - {FFFAF0}vorbesti pe chatul clanului\n");
- strcat( string, "{7CFC00}/clanarme - {FFFAF0}te inarmezi(La locul de spawn)\n");
- strcat( string, "{7CFC00}/cstat - {FFFAF0}vezi informatiile despre clan\n");
- strcat( string, "{7CFC00}/csettings - {FFFAF0}vezi informatiile despre clan\n");
- strcat( string, "{FFFFFF}Sistemul de clan creeat de: {FFFAF0}Gireada");
- ShowPlayerDialog(playerid, 32, DIALOG_STYLE_MSGBOX,"Comenzi",string,"Accept","");
- return 1;
- }
- CMD:setrank(playerid, params[])
- {
- new giveplayerid,rank,name[35],string[256];
- if(unformat(params, "ui", giveplayerid,rank))
- {
- SendClientMessage(playerid, 0xFF0000AA, "Usage: /setrank <playerid/name> <rank>");
- return 1;
- }
- if(rank < 0 && rank > 6)
- {
- SendClientMessage(playerid, 0xFF0000AA, "Rank-ul pot fi de la 1 la 5");
- return 1;
- }
- new clanid = PlayerInfo[playerid][pClan];
- GetPlayerName(giveplayerid, name, sizeof(name));
- if(PlayerInfo[playerid][pRank] == 6)
- {
- if(PlayerInfo[giveplayerid][pClan] == PlayerInfo[playerid][pClan])
- {
- PlayerInfo[playerid][pRank] = rank;
- format(string, sizeof(string), " %s a primit rank %d", name, rank);
- SendClanMesaj(ClanInfo[clanid][cColor],string,clanid);
- }
- }
- return 1;
- }
- CMD:createclan(playerid, params[])
- {
- new i=1;
- while(i<maxclans)
- {
- new file2[512];
- format(file2, sizeof(file2),"Clans/%d.ini", i);
- if(!dini_Exists(file2))
- {
- PlayerInfo[playerid][pClan] = i;
- new name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- strmid(ClanInfo[PlayerInfo[playerid][pClan]][cLider], name, 0, strlen(name), 256);
- break;
- }
- else
- {
- i++;
- }
- }
- if(PlayerInfo[playerid][pCreateClan] == 0)
- {
- ShowPlayerDialog(playerid,10, DIALOG_STYLE_INPUT, "Create Clan", "Introdu numele clanului tau:", "Accept", "Cancel");
- }
- else
- {
- SendClientMessage(playerid, 0xFF0000AA, "Ai creeat deja un clan!");
- }
- return 1;
- }
- CMD:invite(playerid, params[])
- {
- new giveplayerid, name[25], string[256];
- GetPlayerName(playerid, name, sizeof(name));
- if(unformat(params, "u", giveplayerid))
- {
- SendClientMessage(playerid, 0xFF0000AA, "Usage: /invite <playerid/name>");
- return 1;
- }
- if(giveplayerid == INVALID_PLAYER_ID)
- {
- SendClientMessage(playerid, 0xFF0000AA, "ID jucator invalid");
- }
- if(PlayerInfo[playerid][pRank] >= 5)
- {
- if(PlayerInfo[giveplayerid][pClan] == 0)
- {
- PlayerInfo[giveplayerid][pInvitation] = 1;
- PlayerInfo[giveplayerid][pInvClan] = PlayerInfo[playerid][pClan];
- format(string, sizeof(string), "%s te-a invitat in clanul %s. Scrie /accepta pentru a accepta.",name, ClanInfo[PlayerInfo[playerid][pClan]][cNume]);
- SendClientMessage(giveplayerid, 0xFF0000AA, string);
- SendClientMessage(playerid, 0xFF0000AA, "Scrie /accepta pentru a accepta");
- SendClientMessage(playerid, 0xFF0000AA, "Scrie /refuza pentru al refuza");
- }
- }
- return 1;
- }
- CMD:accepta(playerid, params[])
- {
- if(PlayerInfo[playerid][pInvitation] == 1)
- {
- new name[MAX_PLAYER_NAME], string[256];
- GetPlayerName(playerid, name, sizeof(name));
- PlayerInfo[playerid][pClan] = PlayerInfo[playerid][pInvClan];
- PlayerInfo[playerid][pRank] = 1;
- ClanInfo[PlayerInfo[playerid][pClan]][cMembri] += 1;
- PlayerInfo[playerid][pInvClan] = 0;
- PlayerInfo[playerid][pInvitation] = 0;
- new clanid = PlayerInfo[playerid][pClan];
- strmid(PlayerInfo[playerid][pClanName], ClanInfo[clanid][cNume], 0, strlen(ClanInfo[clanid][cNume]), 255);
- format(string, sizeof(string), "%s s-a alaturat clanului.",name);
- SendClanMesaj(ClanInfo[clanid][cColor],string,clanid);
- SaveThisClan(clanid);
- }
- return 1;
- }
- CMD:refuza(playerid, params[])
- {
- if(PlayerInfo[playerid][pInvitation] == 1)
- {
- new name[25], string[256];
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string), "%s a refuzat invitatia clanului.",name);
- SendClanMesaj(0xFF0000AA,string,PlayerInfo[playerid][pInvClan]);
- PlayerInfo[playerid][pInvClan] = 0;
- }
- return 1;
- }
- CMD:claniesi(playerid, params[])
- {
- new name[MAX_PLAYER_NAME];
- new clanid = PlayerInfo[playerid][pClan];
- GetPlayerName(playerid,name,sizeof(name));
- if(PlayerInfo[playerid][pRank] <= 5)
- {
- new name2[25], string[256];
- GetPlayerName(playerid, name2, sizeof(name2));
- format(string, sizeof(string), "%s a iesit din clan.",name2);
- SendClanMesaj(0xFF0000AA,string,PlayerInfo[playerid][pInvClan]);
- ClanInfo[PlayerInfo[playerid][pClan]][cMembri] -= 1;
- SaveThisClan(clanid);
- PlayerInfo[playerid][pClan] = 0;
- PlayerInfo[playerid][pRank] = 0;
- strmid(PlayerInfo[playerid][pClanName], "N/a", 0, strlen("N/a"), 255);
- }
- else
- {
- SendClientMessage(playerid, 0xFF0000AA, "Esti liderul clanului, nu poti iesi. Foloseste /desclan");
- }
- return 1;
- }
- CMD:desclan(playerid, params[])
- {
- new clanid = PlayerInfo[playerid][pClan];
- new file[35];
- if(PlayerInfo[playerid][pRank] == 6)
- {
- format(file, sizeof(file),"Clans/%d.ini", clanid);
- dini_Remove(file);
- for(new i= 0; i<MAX_PLAYERS; i++)
- {
- if(PlayerInfo[i][pClan] == PlayerInfo[playerid][pClan] && PlayerInfo[i][pClanName] == PlayerInfo[playerid][pClanName])
- {
- PlayerInfo[i][pClan] = 0;
- PlayerInfo[i][pCreateClan] = 0;
- PlayerInfo[i][pRank] = 0;
- strmid(PlayerInfo[i][pClanName], "N/a", 0, strlen("N/a"), 255);
- SendClientMessage(i, 0xFF0000AA, "Clanul s-a desfintat");
- }
- }
- DestroyPickup(cpickup[clanid]);
- Delete3DTextLabel(ctextlabel[clanid]);
- }
- return 1;
- }
- CMD:setspawn(playerid, params[])
- {
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- new Float:Angle, string[100];
- GetPlayerFacingAngle(playerid, Angle);
- new clanid = PlayerInfo[playerid][pClan];
- new string2[500];
- if(PlayerInfo[playerid][pRank] == 6)
- {
- ClanInfo[clanid][cSpawnx] = x;
- ClanInfo[clanid][cSpawny] = y;
- ClanInfo[clanid][cSpawnz] = z;
- ClanInfo[clanid][cAngle] = Angle;
- ClanInfo[clanid][cVirtual] = GetPlayerVirtualWorld(playerid);
- ClanInfo[clanid][cInterior] = GetPlayerInterior(playerid);
- format(string, sizeof(string), "Ai setat spawn-ul clanului la %d %d %d", x,y,z);
- SendClientMessage(playerid, 0xFF0000AA, string);
- SaveThisClan(clanid);
- DestroyPickup(cpickup[clanid]);
- Delete3DTextLabel(ctextlabel[clanid]);
- cpickup[clanid] = CreatePickup(1314, 1, ClanInfo[clanid][cSpawnx], ClanInfo[clanid][cSpawny], ClanInfo[clanid][cSpawnz], -1);
- 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);
- ctextlabel[clanid] = Create3DTextLabel(string2, 0xFFFFFFFF, x, y, z, 20.0, 0, 0);
- }
- else
- {
- SendClientMessage(playerid, 0xFF0000AA, "[ClanInfo] Trebuie sa fii liderul clanului, pentru a folosi comanda.");
- }
- return 1;
- }
- CMD:clist(playerid, params[])
- {
- new name[256], string[256];
- if(PlayerInfo[playerid][pClan] >= 0)
- {
- for(new i=1;i<MAX_PLAYERS;i++)
- {
- GetPlayerName(i,name,sizeof(name));
- if(PlayerInfo[i][pClan] == PlayerInfo[playerid][pClan])
- {
- if(PlayerInfo[i][pRank] == 6)
- {
- format(string, 256, "** Fondator ** %s", name);
- SendClientMessage(playerid, 0xFF0000AA, string);
- }
- else if(PlayerInfo[i][pRank] == 5)
- {
- format(string, 256, "** Rank 5 ** %s", name);
- SendClientMessage(playerid, 0xFF0000AA, string);
- }
- else if(PlayerInfo[i][pRank] == 4)
- {
- format(string, 256, "** Rank 4 ** %s", name);
- SendClientMessage(playerid, 0xFF0000AA, string);
- }
- else if(PlayerInfo[i][pRank] == 3)
- {
- format(string, 256, "** Rank 3 ** %s", name);
- SendClientMessage(playerid, 0xFF0000AA, string);
- }
- else if(PlayerInfo[i][pRank] == 2)
- {
- format(string, 256, "** Rank 2 ** %s", name);
- SendClientMessage(playerid, 0xFF0000AA, string);
- }
- else if(PlayerInfo[i][pRank] == 1)
- {
- format(string, 256, "** Rank 1 ** %s", name);
- SendClientMessage(playerid, 0xFF0000AA, string);
- }
- }
- }
- }
- else if(PlayerInfo[playerid][pClan] == -1)
- {
- SendClientMessage(playerid, 0xFF0000AA, "Nu esti intr-un clan");
- }
- return 1;
- }
- CMD:clanchat(playerid, params[])
- {
- new text[1000], string[256], name[35];
- if(unformat(params, "s[1000]", text))
- {
- SendClientMessage(playerid, 0xFF0000AA, "Usage: /clanchat <clancheat>");
- return 1;
- }
- if(PlayerInfo[playerid][pClan] >= 0)
- {
- GetPlayerName(playerid,name,sizeof(name));
- format(string, sizeof(string), "[ClanChat] [%d] [%s]: {FFFFFF}%s", PlayerInfo[playerid][pRank],name,text);
- SendClanMesaj(ClanInfo[PlayerInfo[playerid][pClan]][cColor],string,PlayerInfo[playerid][pClan]);
- }
- return 1;
- }
- CMD:clanarme(playerid, params[])
- {
- new clanid = PlayerInfo[playerid][pClan];
- if(IsPlayerInRangeOfPoint(playerid, 7.0, ClanInfo[clanid][cSpawnx], ClanInfo[clanid][cSpawny], ClanInfo[clanid][cSpawnz]))
- {
- GivePlayerWeapon(playerid, ClanInfo[clanid][cArma1], 1);
- GivePlayerWeapon(playerid, ClanInfo[clanid][cArma2], 999999);
- GivePlayerWeapon(playerid, ClanInfo[clanid][cArma3], 999999);
- GivePlayerWeapon(playerid, ClanInfo[clanid][cArma4], 999999);
- GivePlayerWeapon(playerid, ClanInfo[clanid][cArma5], 999999);
- GivePlayerWeapon(playerid, ClanInfo[clanid][cArma6], 999999);
- }
- return 1;
- }
- CMD:clansettings(playerid, params[])
- {
- new string[256];
- format(string, sizeof(string), "Skin Rank 1-5\n Skin Rank6\n Arma1\n Arma2\n Arma3\n Arma4\n Arma5");
- ShowPlayerDialog(playerid, 23, DIALOG_STYLE_LIST, "Clan Settings", string, "Accept", "Anulez");
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- new clanid = PlayerInfo[playerid][pClan];
- switch(dialogid)
- {
- case 24:
- {
- if(response)
- {
- if(!IsValidSkin(inputtext[3]))
- {
- ShowPlayerDialog(playerid,24, DIALOG_STYLE_INPUT, "Skin Clan 1-5", "Introdu id-ul skinului:", "Accept", "Cancel");
- }
- else
- {
- strmid(ClanInfo[clanid][cSkin1], inputtext[100], 0, strlen(inputtext[100]), 999);
- SaveThisClan(clanid);
- }
- }
- }
- case 25:
- {
- if(response)
- {
- if(!IsValidSkin(inputtext[3]))
- {
- ShowPlayerDialog(playerid,25, DIALOG_STYLE_INPUT, "Skin Clan6", "Introdu id-ul skinului:", "Accept", "Cancel");
- }
- else
- {
- strmid(ClanInfo[clanid][cSkin2], inputtext[100], 0, strlen(inputtext[100]), 999);
- SaveThisClan(clanid);
- }
- }
- }
- case 26:
- {
- if(response)
- {
- switch(listitem)
- {
- case 0:
- {
- ClanInfo[clanid][cArma1] = 2;
- SaveThisClan(clanid);
- }
- case 1:
- {
- ClanInfo[clanid][cArma1] = 3;
- SaveThisClan(clanid);
- }
- case 2:
- {
- ClanInfo[clanid][cArma1] = 4;
- SaveThisClan(clanid);
- }
- case 3:
- {
- ClanInfo[clanid][cArma1] = 5;
- SaveThisClan(clanid);
- }
- case 4:
- {
- ClanInfo[clanid][cArma1] = 6;
- SaveThisClan(clanid);
- }
- case 5:
- {
- ClanInfo[clanid][cArma1] = 7;
- SaveThisClan(clanid);
- }
- case 6:
- {
- ClanInfo[clanid][cArma1] = 8;
- SaveThisClan(clanid);
- }
- case 7:
- {
- ClanInfo[clanid][cArma1] = 9;
- SaveThisClan(clanid);
- }
- }
- }
- }
- case 27:
- {
- if(response)
- {
- switch(listitem)
- {
- case 0:
- {
- ClanInfo[clanid][cArma2] = 22;
- SaveThisClan(clanid);
- }
- case 1:
- {
- ClanInfo[clanid][cArma2] = 23;
- SaveThisClan(clanid);
- }
- case 2:
- {
- ClanInfo[clanid][cArma2] = 24;
- SaveThisClan(clanid);
- }
- }
- }
- }
- case 28:
- {
- if(response)
- {
- switch(listitem)
- {
- case 0:
- {
- ClanInfo[clanid][cArma3] = 25;
- SaveThisClan(clanid);
- }
- case 1:
- {
- ClanInfo[clanid][cArma3] = 26;
- SaveThisClan(clanid);
- }
- case 2:
- {
- ClanInfo[clanid][cArma3] = 27;
- SaveThisClan(clanid);
- }
- }
- }
- }
- case 29:
- {
- if(response)
- {
- switch(listitem)
- {
- case 0:
- {
- ClanInfo[clanid][cArma4] = 28;
- SaveThisClan(clanid);
- }
- case 1:
- {
- ClanInfo[clanid][cArma4] = 29;
- SaveThisClan(clanid);
- }
- case 2:
- {
- ClanInfo[clanid][cArma4] = 29;
- SaveThisClan(clanid);
- }
- }
- }
- }
- case 30:
- {
- if(response)
- {
- switch(listitem)
- {
- case 0:
- {
- ClanInfo[clanid][cArma5] = 30;
- SaveThisClan(clanid);
- }
- case 1:
- {
- ClanInfo[clanid][cArma5] = 31;
- SaveThisClan(clanid);
- }
- }
- }
- }
- case 31:
- {
- if(response)
- {
- switch(listitem)
- {
- case 0:
- {
- ClanInfo[clanid][cArma6] = 33;
- SaveThisClan(clanid);
- }
- case 1:
- {
- ClanInfo[clanid][cArma6] = 34;
- SaveThisClan(clanid);
- }
- }
- }
- }
- case 23:
- {
- if(response)
- {
- switch(listitem)
- {
- case 0:
- {
- ShowPlayerDialog(playerid,24, DIALOG_STYLE_INPUT, "Skin Clan", "Introdu id-ul skinului:", "Accept", "Cancel");
- }
- case 1:
- {
- ShowPlayerDialog(playerid,25, DIALOG_STYLE_INPUT, "Skin Clan", "Introdu id-ul skinului:", "Accept", "Cancel");
- }
- case 2:
- {
- ShowPlayerDialog(playerid,26, DIALOG_STYLE_LIST, "Arme Clan", "Crosa\nBaston\nCutit\nBata\nLopata\nTac\nKatana\nDrujba", "Accept", "Anulez");
- }
- case 3:
- {
- ShowPlayerDialog(playerid,27, DIALOG_STYLE_LIST, "Arme Clan", "9mm\nSilent 9mm\nDesert Eagle", "Accept", "Anulez");
- }
- case 4:
- {
- ShowPlayerDialog(playerid,28, DIALOG_STYLE_LIST, "Arme Clan", "ShoutGun\nSawnoff Shotgun\nCombat Shotgun", "Accept", "Anulez");
- }
- case 5:
- {
- ShowPlayerDialog(playerid,29, DIALOG_STYLE_LIST, "Arme Clan", "Micro SMG\nMP5", "Accept", "Anulez");
- }
- case 6:
- {
- ShowPlayerDialog(playerid,30, DIALOG_STYLE_LIST, "Arme Clan", "Ak-47\nM5", "Accept", "Anulez");
- }
- case 7:
- {
- ShowPlayerDialog(playerid,31, DIALOG_STYLE_LIST, "Arme Clan", "Country Rifle\nSniper Rifle", "Accept", "Anulez");
- }
- }
- }
- }
- case 10:
- {
- new Year, Month, Day;
- getdate(Year, Month, Day);
- if(response)
- {
- strmid(ClanInfo[clanid][cNume], inputtext, 0, strlen(inputtext), 256);
- strmid(PlayerInfo[playerid][pClanName], inputtext, 0, strlen(inputtext), 256);
- PlayerInfo[playerid][pRank] = 6;
- PlayerInfo[playerid][pCreateClan] = 1;
- ClanInfo[PlayerInfo[playerid][pClan]][cID] = PlayerInfo[playerid][pClan];ClanInfo[PlayerInfo[playerid][pClan]][cZi] = Day; ClanInfo[PlayerInfo[playerid][pClan]][cLuna] = Month;
- ClanInfo[PlayerInfo[playerid][pClan]][cAn] = Year; SaveThisClan(PlayerInfo[playerid][pClan]);
- }
- ShowPlayerDialog(playerid, 21, DIALOG_STYLE_LIST, "Skinul Membrilor", "Pasi cu Preview\nIntroducere ID", "Accept", "Anulez");
- }
- case 21:
- {
- if(response)
- {
- switch(listitem)
- {
- case 0:
- {
- ShowModelSelectionMenu(playerid, skinlist2, "Skin Rank 1-5");
- }
- case 1:
- {
- ShowPlayerDialog(playerid,11, DIALOG_STYLE_LIST, "Arme Clan", "Crosa\nBaston\nCutit\nBata\nLopata\nTac\nKatana\nDrujba", "Accept", "Anulez");
- }
- }
- }
- }
- case 11:
- {
- if(response)
- {
- switch(listitem)
- {
- case 0:
- {
- ShowPlayerDialog(playerid,12, DIALOG_STYLE_LIST, "Arme Clan", "9mm\nSilent 9mm\nDesert Eagle", "Accept", "Anulez");
- ClanInfo[clanid][cArma1] = 2;
- SaveThisClan(clanid);
- }
- case 1:
- {
- ShowPlayerDialog(playerid,12, DIALOG_STYLE_LIST, "Arme Clan", "9mm\n Silent 9mm\n Desert Eagle", "Accept", "Anulez");
- ClanInfo[clanid][cArma1] = 3;
- SaveThisClan(clanid);
- }
- case 2:
- {
- ShowPlayerDialog(playerid,12, DIALOG_STYLE_LIST, "Arme Clan", "9mm\nSilent 9mm\nDesert Eagle", "Accept", "Anulez");
- ClanInfo[clanid][cArma1] = 4;
- SaveThisClan(clanid);
- }
- case 3:
- {
- ShowPlayerDialog(playerid,12, DIALOG_STYLE_LIST, "Arme Clan", "9mm\nSilent 9mm\nDesert Eagle", "Accept", "Anulez");
- ClanInfo[clanid][cArma1] = 5;
- SaveThisClan(clanid);
- }
- case 4:
- {
- ShowPlayerDialog(playerid,12, DIALOG_STYLE_LIST, "Arme Clan", "9mm\nSilent 9mm\nDesert Eagle", "Accept", "Anulez");
- ClanInfo[clanid][cArma1] = 6;
- SaveThisClan(clanid);
- }
- case 5:
- {
- ShowPlayerDialog(playerid,12, DIALOG_STYLE_LIST, "Arme Clan", "9mm\nSilent 9mm\nDesert Eagle", "Accept", "Anulez");
- ClanInfo[clanid][cArma1] = 7;
- SaveThisClan(clanid);
- }
- case 6:
- {
- ShowPlayerDialog(playerid,12, DIALOG_STYLE_LIST, "Arme Clan", "9mm\nSilent 9mm\nDesert Eagle", "Accept", "Anulez");
- ClanInfo[clanid][cArma1] = 8;
- SaveThisClan(clanid);
- }
- case 7:
- {
- ShowPlayerDialog(playerid,12, DIALOG_STYLE_LIST, "Arme Clan", "9mm\nSilent 9mm\nDesert Eagle", "Accept", "Anulez");
- ClanInfo[clanid][cArma1] = 9;
- SaveThisClan(clanid);
- }
- }
- }
- }
- case 12:
- {
- if(response)
- {
- switch(listitem)
- {
- case 0:
- {
- ShowPlayerDialog(playerid,13, DIALOG_STYLE_LIST, "Arme Clan", "ShoutGun\nSawnoff Shotgun\nCombat Shotgun", "Accept", "Anulez");
- ClanInfo[clanid][cArma2] = 22;
- SaveThisClan(clanid);
- }
- case 1:
- {
- ShowPlayerDialog(playerid,13, DIALOG_STYLE_LIST, "Arme Clan", "ShoutGun\nSawnoff Shotgun\nCombat Shotgun", "Accept", "Anulez");
- ClanInfo[clanid][cArma2] = 23;
- SaveThisClan(clanid);
- }
- case 2:
- {
- ShowPlayerDialog(playerid,13, DIALOG_STYLE_LIST, "Arme Clan", "ShoutGun\nSawnoff Shotgun\nCombat Shotgun", "Accept", "Anulez");
- ClanInfo[clanid][cArma2] = 24;
- SaveThisClan(clanid);
- }
- }
- }
- }
- case 13:
- {
- if(response)
- {
- switch(listitem)
- {
- case 0:
- {
- ShowPlayerDialog(playerid,14, DIALOG_STYLE_LIST, "Arme Clan", "Micro SMG\nMP5", "Accept", "Anulez");
- ClanInfo[clanid][cArma3] = 25;
- SaveThisClan(clanid);
- }
- case 1:
- {
- ShowPlayerDialog(playerid,14, DIALOG_STYLE_LIST, "Arme Clan", "Micro SMG\nMP5", "Accept", "Anulez");
- ClanInfo[clanid][cArma3] = 26;
- SaveThisClan(clanid);
- }
- case 2:
- {
- ShowPlayerDialog(playerid,14, DIALOG_STYLE_LIST, "Arme Clan", "Micro SMG\nMP5", "Accept", "Anulez");
- ClanInfo[clanid][cArma3] = 27;
- SaveThisClan(clanid);
- }
- }
- }
- }
- case 14:
- {
- if(response)
- {
- switch(listitem)
- {
- case 0:
- {
- ShowPlayerDialog(playerid,15, DIALOG_STYLE_LIST, "Arme Clan", "Ak-47\nM5", "Accept", "Anulez");
- ClanInfo[clanid][cArma4] = 28;
- SaveThisClan(clanid);
- }
- case 1:
- {
- ShowPlayerDialog(playerid,15, DIALOG_STYLE_LIST, "Arme Clan", "Ak-47\nM5", "Accept", "Anulez");
- ClanInfo[clanid][cArma4] = 29;
- SaveThisClan(clanid);
- }
- case 2:
- {
- ShowPlayerDialog(playerid,15, DIALOG_STYLE_LIST, "Arme Clan", "Ak-47\nM5", "Accept", "Anulez");
- ClanInfo[clanid][cArma4] = 29;
- SaveThisClan(clanid);
- }
- }
- }
- }
- case 15:
- {
- if(response)
- {
- switch(listitem)
- {
- case 0:
- {
- ShowPlayerDialog(playerid,16, DIALOG_STYLE_LIST, "Arme Clan", "Country Rifle\nSniper Rifle", "Accept", "Anulez");
- ClanInfo[clanid][cArma5] = 30;
- SaveThisClan(clanid);
- }
- case 1:
- {
- ShowPlayerDialog(playerid,16, DIALOG_STYLE_LIST, "Arme Clan", "Country Rifle\nSniper Rifle", "Accept", "Anulez");
- ClanInfo[clanid][cArma5] = 31;
- SaveThisClan(clanid);
- }
- }
- }
- }
- case 16:
- {
- if(response)
- {
- switch(listitem)
- {
- case 0:
- {
- 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");
- ClanInfo[clanid][cArma6] = 33;
- SaveThisClan(clanid);
- }
- case 1:
- {
- 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");
- ClanInfo[clanid][cArma6] = 34;
- SaveThisClan(clanid);
- }
- }
- }
- }
- case 17:
- {
- if(response)
- {
- switch(listitem)
- {
- case 0:
- {
- ShowPlayerDialog(playerid,18, DIALOG_STYLE_INPUT, "Skin Clan", "Introdu id-ul skinului:", "Accept", "Cancel");
- strmid(ClanInfo[clanid][cColor], "0xFF0000", 0, strlen("0xFF0000"), 999);
- SaveThisClan(clanid);
- }
- case 1:
- {
- ShowPlayerDialog(playerid,18, DIALOG_STYLE_INPUT, "Skin Clan", "Introdu id-ul skinului:", "Accept", "Cancel");
- strmid(ClanInfo[clanid][cColor], "0x0000FF", 0, strlen("0x0000FF"), 999);
- SaveThisClan(clanid);
- }
- case 2:
- {
- ShowPlayerDialog(playerid,18, DIALOG_STYLE_INPUT, "Skin Clan", "Introdu id-ul skinului:", "Accept", "Cancel");
- strmid(ClanInfo[clanid][cColor], "0xFF00FF", 0, strlen("0xFF00FF"), 999);
- SaveThisClan(clanid);
- }
- case 3:
- {
- ShowPlayerDialog(playerid,18, DIALOG_STYLE_INPUT, "Skin Clan", "Introdu id-ul skinului:", "Accept", "Cancel");
- strmid(ClanInfo[clanid][cColor], "0xFFFF00", 0, strlen("0xFFFF00"), 999);
- SaveThisClan(clanid);
- }
- case 4:
- {
- ShowPlayerDialog(playerid,18, DIALOG_STYLE_INPUT, "Skin Clan", "Introdu id-ul skinului:", "Accept", "Cancel");
- strmid(ClanInfo[clanid][cColor], "0x00FF00", 0, strlen("0x00FF00"), 999);
- SaveThisClan(clanid);
- }
- case 5:
- {
- ShowPlayerDialog(playerid,18, DIALOG_STYLE_INPUT, "Skin Clan", "Introdu id-ul skinului:", "Accept", "Cancel");
- strmid(ClanInfo[clanid][cColor], "0x00FFFF", 0, strlen("0x00FFFF"), 999);
- SaveThisClan(clanid);
- }
- case 6:
- {
- ShowPlayerDialog(playerid,18, DIALOG_STYLE_INPUT, "Skin Clan", "Introdu id-ul skinului:", "Accept", "Cancel");
- strmid(ClanInfo[clanid][cColor], "0xC0C0C0", 0, strlen("0xC0C0C0"), 999);
- SaveThisClan(clanid);
- }
- }
- }
- }
- case 18:
- {
- if(response)
- {
- if(!IsValidSkin(inputtext[3]))
- {
- ShowPlayerDialog(playerid,18, DIALOG_STYLE_INPUT, "Skin Clan 1-5", "Introdu id-ul skinului:", "Accept", "Cancel");
- }
- else
- {
- ShowPlayerDialog(playerid,19, DIALOG_STYLE_INPUT, "Skin Clan 6", "Introdu id-ul skinului2:", "Accept", "Cancel");
- strmid(ClanInfo[clanid][cSkin1], inputtext[100], 0, strlen(inputtext[100]), 999);
- SaveThisClan(clanid);
- }
- }
- }
- case 19:
- {
- if(response)
- {
- if(!IsValidSkin(inputtext[3]))
- {
- ShowPlayerDialog(playerid,19, DIALOG_STYLE_INPUT, "Skin Clan 6", "Introdu id-ul skinului:", "Accept", "Cancel");
- }
- else
- {
- strmid(ClanInfo[clanid][cSkin2], inputtext[100], 0, strlen(inputtext[100]), 999);
- SendClientMessage(playerid, 0xFF0000AA, "Felicitari ti-ai creeat un clan. Nu uita sa setezi spaw-ul clanului");
- SendClientMessage(playerid, 0xFF0000AA, "Nu uita sa folosesti /clanhelp pentru a vedea comenzile clanului.");
- SaveThisClan(clanid);
- }
- }
- }
- }
- return 1;
- }
- public LoadClans()
- {
- new file[512];
- for(new idx=1;idx<maxclans;idx++)
- {
- format(file, sizeof(file),"Clans/%d.ini", idx);
- if(dini_Exists(file))
- {
- ClanInfo[idx][cID] = dini_Int(file,"ClanId");
- strmid(ClanInfo[idx][cNume], dini_Get(file,"Nume"), 0, strlen(dini_Get(file,"Nume")), 255);
- strmid(ClanInfo[idx][cLider], dini_Get(file,"Lider"), 0, strlen(dini_Get(file,"Lider")), 255);
- ClanInfo[idx][cSkin1] = dini_Int(file,"Skin1");
- ClanInfo[idx][cSkin2] = dini_Int(file,"Skin2");
- strmid(ClanInfo[idx][cColor], dini_Get(file,"Culoare"), 0, strlen(dini_Get(file,"Culoare")), 255);
- ClanInfo[idx][cArma1] = dini_Int(file,"Arma1");
- ClanInfo[idx][cArma2] = dini_Int(file,"Arma2");
- ClanInfo[idx][cArma3] = dini_Int(file,"Arma3");
- ClanInfo[idx][cArma4] = dini_Int(file,"Arma4");
- ClanInfo[idx][cArma5] = dini_Int(file,"Arma5");
- ClanInfo[idx][cArma6] = dini_Int(file,"Arma6");
- ClanInfo[idx][cSpawnx] = dini_Float(file,"Spawnx");
- ClanInfo[idx][cSpawny] = dini_Float(file,"Spawny");
- ClanInfo[idx][cSpawnz] = dini_Float(file,"Spawnz");
- ClanInfo[idx][cAngle] = dini_Float(file,"Rotatie");
- ClanInfo[idx][cInterior] = dini_Int(file,"Interior");
- ClanInfo[idx][cVirtual] = dini_Int(file,"Virtual");
- ClanInfo[idx][cMembri] = dini_Int(file,"Membri");
- ClanInfo[idx][cZi] = dini_Int(file,"Zi");
- ClanInfo[idx][cLuna] = dini_Int(file,"Luna");
- ClanInfo[idx][cAn] = dini_Int(file,"An");
- }
- }
- return 1;
- }
- public SendClanMesaj(color,const string[],clanid)
- {
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if (PlayerInfo[i][pClan] == clanid)
- {
- SendClientMessage(i, color, string);
- }
- }
- }
- return 1;
- }
- IsValidSkin(skinid)
- {
- #define MAX_BAD_SKINS 22
- new badSkins[MAX_BAD_SKINS] =
- {
- 3, 4, 5, 6, 8, 42, 65, 74, 86,
- 119, 149, 208, 265, 266, 267,
- 268, 269, 270, 271, 272, 273, 289
- };
- if (skinid < 0 || skinid > 299) return false;
- for (new i = 0; i < MAX_BAD_SKINS; i++)
- {
- if (skinid == badSkins[i]) return false;
- }
- #undef MAX_BAD_SKINS
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- new clanid = PlayerInfo[playerid][pClan];
- if(PlayerInfo[playerid][pClan] >= 0)
- {
- SetPlayerPos(playerid,ClanInfo[clanid][cSpawnx],ClanInfo[clanid][cSpawny],ClanInfo[clanid][cSpawnz]);
- SetPlayerInterior(playerid, ClanInfo[clanid][cInterior]);
- SetPlayerVirtualWorld(playerid, ClanInfo[clanid][cVirtual]);
- SetPlayerColor(playerid, ClanInfo[PlayerInfo[playerid][pClan]][cColor]);
- GivePlayerWeapon(playerid, ClanInfo[clanid][cArma1], 1);
- GivePlayerWeapon(playerid, ClanInfo[clanid][cArma2], 999999);
- GivePlayerWeapon(playerid, ClanInfo[clanid][cArma3], 999999);
- GivePlayerWeapon(playerid, ClanInfo[clanid][cArma4], 999999);
- GivePlayerWeapon(playerid, ClanInfo[clanid][cArma5], 999999);
- GivePlayerWeapon(playerid, ClanInfo[clanid][cArma6], 999999);
- if(PlayerInfo[playerid][pRank] <= 5)
- {
- SetPlayerSkin(playerid, ClanInfo[clanid][cSkin1]);
- }
- else if(PlayerInfo[playerid][pRank] == 6)
- {
- SetPlayerSkin(playerid, ClanInfo[clanid][cSkin2]);
- }
- }
- return 1;
- }
- public OnPlayerModelSelection(playerid, response, listid, modelid)
- {
- new clanid = PlayerInfo[playerid][pClan];
- new file[512];
- format(file, sizeof(file),"Clans/%d.ini", clanid);
- if(listid == skinlist2)
- {
- if(response)
- {
- ShowModelSelectionMenu(playerid, skinlist, "Skin Rank 6");
- ClanInfo[clanid][cSkin1] = modelid;
- }
- else SendClientMessage(playerid, 0xFF0000FF, "Canceled skin selection");
- return 1;
- }
- if(listid == skinlist)
- {
- if(response)
- {
- ShowModelSelectionMenu(playerid, arma1, "Arma Slot 1");
- ClanInfo[clanid][cSkin2] = modelid;
- }
- else SendClientMessage(playerid, 0xFF0000FF, "Canceled skin selection");
- return 1;
- }
- if(listid == arma1)
- {
- if(response)
- {
- ShowModelSelectionMenu(playerid, arma2, "Arma Slot 2");
- switch(modelid)
- {
- case 331: ClanInfo[clanid][cArma1] = 1; // Brass Knuckles
- case 333: /*GivePlayerWeapon(playerid, 2, 99999);*/ ClanInfo[clanid][cArma1] = 2; // Golf Club
- case 334: /*GivePlayerWeapon(playerid, 3, 99999);*/ ClanInfo[clanid][cArma1] = 3;// Nightstick
- case 335: /*GivePlayerWeapon(playerid, 4, 99999);*/ ClanInfo[clanid][cArma1] = 4;// Knife
- case 336: /*GivePlayerWeapon(playerid, 5, 99999);*/ ClanInfo[clanid][cArma1] = 5;// Baseball Bat
- case 337: /*GivePlayerWeapon(playerid, 6, 99999);*/ ClanInfo[clanid][cArma1] = 6;// Shovel
- case 338: /*GivePlayerWeapon(playerid, 7, 99999);*/ ClanInfo[clanid][cArma1] = 7;// Pool Cue
- case 339: /*GivePlayerWeapon(playerid, 8, 99999);*/ ClanInfo[clanid][cArma1] = 8;// Katana
- case 341: /*GivePlayerWeapon(playerid, 9, 99999);*/ ClanInfo[clanid][cArma1] = 9;// Chainsaw
- case 321: /*GivePlayerWeapon(playerid, 10, 99999);*/ ClanInfo[clanid][cArma1] = 10;// Double-ended Dildo
- case 325: /*GivePlayerWeapon(playerid, 14, 99999);*/ ClanInfo[clanid][cArma1] = 14;// Flowers
- case 326: /*GivePlayerWeapon(playerid, 15, 99999);*/ ClanInfo[clanid][cArma1] = 15;// Cane
- case 342: /*GivePlayerWeapon(playerid, 16, 99999);*/ ClanInfo[clanid][cArma1] = 16;// Grenade
- case 343: /*GivePlayerWeapon(playerid, 17, 99999);*/ ClanInfo[clanid][cArma1] = 17;// Tear Gas
- case 344: /*GivePlayerWeapon(playerid, 18, 99999);*/ ClanInfo[clanid][cArma1] = 18;// Molotov Cocktail
- case 346: /*GivePlayerWeapon(playerid, 22, 99999);*/ ClanInfo[clanid][cArma1] = 22;// 9mm
- case 347: /*GivePlayerWeapon(playerid, 23, 99999);*/ ClanInfo[clanid][cArma1] = 23;// Silenced 9mm
- case 348: /*GivePlayerWeapon(playerid, 24, 99999);*/ ClanInfo[clanid][cArma1] = 24;// Desert Eagle
- case 349: /*GivePlayerWeapon(playerid, 25, 99999);*/ ClanInfo[clanid][cArma1] = 25;// Shotgun
- case 350: /*GivePlayerWeapon(playerid, 26, 99999);*/ ClanInfo[clanid][cArma1] = 26;// Sawnoff
- case 351: /*GivePlayerWeapon(playerid, 27, 99999);*/ ClanInfo[clanid][cArma1] = 27;// Combat Shotgun
- case 352: /*GivePlayerWeapon(playerid, 28, 99999);*/ ClanInfo[clanid][cArma1] = 28;// Micro SMG/Uzi
- case 353: /*GivePlayerWeapon(playerid, 29, 99999);*/ ClanInfo[clanid][cArma1] = 29;// MP5
- case 355: /*GivePlayerWeapon(playerid, 30, 99999);*/ ClanInfo[clanid][cArma1] = 30;// AK-47
- case 356: /*GivePlayerWeapon(playerid, 31, 99999);*/ ClanInfo[clanid][cArma1] = 31;// M4
- case 372: /*GivePlayerWeapon(playerid, 32, 99999);*/ ClanInfo[clanid][cArma1] = 32;// Tec-9
- case 357: /*GivePlayerWeapon(playerid, 33, 99999);*/ ClanInfo[clanid][cArma1] = 33;// Country Rifle
- case 358: /*GivePlayerWeapon(playerid, 34, 99999);*/ ClanInfo[clanid][cArma1] = 34;// Sniper Rifle
- case 359: /*GivePlayerWeapon(playerid, 35, 99999);*/ ClanInfo[clanid][cArma1] = 35;// RPG
- case 360: /*GivePlayerWeapon(playerid, 36, 99999);*/ ClanInfo[clanid][cArma1] = 36;// HS Rocket
- case 361: /*GivePlayerWeapon(playerid, 37, 99999);*/ ClanInfo[clanid][cArma1] = 37;// Flamethrower
- case 362: /*GivePlayerWeapon(playerid, 38, 99999);*/ ClanInfo[clanid][cArma1] = 37;// Minigun
- case 363: { /*GivePlayerWeapon(playerid, 39, 99999);*/ /*GivePlayerWeapon(playerid, 40, 1);*/ ClanInfo[clanid][cArma1] = 39;}// Satchel Charge + Detonator
- case 365: /*GivePlayerWeapon(playerid, 41, 99999);*/ ClanInfo[clanid][cArma1] = 41;// Spraycan
- case 366: /*GivePlayerWeapon(playerid, 42, 99999);*/ ClanInfo[clanid][cArma1] = 42;// Fire Extinguisher
- }
- }
- else SendClientMessage(playerid, 0xFF0000FF, "Canceled skin selection");
- return 1;
- }
- if(listid == arma2)
- {
- if(response)
- {
- ShowModelSelectionMenu(playerid, arma3, "Arma Slot 3");
- switch(modelid)
- {
- case 331: ClanInfo[clanid][cArma2] = 1; // Brass Knuckles
- case 333: /*GivePlayerWeapon(playerid, 2, 99999);*/ ClanInfo[clanid][cArma2] = 2; // Golf Club
- case 334: /*GivePlayerWeapon(playerid, 3, 99999);*/ ClanInfo[clanid][cArma2] = 3;// Nightstick
- case 335: /*GivePlayerWeapon(playerid, 4, 99999);*/ ClanInfo[clanid][cArma2] = 4;// Knife
- case 336: /*GivePlayerWeapon(playerid, 5, 99999);*/ ClanInfo[clanid][cArma2] = 5;// Baseball Bat
- case 337: /*GivePlayerWeapon(playerid, 6, 99999);*/ ClanInfo[clanid][cArma2] = 6;// Shovel
- case 338: /*GivePlayerWeapon(playerid, 7, 99999);*/ ClanInfo[clanid][cArma2] = 7;// Pool Cue
- case 339: /*GivePlayerWeapon(playerid, 8, 99999);*/ ClanInfo[clanid][cArma2] = 8;// Katana
- case 341: /*GivePlayerWeapon(playerid, 9, 99999);*/ ClanInfo[clanid][cArma2] = 9;// Chainsaw
- case 321: /*GivePlayerWeapon(playerid, 10, 99999);*/ ClanInfo[clanid][cArma2] = 10;// Double-ended Dildo
- case 325: /*GivePlayerWeapon(playerid, 14, 99999);*/ ClanInfo[clanid][cArma2] = 14;// Flowers
- case 326: /*GivePlayerWeapon(playerid, 15, 99999);*/ ClanInfo[clanid][cArma2] = 15;// Cane
- case 342: /*GivePlayerWeapon(playerid, 16, 99999);*/ ClanInfo[clanid][cArma2] = 16;// Grenade
- case 343: /*GivePlayerWeapon(playerid, 17, 99999);*/ ClanInfo[clanid][cArma2] = 17;// Tear Gas
- case 344: /*GivePlayerWeapon(playerid, 18, 99999);*/ ClanInfo[clanid][cArma2] = 18;// Molotov Cocktail
- case 346: /*GivePlayerWeapon(playerid, 22, 99999);*/ ClanInfo[clanid][cArma2] = 22;// 9mm
- case 347: /*GivePlayerWeapon(playerid, 23, 99999);*/ ClanInfo[clanid][cArma2] = 23;// Silenced 9mm
- case 348: /*GivePlayerWeapon(playerid, 24, 99999);*/ ClanInfo[clanid][cArma2] = 24;// Desert Eagle
- case 349: /*GivePlayerWeapon(playerid, 25, 99999);*/ ClanInfo[clanid][cArma2] = 25;// Shotgun
- case 350: /*GivePlayerWeapon(playerid, 26, 99999);*/ ClanInfo[clanid][cArma2] = 26;// Sawnoff
- case 351: /*GivePlayerWeapon(playerid, 27, 99999);*/ ClanInfo[clanid][cArma2] = 27;// Combat Shotgun
- case 352: /*GivePlayerWeapon(playerid, 28, 99999);*/ ClanInfo[clanid][cArma2] = 28;// Micro SMG/Uzi
- case 353: /*GivePlayerWeapon(playerid, 29, 99999);*/ ClanInfo[clanid][cArma2] = 29;// MP5
- case 355: /*GivePlayerWeapon(playerid, 30, 99999);*/ ClanInfo[clanid][cArma2] = 30;// AK-47
- case 356: /*GivePlayerWeapon(playerid, 31, 99999);*/ ClanInfo[clanid][cArma2] = 31;// M4
- case 372: /*GivePlayerWeapon(playerid, 32, 99999);*/ ClanInfo[clanid][cArma2] = 32;// Tec-9
- case 357: /*GivePlayerWeapon(playerid, 33, 99999);*/ ClanInfo[clanid][cArma2] = 33;// Country Rifle
- case 358: /*GivePlayerWeapon(playerid, 34, 99999);*/ ClanInfo[clanid][cArma2] = 34;// Sniper Rifle
- case 359: /*GivePlayerWeapon(playerid, 35, 99999);*/ ClanInfo[clanid][cArma2] = 35;// RPG
- case 360: /*GivePlayerWeapon(playerid, 36, 99999);*/ ClanInfo[clanid][cArma2] = 36;// HS Rocket
- case 361: /*GivePlayerWeapon(playerid, 37, 99999);*/ ClanInfo[clanid][cArma2] = 37;// Flamethrower
- case 362: /*GivePlayerWeapon(playerid, 38, 99999);*/ ClanInfo[clanid][cArma2] = 37;// Minigun
- case 363: { /*GivePlayerWeapon(playerid, 39, 99999);*/ /*GivePlayerWeapon(playerid, 40, 1);*/ ClanInfo[clanid][cArma2] = 39;}// Satchel Charge + Detonator
- case 365: /*GivePlayerWeapon(playerid, 41, 99999);*/ ClanInfo[clanid][cArma2] = 41;// Spraycan
- case 366: /*GivePlayerWeapon(playerid, 42, 99999);*/ ClanInfo[clanid][cArma2] = 42;// Fire Extinguisher
- }
- }
- else SendClientMessage(playerid, 0xFF0000FF, "Canceled skin selection");
- return 1;
- }
- if(listid == arma3)
- {
- if(response)
- {
- ShowModelSelectionMenu(playerid, arma4, "Arma Slot 4");
- switch(modelid)
- {
- case 331: ClanInfo[clanid][cArma3] = 1; // Brass Knuckles
- case 333: /*GivePlayerWeapon(playerid, 2, 99999);*/ ClanInfo[clanid][cArma3] = 2; // Golf Club
- case 334: /*GivePlayerWeapon(playerid, 3, 99999);*/ ClanInfo[clanid][cArma3] = 3;// Nightstick
- case 335: /*GivePlayerWeapon(playerid, 4, 99999);*/ ClanInfo[clanid][cArma3] = 4;// Knife
- case 336: /*GivePlayerWeapon(playerid, 5, 99999);*/ ClanInfo[clanid][cArma3] = 5;// Baseball Bat
- case 337: /*GivePlayerWeapon(playerid, 6, 99999);*/ ClanInfo[clanid][cArma3] = 6;// Shovel
- case 338: /*GivePlayerWeapon(playerid, 7, 99999);*/ ClanInfo[clanid][cArma3] = 7;// Pool Cue
- case 339: /*GivePlayerWeapon(playerid, 8, 99999);*/ ClanInfo[clanid][cArma3] = 8;// Katana
- case 341: /*GivePlayerWeapon(playerid, 9, 99999);*/ ClanInfo[clanid][cArma3] = 9;// Chainsaw
- case 321: /*GivePlayerWeapon(playerid, 10, 99999);*/ ClanInfo[clanid][cArma3] = 10;// Double-ended Dildo
- case 325: /*GivePlayerWeapon(playerid, 14, 99999);*/ ClanInfo[clanid][cArma3] = 14;// Flowers
- case 326: /*GivePlayerWeapon(playerid, 15, 99999);*/ ClanInfo[clanid][cArma3] = 15;// Cane
- case 342: /*GivePlayerWeapon(playerid, 16, 99999);*/ ClanInfo[clanid][cArma3] = 16;// Grenade
- case 343: /*GivePlayerWeapon(playerid, 17, 99999);*/ ClanInfo[clanid][cArma3] = 17;// Tear Gas
- case 344: /*GivePlayerWeapon(playerid, 18, 99999);*/ ClanInfo[clanid][cArma3] = 18;// Molotov Cocktail
- case 346: /*GivePlayerWeapon(playerid, 22, 99999);*/ ClanInfo[clanid][cArma3] = 22;// 9mm
- case 347: /*GivePlayerWeapon(playerid, 23, 99999);*/ ClanInfo[clanid][cArma3] = 23;// Silenced 9mm
- case 348: /*GivePlayerWeapon(playerid, 24, 99999);*/ ClanInfo[clanid][cArma3] = 24;// Desert Eagle
- case 349: /*GivePlayerWeapon(playerid, 25, 99999);*/ ClanInfo[clanid][cArma3] = 25;// Shotgun
- case 350: /*GivePlayerWeapon(playerid, 26, 99999);*/ ClanInfo[clanid][cArma3] = 26;// Sawnoff
- case 351: /*GivePlayerWeapon(playerid, 27, 99999);*/ ClanInfo[clanid][cArma3] = 27;// Combat Shotgun
- case 352: /*GivePlayerWeapon(playerid, 28, 99999);*/ ClanInfo[clanid][cArma3] = 28;// Micro SMG/Uzi
- case 353: /*GivePlayerWeapon(playerid, 29, 99999);*/ ClanInfo[clanid][cArma3] = 29;// MP5
- case 355: /*GivePlayerWeapon(playerid, 30, 99999);*/ ClanInfo[clanid][cArma3] = 30;// AK-47
- case 356: /*GivePlayerWeapon(playerid, 31, 99999);*/ ClanInfo[clanid][cArma3] = 31;// M4
- case 372: /*GivePlayerWeapon(playerid, 32, 99999);*/ ClanInfo[clanid][cArma3] = 32;// Tec-9
- case 357: /*GivePlayerWeapon(playerid, 33, 99999);*/ ClanInfo[clanid][cArma3] = 33;// Country Rifle
- case 358: /*GivePlayerWeapon(playerid, 34, 99999);*/ ClanInfo[clanid][cArma3] = 34;// Sniper Rifle
- case 359: /*GivePlayerWeapon(playerid, 35, 99999);*/ ClanInfo[clanid][cArma3] = 35;// RPG
- case 360: /*GivePlayerWeapon(playerid, 36, 99999);*/ ClanInfo[clanid][cArma3] = 36;// HS Rocket
- case 361: /*GivePlayerWeapon(playerid, 37, 99999);*/ ClanInfo[clanid][cArma3] = 37;// Flamethrower
- case 362: /*GivePlayerWeapon(playerid, 38, 99999);*/ ClanInfo[clanid][cArma3] = 37;// Minigun
- case 363: { /*GivePlayerWeapon(playerid, 39, 99999);*/ /*GivePlayerWeapon(playerid, 40, 1);*/ ClanInfo[clanid][cArma3] = 39;}// Satchel Charge + Detonator
- case 365: /*GivePlayerWeapon(playerid, 41, 99999);*/ ClanInfo[clanid][cArma3] = 41;// Spraycan
- case 366: /*GivePlayerWeapon(playerid, 42, 99999);*/ ClanInfo[clanid][cArma3] = 42;// Fire Extinguisher
- }
- }
- else SendClientMessage(playerid, 0xFF0000FF, "Canceled skin selection");
- return 1;
- }
- if(listid == arma4)
- {
- if(response)
- {
- ShowModelSelectionMenu(playerid, arma5, "Arma Slot 5");
- switch(modelid)
- {
- case 331: ClanInfo[clanid][cArma4] = 1; // Brass Knuckles
- case 333: /*GivePlayerWeapon(playerid, 2, 99999);*/ ClanInfo[clanid][cArma4] = 2; // Golf Club
- case 334: /*GivePlayerWeapon(playerid, 3, 99999);*/ ClanInfo[clanid][cArma4] = 3;// Nightstick
- case 335: /*GivePlayerWeapon(playerid, 4, 99999);*/ ClanInfo[clanid][cArma4] = 4;// Knife
- case 336: /*GivePlayerWeapon(playerid, 5, 99999);*/ ClanInfo[clanid][cArma4] = 5;// Baseball Bat
- case 337: /*GivePlayerWeapon(playerid, 6, 99999);*/ ClanInfo[clanid][cArma4] = 6;// Shovel
- case 338: /*GivePlayerWeapon(playerid, 7, 99999);*/ ClanInfo[clanid][cArma4] = 7;// Pool Cue
- case 339: /*GivePlayerWeapon(playerid, 8, 99999);*/ ClanInfo[clanid][cArma4] = 8;// Katana
- case 341: /*GivePlayerWeapon(playerid, 9, 99999);*/ ClanInfo[clanid][cArma4] = 9;// Chainsaw
- case 321: /*GivePlayerWeapon(playerid, 10, 99999);*/ ClanInfo[clanid][cArma4] = 10;// Double-ended Dildo
- case 325: /*GivePlayerWeapon(playerid, 14, 99999);*/ ClanInfo[clanid][cArma4] = 14;// Flowers
- case 326: /*GivePlayerWeapon(playerid, 15, 99999);*/ ClanInfo[clanid][cArma4] = 15;// Cane
- case 342: /*GivePlayerWeapon(playerid, 16, 99999);*/ ClanInfo[clanid][cArma4] = 16;// Grenade
- case 343: /*GivePlayerWeapon(playerid, 17, 99999);*/ ClanInfo[clanid][cArma4] = 17;// Tear Gas
- case 344: /*GivePlayerWeapon(playerid, 18, 99999);*/ ClanInfo[clanid][cArma4] = 18;// Molotov Cocktail
- case 346: /*GivePlayerWeapon(playerid, 22, 99999);*/ ClanInfo[clanid][cArma4] = 22;// 9mm
- case 347: /*GivePlayerWeapon(playerid, 23, 99999);*/ ClanInfo[clanid][cArma4] = 23;// Silenced 9mm
- case 348: /*GivePlayerWeapon(playerid, 24, 99999);*/ ClanInfo[clanid][cArma4] = 24;// Desert Eagle
- case 349: /*GivePlayerWeapon(playerid, 25, 99999);*/ ClanInfo[clanid][cArma4] = 25;// Shotgun
- case 350: /*GivePlayerWeapon(playerid, 26, 99999);*/ ClanInfo[clanid][cArma4] = 26;// Sawnoff
- case 351: /*GivePlayerWeapon(playerid, 27, 99999);*/ ClanInfo[clanid][cArma4] = 27;// Combat Shotgun
- case 352: /*GivePlayerWeapon(playerid, 28, 99999);*/ ClanInfo[clanid][cArma4] = 28;// Micro SMG/Uzi
- case 353: /*GivePlayerWeapon(playerid, 29, 99999);*/ ClanInfo[clanid][cArma4] = 29;// MP5
- case 355: /*GivePlayerWeapon(playerid, 30, 99999);*/ ClanInfo[clanid][cArma4] = 30;// AK-47
- case 356: /*GivePlayerWeapon(playerid, 31, 99999);*/ ClanInfo[clanid][cArma4] = 31;// M4
- case 372: /*GivePlayerWeapon(playerid, 32, 99999);*/ ClanInfo[clanid][cArma4] = 32;// Tec-9
- case 357: /*GivePlayerWeapon(playerid, 33, 99999);*/ ClanInfo[clanid][cArma4] = 33;// Country Rifle
- case 358: /*GivePlayerWeapon(playerid, 34, 99999);*/ ClanInfo[clanid][cArma4] = 34;// Sniper Rifle
- case 359: /*GivePlayerWeapon(playerid, 35, 99999);*/ ClanInfo[clanid][cArma4] = 35;// RPG
- case 360: /*GivePlayerWeapon(playerid, 36, 99999);*/ ClanInfo[clanid][cArma4] = 36;// HS Rocket
- case 361: /*GivePlayerWeapon(playerid, 37, 99999);*/ ClanInfo[clanid][cArma4] = 37;// Flamethrower
- case 362: /*GivePlayerWeapon(playerid, 38, 99999);*/ ClanInfo[clanid][cArma4] = 37;// Minigun
- case 363: { /*GivePlayerWeapon(playerid, 39, 99999);*/ /*GivePlayerWeapon(playerid, 40, 1);*/ ClanInfo[clanid][cArma4] = 39;}// Satchel Charge + Detonator
- case 365: /*GivePlayerWeapon(playerid, 41, 99999);*/ ClanInfo[clanid][cArma4] = 41;// Spraycan
- case 366: /*GivePlayerWeapon(playerid, 42, 99999);*/ ClanInfo[clanid][cArma4] = 42;// Fire Extinguisher
- }
- }
- else SendClientMessage(playerid, 0xFF0000FF, "Canceled skin selection");
- return 1;
- }
- if(listid == arma5)
- {
- if(response)
- {
- ShowModelSelectionMenu(playerid, arma6, "Arma Slot 6");
- switch(modelid)
- {
- case 331: ClanInfo[clanid][cArma5] = 1; // Brass Knuckles
- case 333: /*GivePlayerWeapon(playerid, 2, 99999);*/ ClanInfo[clanid][cArma5] = 2; // Golf Club
- case 334: /*GivePlayerWeapon(playerid, 3, 99999);*/ ClanInfo[clanid][cArma5] = 3;// Nightstick
- case 335: /*GivePlayerWeapon(playerid, 4, 99999);*/ ClanInfo[clanid][cArma5] = 4;// Knife
- case 336: /*GivePlayerWeapon(playerid, 5, 99999);*/ ClanInfo[clanid][cArma5] = 5;// Baseball Bat
- case 337: /*GivePlayerWeapon(playerid, 6, 99999);*/ ClanInfo[clanid][cArma5] = 6;// Shovel
- case 338: /*GivePlayerWeapon(playerid, 7, 99999);*/ ClanInfo[clanid][cArma5] = 7;// Pool Cue
- case 339: /*GivePlayerWeapon(playerid, 8, 99999);*/ ClanInfo[clanid][cArma5] = 8;// Katana
- case 341: /*GivePlayerWeapon(playerid, 9, 99999);*/ ClanInfo[clanid][cArma5] = 9;// Chainsaw
- case 321: /*GivePlayerWeapon(playerid, 10, 99999);*/ ClanInfo[clanid][cArma5] = 10;// Double-ended Dildo
- case 325: /*GivePlayerWeapon(playerid, 14, 99999);*/ ClanInfo[clanid][cArma5] = 14;// Flowers
- case 326: /*GivePlayerWeapon(playerid, 15, 99999);*/ ClanInfo[clanid][cArma5] = 15;// Cane
- case 342: /*GivePlayerWeapon(playerid, 16, 99999);*/ ClanInfo[clanid][cArma5] = 16;// Grenade
- case 343: /*GivePlayerWeapon(playerid, 17, 99999);*/ ClanInfo[clanid][cArma5] = 17;// Tear Gas
- case 344: /*GivePlayerWeapon(playerid, 18, 99999);*/ ClanInfo[clanid][cArma5] = 18;// Molotov Cocktail
- case 346: /*GivePlayerWeapon(playerid, 22, 99999);*/ ClanInfo[clanid][cArma5] = 22;// 9mm
- case 347: /*GivePlayerWeapon(playerid, 23, 99999);*/ ClanInfo[clanid][cArma5] = 23;// Silenced 9mm
- case 348: /*GivePlayerWeapon(playerid, 24, 99999);*/ ClanInfo[clanid][cArma5] = 24;// Desert Eagle
- case 349: /*GivePlayerWeapon(playerid, 25, 99999);*/ ClanInfo[clanid][cArma5] = 25;// Shotgun
- case 350: /*GivePlayerWeapon(playerid, 26, 99999);*/ ClanInfo[clanid][cArma5] = 26;// Sawnoff
- case 351: /*GivePlayerWeapon(playerid, 27, 99999);*/ ClanInfo[clanid][cArma5] = 27;// Combat Shotgun
- case 352: /*GivePlayerWeapon(playerid, 28, 99999);*/ ClanInfo[clanid][cArma5] = 28;// Micro SMG/Uzi
- case 353: /*GivePlayerWeapon(playerid, 29, 99999);*/ ClanInfo[clanid][cArma5] = 29;// MP5
- case 355: /*GivePlayerWeapon(playerid, 30, 99999);*/ ClanInfo[clanid][cArma5] = 30;// AK-47
- case 356: /*GivePlayerWeapon(playerid, 31, 99999);*/ ClanInfo[clanid][cArma5] = 31;// M4
- case 372: /*GivePlayerWeapon(playerid, 32, 99999);*/ ClanInfo[clanid][cArma5] = 32;// Tec-9
- case 357: /*GivePlayerWeapon(playerid, 33, 99999);*/ ClanInfo[clanid][cArma5] = 33;// Country Rifle
- case 358: /*GivePlayerWeapon(playerid, 34, 99999);*/ ClanInfo[clanid][cArma5] = 34;// Sniper Rifle
- case 359: /*GivePlayerWeapon(playerid, 35, 99999);*/ ClanInfo[clanid][cArma5] = 35;// RPG
- case 360: /*GivePlayerWeapon(playerid, 36, 99999);*/ ClanInfo[clanid][cArma5] = 36;// HS Rocket
- case 361: /*GivePlayerWeapon(playerid, 37, 99999);*/ ClanInfo[clanid][cArma5] = 37;// Flamethrower
- case 362: /*GivePlayerWeapon(playerid, 38, 99999);*/ ClanInfo[clanid][cArma5] = 37;// Minigun
- case 363: { /*GivePlayerWeapon(playerid, 39, 99999);*/ /*GivePlayerWeapon(playerid, 40, 1);*/ ClanInfo[clanid][cArma5] = 39;}// Satchel Charge + Detonator
- case 365: /*GivePlayerWeapon(playerid, 41, 99999);*/ ClanInfo[clanid][cArma5] = 41;// Spraycan
- case 366: /*GivePlayerWeapon(playerid, 42, 99999);*/ ClanInfo[clanid][cArma5] = 42;// Fire Extinguisher
- }
- }
- else SendClientMessage(playerid, 0xFF0000FF, "Canceled skin selection");
- return 1;
- }
- if(listid == arma6)
- {
- if(response)
- {
- 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");
- switch(modelid)
- {
- case 331: ClanInfo[clanid][cArma1] = 1; // Brass Knuckles
- case 333: /*GivePlayerWeapon(playerid, 2, 99999);*/ ClanInfo[clanid][cArma6] = 2; // Golf Club
- case 334: /*GivePlayerWeapon(playerid, 3, 99999);*/ ClanInfo[clanid][cArma6] = 3;// Nightstick
- case 335: /*GivePlayerWeapon(playerid, 4, 99999);*/ ClanInfo[clanid][cArma6] = 4;// Knife
- case 336: /*GivePlayerWeapon(playerid, 5, 99999);*/ ClanInfo[clanid][cArma6] = 5;// Baseball Bat
- case 337: /*GivePlayerWeapon(playerid, 6, 99999);*/ ClanInfo[clanid][cArma6] = 6;// Shovel
- case 338: /*GivePlayerWeapon(playerid, 7, 99999);*/ ClanInfo[clanid][cArma6] = 7;// Pool Cue
- case 339: /*GivePlayerWeapon(playerid, 8, 99999);*/ ClanInfo[clanid][cArma6] = 8;// Katana
- case 341: /*GivePlayerWeapon(playerid, 9, 99999);*/ ClanInfo[clanid][cArma6] = 9;// Chainsaw
- case 321: /*GivePlayerWeapon(playerid, 10, 99999);*/ ClanInfo[clanid][cArma6] = 10;// Double-ended Dildo
- case 325: /*GivePlayerWeapon(playerid, 14, 99999);*/ ClanInfo[clanid][cArma6] = 14;// Flowers
- case 326: /*GivePlayerWeapon(playerid, 15, 99999);*/ ClanInfo[clanid][cArma6] = 15;// Cane
- case 342: /*GivePlayerWeapon(playerid, 16, 99999);*/ ClanInfo[clanid][cArma6] = 16;// Grenade
- case 343: /*GivePlayerWeapon(playerid, 17, 99999);*/ ClanInfo[clanid][cArma1] = 17;// Tear Gas
- case 344: /*GivePlayerWeapon(playerid, 18, 99999);*/ ClanInfo[clanid][cArma6] = 18;// Molotov Cocktail
- case 346: /*GivePlayerWeapon(playerid, 22, 99999);*/ ClanInfo[clanid][cArma6] = 22;// 9mm
- case 347: /*GivePlayerWeapon(playerid, 23, 99999);*/ ClanInfo[clanid][cArma6] = 23;// Silenced 9mm
- case 348: /*GivePlayerWeapon(playerid, 24, 99999);*/ ClanInfo[clanid][cArma6] = 24;// Desert Eagle
- case 349: /*GivePlayerWeapon(playerid, 25, 99999);*/ ClanInfo[clanid][cArma6] = 25;// Shotgun
- case 350: /*GivePlayerWeapon(playerid, 26, 99999);*/ ClanInfo[clanid][cArma6] = 26;// Sawnoff
- case 351: /*GivePlayerWeapon(playerid, 27, 99999);*/ ClanInfo[clanid][cArma6] = 27;// Combat Shotgun
- case 352: /*GivePlayerWeapon(playerid, 28, 99999);*/ ClanInfo[clanid][cArma6] = 28;// Micro SMG/Uzi
- case 353: /*GivePlayerWeapon(playerid, 29, 99999);*/ ClanInfo[clanid][cArma6] = 29;// MP5
- case 355: /*GivePlayerWeapon(playerid, 30, 99999);*/ ClanInfo[clanid][cArma6] = 30;// AK-47
- case 356: /*GivePlayerWeapon(playerid, 31, 99999);*/ ClanInfo[clanid][cArma6] = 31;// M4
- case 372: /*GivePlayerWeapon(playerid, 32, 99999);*/ ClanInfo[clanid][cArma6] = 32;// Tec-9
- case 357: /*GivePlayerWeapon(playerid, 33, 99999);*/ ClanInfo[clanid][cArma6] = 33;// Country Rifle
- case 358: /*GivePlayerWeapon(playerid, 34, 99999);*/ ClanInfo[clanid][cArma6] = 34;// Sniper Rifle
- case 359: /*GivePlayerWeapon(playerid, 35, 99999);*/ ClanInfo[clanid][cArma6] = 35;// RPG
- case 360: /*GivePlayerWeapon(playerid, 36, 99999);*/ ClanInfo[clanid][cArma1] = 36;// HS Rocket
- case 361: /*GivePlayerWeapon(playerid, 37, 99999);*/ ClanInfo[clanid][cArma6] = 37;// Flamethrower
- case 362: /*GivePlayerWeapon(playerid, 38, 99999);*/ ClanInfo[clanid][cArma6] = 37;// Minigun
- case 363: { /*GivePlayerWeapon(playerid, 39, 99999);*/ /*GivePlayerWeapon(playerid, 40, 1);*/ ClanInfo[clanid][cArma6] = 39;}// Satchel Charge + Detonator
- case 365: /*GivePlayerWeapon(playerid, 41, 99999);*/ ClanInfo[clanid][cArma6] = 41;// Spraycan
- case 366: /*GivePlayerWeapon(playerid, 42, 99999);*/ ClanInfo[clanid][cArma6] = 42;// Fire Extinguisher
- }
- }
- else SendClientMessage(playerid, 0xFF0000FF, "Canceled skin selection");
- return 1;
- }
- return 1;
- }
- public SaveClans()
- {
- for(new clanid=1;clanid<maxclans;clanid++)
- {
- new file2[512];
- format(file2, sizeof(file2),"Clans/%d.ini", clanid);
- if(dini_Exists(file2))
- {
- dini_IntSet(file2,"ClanId",ClanInfo[clanid][cID]);
- dini_Set(file2,"Nume", ClanInfo[clanid][cNume]);
- dini_Set(file2,"Lider", ClanInfo[clanid][cLider]);
- dini_IntSet(file2,"Skin1",ClanInfo[clanid][cSkin1]);
- dini_IntSet(file2,"Skin2",ClanInfo[clanid][cSkin2]);
- dini_Set(file2,"Culoare",ClanInfo[clanid][cColor]);
- dini_IntSet(file2,"Arma1",ClanInfo[clanid][cArma1]);
- dini_IntSet(file2,"Arma2",ClanInfo[clanid][cArma2]);
- dini_IntSet(file2,"Arma3",ClanInfo[clanid][cArma3]);
- dini_IntSet(file2,"Arma4",ClanInfo[clanid][cArma4]);
- dini_IntSet(file2,"Arma5",ClanInfo[clanid][cArma5]);
- dini_IntSet(file2,"Arma6",ClanInfo[clanid][cArma6]);
- dini_FloatSet(file2,"Spawnx",ClanInfo[clanid][cSpawnx]);
- dini_FloatSet(file2,"Spawny",ClanInfo[clanid][cSpawny]);
- dini_FloatSet(file2,"Spawnz",ClanInfo[clanid][cSpawnz]);
- dini_FloatSet(file2,"Rotatie",ClanInfo[clanid][cAngle]);
- dini_IntSet(file2,"Interior",ClanInfo[clanid][cInterior]);
- dini_IntSet(file2,"Virtual",ClanInfo[clanid][cVirtual]);
- dini_IntSet(file2,"Membri",ClanInfo[clanid][cMembri]);
- dini_IntSet(file2,"Zi",ClanInfo[clanid][cZi]);
- dini_IntSet(file2,"Luna",ClanInfo[clanid][cLuna]);
- dini_IntSet(file2,"An",ClanInfo[clanid][cAn]);
- }
- return 1;
- }
- return 1;
- }
- public SaveThisClan(clanid)
- {
- new file2[512];
- format(file2, sizeof(file2),"Clans/%d.ini", clanid);
- if(dini_Exists(file2))
- {
- dini_IntSet(file2,"ClanId",ClanInfo[clanid][cID]);
- dini_Set(file2,"Nume", ClanInfo[clanid][cNume]);
- dini_Set(file2,"Lider", ClanInfo[clanid][cLider]);
- dini_IntSet(file2,"Skin1",ClanInfo[clanid][cSkin1]);
- dini_IntSet(file2,"Skin2",ClanInfo[clanid][cSkin2]);
- dini_Set(file2,"Culoare",ClanInfo[clanid][cColor]);
- dini_IntSet(file2,"Arma1",ClanInfo[clanid][cArma1]);
- dini_IntSet(file2,"Arma2",ClanInfo[clanid][cArma2]);
- dini_IntSet(file2,"Arma3",ClanInfo[clanid][cArma3]);
- dini_IntSet(file2,"Arma4",ClanInfo[clanid][cArma4]);
- dini_IntSet(file2,"Arma5",ClanInfo[clanid][cArma5]);
- dini_IntSet(file2,"Arma6",ClanInfo[clanid][cArma6]);
- dini_FloatSet(file2,"Spawnx",ClanInfo[clanid][cSpawnx]);
- dini_FloatSet(file2,"Spawny",ClanInfo[clanid][cSpawny]);
- dini_FloatSet(file2,"Spawnz",ClanInfo[clanid][cSpawnz]);
- dini_FloatSet(file2,"Rotatie",ClanInfo[clanid][cAngle]);
- dini_IntSet(file2,"Interior",ClanInfo[clanid][cInterior]);
- dini_IntSet(file2,"Virtual",ClanInfo[clanid][cVirtual]);
- dini_IntSet(file2,"Membri",ClanInfo[clanid][cMembri]);
- dini_IntSet(file2,"Zi",ClanInfo[clanid][cZi]);
- dini_IntSet(file2,"Luna",ClanInfo[clanid][cLuna]);
- dini_IntSet(file2,"An",ClanInfo[clanid][cAn]);
- return 1;
- }
- else if(!dini_Exists(file2))
- {
- dini_Create(file2);
- dini_IntSet(file2,"ClanId",ClanInfo[clanid][cID]);
- dini_Set(file2,"Nume", ClanInfo[clanid][cNume]);
- dini_Set(file2,"Lider", ClanInfo[clanid][cLider]);
- dini_IntSet(file2,"Skin1",ClanInfo[clanid][cSkin1]);
- dini_IntSet(file2,"Skin2",ClanInfo[clanid][cSkin2]);
- dini_Set(file2,"Culoare",ClanInfo[clanid][cColor]);
- dini_IntSet(file2,"Arma1",ClanInfo[clanid][cArma1]);
- dini_IntSet(file2,"Arma2",ClanInfo[clanid][cArma2]);
- dini_IntSet(file2,"Arma3",ClanInfo[clanid][cArma3]);
- dini_IntSet(file2,"Arma4",ClanInfo[clanid][cArma4]);
- dini_IntSet(file2,"Arma5",ClanInfo[clanid][cArma5]);
- dini_IntSet(file2,"Arma6",ClanInfo[clanid][cArma6]);
- dini_FloatSet(file2,"Spawnx",ClanInfo[clanid][cSpawnx]);
- dini_FloatSet(file2,"Spawny",ClanInfo[clanid][cSpawny]);
- dini_FloatSet(file2,"Spawnz",ClanInfo[clanid][cSpawnz]);
- dini_FloatSet(file2,"Rotatie",ClanInfo[clanid][cAngle]);
- dini_IntSet(file2,"Interior",ClanInfo[clanid][cInterior]);
- dini_IntSet(file2,"Virtual",ClanInfo[clanid][cVirtual]);
- dini_IntSet(file2,"Membri",ClanInfo[clanid][cMembri]);
- dini_IntSet(file2,"Zi",ClanInfo[clanid][cZi]);
- dini_IntSet(file2,"Luna",ClanInfo[clanid][cLuna]);
- dini_IntSet(file2,"An",ClanInfo[clanid][cAn]);
- return 1;
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement