10.02.2016, 21:42
Код:
[23:29:42] [warning] client exceeded 'ackslimit' MEUIP:64163 (3070) Limit: 3000/sec
Код:
forward HoraSave(); public HoraSave() { new Hour, Minute, Second; gettime(Hour, Minute, Second); if ( Hour == 00 && Minute == 30 || Hour == 01 && Minute == 30 || Hour == 02 && Minute == 30 || Hour == 03 && Minute == 30 || Hour == 04 && Minute == 30 || Hour == 05 && Minute == 30 || Hour == 06 && Minute == 30 || Hour == 07 && Minute == 30 || Hour == 08 && Minute == 30 || Hour == 09 && Minute == 30 || Hour == 10 && Minute == 30 || Hour == 11 && Minute == 30 || Hour == 12 && Minute == 30 || Hour == 13 && Minute == 30 || Hour == 14 && Minute == 30 || Hour == 15 && Minute == 30 || Hour == 16 && Minute == 30 || Hour == 17 && Minute == 30 || Hour == 18 && Minute == 30 || Hour == 19 && Minute == 30 || Hour == 20 && Minute == 30 || Hour == 21 && Minute == 30 || Hour == 22 && Minute == 30 || Hour == 23 && Minute == 30) { SalvarCasas(); SalvarFactions(); SalvarServer(); SendClientMessageToAll(COLOR_LIGHTRED, "SERVER SAVE!"); } return 1; }
Код:
stock SalvarCasas() { for(new houseid; houseid < MAX_HOUSES; houseid++) { new query[1030]; format(query, sizeof(query), "UPDATE `houses` SET `OutPosX` = '%f', `OutPosY` = '%f', `OutPosZ` = '%f', `InPosX` = '%f', `InPosY` = '%f', `InPosZ` = '%f', `World` = '%d', `Price` = '%d', `Interior` = '%d', `Locked` = '%d', `Dono` = '%s', `FHQ` = '%d', `Money` = '%d', `Maconha` = '%d', `Material` = '%d', `Owner` = '%d', `hlastlogin` = '%d' WHERE `ID` = '%i' ", HouseInfo[houseid][OutPosX], HouseInfo[houseid][OutPosY], HouseInfo[houseid][OutPosZ], HouseInfo[houseid][InPosX], HouseInfo[houseid][InPosY], HouseInfo[houseid][InPosZ], HouseInfo[houseid][World], HouseInfo[houseid][Price], HouseInfo[houseid][Interior], HouseInfo[houseid][Locked], HouseInfo[houseid][Dono], HouseInfo[houseid][FHQ], HouseInfo[houseid][Money], HouseInfo[houseid][Maconha], HouseInfo[houseid][Material], HouseInfo[houseid][Owner], HouseInfo[houseid][hlastlogin], houseid); mysql_pquery(ConnectMYSQL, query); } return 1; }
Код:
stock SalvarFactions() { for(new factionid; factionid < MAX_FACTIONS; factionid++) { new query[1030]; format(query, sizeof(query), "UPDATE `factions` SET `facname` = '%s', `HQposX` = '%f', `HQposY` = '%f', `HQposZ` = '%f', `pistolSPAWNfac` = '%d', `shotgunSPAWNfac` = '%d', `submachineSPAWNfac` = '%d', `assaultSPAWNfac` = '%d', `sniperSPAWNfac` = '%d', `meleeSPAWNfac` = '%d', `cofredinheiro` = '%d', `cofresalario` = '%d', `cofrematerial` = '%d', `cofremaconha` = '%d', `hq` = '%d' WHERE `ID` = '%i' ", FactionInfo[factionid][facname], FactionInfo[factionid][HQposX], FactionInfo[factionid][HQposY], FactionInfo[factionid][HQposZ], FactionInfo[factionid][pistolSPAWNfac], FactionInfo[factionid][shotgunSPAWNfac], FactionInfo[factionid][submachineSPAWNfac], FactionInfo[factionid][assaultSPAWNfac], FactionInfo[factionid][sniperSPAWNfac], FactionInfo[factionid][meleeSPAWNfac], FactionInfo[factionid][cofredinheiro], FactionInfo[factionid][cofresalario], FactionInfo[factionid][cofrematerial], FactionInfo[factionid][cofremaconha], FactionInfo[factionid][hq], factionid); mysql_pquery(ConnectMYSQL, query); format(query, sizeof(query), "UPDATE `factions` SET `membro1` = '%s', `membro2` = '%s', `membro3` = '%s', `membro4` = '%s', `membro5` = '%s', `membro6` = '%s', `membro7` = '%s', `membro8` = '%s', `membro9` = '%s', `membro10` = '%s', `membro11` = '%s', `membro12` = '%s', `membro13` = '%s', `membro14` = '%s', `membro15` = '%s' WHERE `ID` = '%i' ", FactionInfo[factionid][membro1], FactionInfo[factionid][membro2], FactionInfo[factionid][membro3], FactionInfo[factionid][membro4], FactionInfo[factionid][membro5], FactionInfo[factionid][membro6], FactionInfo[factionid][membro7], FactionInfo[factionid][membro8], FactionInfo[factionid][membro9], FactionInfo[factionid][membro10], FactionInfo[factionid][membro11], FactionInfo[factionid][membro12], FactionInfo[factionid][membro13], FactionInfo[factionid][membro14], FactionInfo[factionid][membro15], factionid); mysql_pquery(ConnectMYSQL, query); format(query, sizeof(query), "UPDATE `factions` SET `cargo1` = '%d', `cargo2` = '%d', `cargo3` = '%d', `cargo4` = '%d', `cargo5` = '%d', `cargo6` = '%d', `cargo7` = '%d', `cargo8` = '%d', `cargo9` = '%d', `cargo10` = '%d', `cargo11` = '%d', `cargo12` = '%d', `cargo13` = '%d', `cargo14` = '%d', `cargo15` = '%d' WHERE `ID` = '%i' ", FactionInfo[factionid][cargo1], FactionInfo[factionid][cargo2], FactionInfo[factionid][cargo3], FactionInfo[factionid][cargo4], FactionInfo[factionid][cargo5], FactionInfo[factionid][cargo6], FactionInfo[factionid][cargo7], FactionInfo[factionid][cargo8], FactionInfo[factionid][cargo9], FactionInfo[factionid][cargo10], FactionInfo[factionid][cargo11], FactionInfo[factionid][cargo12], FactionInfo[factionid][cargo13], FactionInfo[factionid][cargo14], FactionInfo[factionid][cargo15], factionid); mysql_pquery(ConnectMYSQL, query); } return 1; }
Код:
stock SalvarServer() { for(new factionid; factionid < MAX_FACTIONS; factionid++) { new query[1030]; format(query, sizeof(query), "UPDATE `server` SET `god` = '%s', `cm1` = '%s', `cm2` = '%s', `gm1` = '%s', `gm2` = '%s', `gm3` = '%s', `gm4` = '%s', `sa1` = '%s', `sa2` = '%s', `sa3` = '%s', `sa4` = '%s', `adm1` = '%s', `adm2` = '%s', `adm3` = '%s', `adm4` = '%s' ", admlist[god], admlist[cm1], admlist[cm2], admlist[gm1], admlist[gm2], admlist[gm3], admlist[gm4], admlist[sa1], admlist[sa2], admlist[sa3], admlist[sa4], admlist[adm1], admlist[adm2], admlist[adm3], admlist[adm4]); mysql_pquery(ConnectMYSQL, query); format(query, sizeof(query), "UPDATE `server` SET `mod1` = '%s', `mod2` = '%s', `mod3` = '%s', `mod4` = '%s', `mod5` = '%s', `mod6` = '%s', `mod7` = '%s', `mod8` = '%s', `tutor1` = '%s', `tutor2` = '%s', `tutor3` = '%s', `tutor4` = '%s', `tutor5` = '%s', `tutor6` = '%s', `tutor7` = '%s', `tutor8` = '%s' ", admlist[mod1], admlist[mod2], admlist[mod3], admlist[mod4], admlist[mod5], admlist[mod6], admlist[mod7], admlist[mod8], admlist[tutor1], admlist[tutor2], admlist[tutor3], admlist[tutor4], admlist[tutor5], admlist[tutor6], admlist[tutor7], admlist[tutor8]); mysql_pquery(ConnectMYSQL, query); format(query, sizeof(query), "UPDATE `server` SET `donoDende` = '%d', `donoComplexo` = '%d', `donoUrubu` = '%d', `donoMangueira` = '%d', `donoRocinha` = '%d', `donoTitanic` = '%d' ", donoDende, donoComplexo, donoUrubu, donoMangueira, donoRocinha, donoTitanic); mysql_pquery(ConnectMYSQL, query); } return 1; }