PHP код:
stock SaveAccount(playerid)
{
if(GetPVarInt(playerid, "pLogged") == 1)
{
//CheckMySQLConnection();
new str[2028];
mysql_format(mySQLDB,str,sizeof(str),"UPDATE "TABLE_ACCOUNT" SET ");
mysql_format(mySQLDB,str,sizeof(str),"%s`Level`= '%i', ",str,GetPVarInt(playerid,"pLevel"));
mysql_format(mySQLDB,str,sizeof(str),"%s`Admin`= '%i', ",str,Player[playerid][pAdmin]);
mysql_format(mySQLDB,str,sizeof(str),"%s`Reg`= '%i', ",str,GetPVarInt(playerid,"Reg"));
mysql_format(mySQLDB,str,sizeof(str),"%s`Sex`= '%i', ",str,GetPVarInt(playerid,"Sex"));
mysql_format(mySQLDB,str,sizeof(str),"%s`Spawn`= '%i', ",str,GetPVarInt(playerid, "pSpawn"));
mysql_format(mySQLDB,str,sizeof(str),"%s`Exp`= '%i', ",str,GetPVarInt(playerid,"pExp"));
mysql_format(mySQLDB,str,sizeof(str),"%s`BankPass`= '%i', ",str,Player[playerid][pBankPass]);
mysql_format(mySQLDB,str,sizeof(str),"%s`Money`= '%i', ",str,GetPVarInt(playerid,"pMoney"));
mysql_format(mySQLDB,str,sizeof(str),"%s`Bank`= '%i', ",str,Player[playerid][pBank]);
mysql_format(mySQLDB,str,sizeof(str),"%s`MuteTime`= '%i', ",str,Player[playerid][pMuteTime]);
mysql_format(mySQLDB,str,sizeof(str),"%s`Job`= '%i', ",str,Player[playerid][pJob]);
mysql_format(mySQLDB,str,sizeof(str),"%s`PayCheck`= '%i', ",str,Player[playerid][pPayCheck]);
mysql_format(mySQLDB,str,sizeof(str),"%s`Jailed`= '%i', ",str,Player[playerid][pJailed]);
mysql_format(mySQLDB,str,sizeof(str),"%s`JailTime`= '%i', ",str,Player[playerid][pJailTime]);
mysql_format(mySQLDB,str,sizeof(str),"%s`MedicTime`= '%i', ",str,Player[playerid][pMedicTime]);
mysql_format(mySQLDB,str,sizeof(str),"%s`Mats`= '%i', ",str,Player[playerid][pMats]);
mysql_format(mySQLDB,str,sizeof(str),"%s`Drugs`= '%i', ",str,Player[playerid][pDrugs]);
mysql_format(mySQLDB,str,sizeof(str),"%s`JobTime`= '%i', ",str,Player[playerid][pJobTime]);
mysql_format(mySQLDB,str,sizeof(str),"%s`Member`= '%i', ",str,Player[playerid][pMember]);
mysql_format(mySQLDB,str,sizeof(str),"%s`Leader`= '%i', ",str,Player[playerid][pLeader]);
mysql_format(mySQLDB,str,sizeof(str),"%s`Zam`= '%i', ",str,Player[playerid][pZam]);
mysql_format(mySQLDB,str,sizeof(str),"%s`Rank`= '%i', ",str,Player[playerid][pRank]);
mysql_format(mySQLDB,str,sizeof(str),"%s`Model`= '%i', ",str,Player[playerid][pModel]);
mysql_format(mySQLDB,str,sizeof(str),"%s`Char`= '%i', ",str,Player[playerid][pChar]);
mysql_format(mySQLDB,str,sizeof(str),"%s`Pbiskey`= '%i', ",str,Player[playerid][pPbiskey]);
mysql_format(mySQLDB,str,sizeof(str),"%s`TWarns`= '%i', ",str,Player[playerid][pTWarns]);
mysql_format(mySQLDB,str,sizeof(str),"%s`CarLic`= '%i', ",str,Player[playerid][pCarLic]);
mysql_format(mySQLDB,str,sizeof(str),"%s`MotoLic`= '%i', ",str,Player[playerid][pMotoLic]);
mysql_format(mySQLDB,str,sizeof(str),"%s`TruckLic`= '%i', ",str,Player[playerid][pTruckLic]);
mysql_format(mySQLDB,str,sizeof(str),"%s`TruckELic`= '%i', ",str,Player[playerid][pTruckELic]);
mysql_format(mySQLDB,str,sizeof(str),"%s`FlyLic`= '%i', ",str,Player[playerid][pFlyLic]);
mysql_format(mySQLDB,str,sizeof(str),"%s`BoatLic`= '%i', ",str,Player[playerid][pBoatLic]);
mysql_format(mySQLDB,str,sizeof(str),"%s`SD`= '%i', ",str,Player[playerid][pSD]);
mysql_format(mySQLDB,str,sizeof(str),"%s`GunLic`= '%i', ",str,Player[playerid][pGunLic]);
mysql_format(mySQLDB,str,sizeof(str),"%s`TaxiLic`= '%i', ",str,Player[playerid][pTaxiLic]);
mysql_format(mySQLDB,str,sizeof(str),"%s`GruzSkill`= '%i', ",str,Player[playerid][pGruzSkill]);
mysql_format(mySQLDB,str,sizeof(str),"%s`DrugSkill`= '%i', ",str,Player[playerid][pDrugSkill]);
mysql_format(mySQLDB,str,sizeof(str),"%s`GunSkill`= '%i', ",str,Player[playerid][pGunSkill]);
mysql_format(mySQLDB,str,sizeof(str),"%s`CarSkill`= '%i', ",str,Player[playerid][pCarSkill]);
mysql_format(mySQLDB,str,sizeof(str),"%s`JackSkill`= '%i', ",str,Player[playerid][pJackSkill]);
mysql_format(mySQLDB,str,sizeof(str),"%s`RobSkill`= '%i', ",str,Player[playerid][pRobSkill]);
mysql_format(mySQLDB,str,sizeof(str),"%s`RobHouseSkill`= '%i', ",str,Player[playerid][pRobHouseSkill]);
mysql_format(mySQLDB,str,sizeof(str),"%s`TimePizdanul`= '%i', ",str,Player[playerid][pTimePizdanul]);
mysql_format(mySQLDB,str,sizeof(str),"%s`RobHouseTime`= '%i', ",str,Player[playerid][pRobHouseTime]);
mysql_format(mySQLDB,str,sizeof(str),"%s`MechSkill`= '%i', ",str,Player[playerid][pMechSkill]);
mysql_format(mySQLDB,str,sizeof(str),"%s`TruckSkill`= '%i', ",str,Player[playerid][pTruckSkill]);
mysql_format(mySQLDB,str,sizeof(str),"%s`DetSkill`= '%i', ",str,Player[playerid][pDetSkill]);
mysql_format(mySQLDB,str,sizeof(str),"%s`HeadValue`= '%i', ",str,Player[playerid][pHeadValue]);
mysql_format(mySQLDB,str,sizeof(str),"%s`HunterValue`= '%i', ",str,Player[playerid][pHunterValue]);
mysql_format(mySQLDB,str,sizeof(str),"%s`TruckETime`= '%i', ",str,Player[playerid][pTruckETime]);
mysql_format(mySQLDB,str,sizeof(str),"%s`PayDay`= '%i', ",str,Player[playerid][pPayDay]);
mysql_format(mySQLDB,str,sizeof(str),"%s`Warns`= '%i', ",str,Player[playerid][pWarns]);
mysql_format(mySQLDB,str,sizeof(str),"%s`Boxing`= '%i', ",str,Player[playerid][pBoxing]);
mysql_format(mySQLDB,str,sizeof(str),"%s`Kunfu`= '%i', ",str,Player[playerid][pKunfu]);
mysql_format(mySQLDB,str,sizeof(str),"%s`Kneehead`= '%i', ",str,Player[playerid][pKneehead]);
mysql_format(mySQLDB,str,sizeof(str),"%s`Grabkick`= '%i', ",str,Player[playerid][pGrabkick]);
mysql_format(mySQLDB,str,sizeof(str),"%s`FStyle`= '%i', ",str,Player[playerid][pFStyle]);
mysql_format(mySQLDB,str,sizeof(str),"%s`Rope`= '%i', ",str,Player[playerid][pRope]);
mysql_format(mySQLDB,str,sizeof(str),"%s`CheatPassword`= '%i', ",str,Player[playerid][pCheatPassword]);
mysql_format(mySQLDB,str,sizeof(str),"%s`GPS`= '%i', ",str,Player[playerid][pGPS]);
mysql_format(mySQLDB,str,sizeof(str),"%s`Sigs`= '%i', ",str,Player[playerid][pSigs]);
mysql_format(mySQLDB,str,sizeof(str),"%s`Pivo`= '%i', ",str,Player[playerid][pPivo]);
mysql_format(mySQLDB,str,sizeof(str),"%s`Wanted`= '%i', ",str,Player[playerid][pWanted]);
mysql_format(mySQLDB,str,sizeof(str),"%s`RobTime`= '%i', ",str,Player[playerid][pRobTime]);
mysql_format(mySQLDB,str,sizeof(str),"%s`JackTime`= '%i', ",str,Player[playerid][pJackTime]);
mysql_format(mySQLDB,str,sizeof(str),"%s`AdminOnline`= '%i', ",str,Player[playerid][pAdminOnline]);
mysql_format(mySQLDB,str,sizeof(str),"%s`Vip`= '%i', ",str,GetPVarInt(playerid,"pVip"));
mysql_format(mySQLDB,str,sizeof(str),"%s`Donate`= '%i', ",str,Player[playerid][pDonate]);
mysql_format(mySQLDB,str,sizeof(str),"%s`Kvest_1`= '%i', ",str,Player[playerid][pKvest_1]);
mysql_format(mySQLDB,str,sizeof(str),"%s`Kvest_2`= '%i', ",str,Player[playerid][pKvest_2]);
mysql_format(mySQLDB,str,sizeof(str),"%s`Kvest_3`= '%i', ",str,Player[playerid][pKvest_3]);
mysql_format(mySQLDB,str,sizeof(str),"%s`Kvest_4`= '%i', ",str,Player[playerid][pKvest_4]);
mysql_format(mySQLDB,str,sizeof(str),"%s`Kvest_5`= '%i', ",str,Player[playerid][pKvest_5]);
mysql_format(mySQLDB,str,sizeof(str),"%s`Kvest_6`= '%i', ",str,Player[playerid][pKvest_6]);
mysql_format(mySQLDB,str,sizeof(str),"%s`Kvest_7`= '%i', ",str,Player[playerid][pKvest_7]);
mysql_format(mySQLDB,str,sizeof(str),"%s`Kvest_8`= '%i', ",str,Player[playerid][pKvest_8]);
mysql_format(mySQLDB,str,sizeof(str),"%s`Kvest_9`= '%i', ",str,Player[playerid][pKvest_9]);
mysql_format(mySQLDB,str,sizeof(str),"%s`Kvest_10`= '%i', ",str,Player[playerid][pKvest_10]);
mysql_format(mySQLDB,str,sizeof(str),"%s`Kvest_11`= '%i', ",str,Player[playerid][pKvest_11]);
mysql_format(mySQLDB,str,sizeof(str),"%s`Kvest_12`= '%i', ",str,Player[playerid][pKvest_12]);
mysql_format(mySQLDB,str,sizeof(str),"%s`Repost`= '%s', ",str,Player[playerid][pRepost]);
mysql_format(mySQLDB,str,sizeof(str),"%s`AdmLeader`= '%i', ",str,Player[playerid][pAdminLeader]);
mysql_format(mySQLDB,str,sizeof(str),"%s`AdmBan`= '%i', ",str,Player[playerid][pAdminBan]);
mysql_format(mySQLDB,str,sizeof(str),"%s`AdmSkript`= '%i', ",str,Player[playerid][pAdminSkripter]);
mysql_format(mySQLDB,str,sizeof(str),"%s`JailBlock`= '%i', ",str,Player[playerid][pJailBlock]);
mysql_format(mySQLDB,str,sizeof(str),"%s`Fmute`= '%i', ",str,Player[playerid][pFMuteTime]);
mysql_format(mySQLDB,str,sizeof(str),"%s`Frisk`= '%i', ",str,Player[playerid][pFrisk]);
mysql_format(mySQLDB,str,sizeof(str),"%s`ADostup`= '%i', ",str,Player[playerid][pADostup]);
mysql_format(mySQLDB,str,sizeof(str),"%s`Apass`= '%s', ",str,Player[playerid][pApass]);
mysql_format(mySQLDB,str,sizeof(str),"%s`JoStep` = '%i' WHERE `Nickname` = '%s'",str,GetPVarInt(playerid,"JoKvestStep"),sendername(playerid));
mysql_function_query(mySQLDB, str, false, "", "");
//mysql_query(str);
}
return true;
}
publics LoadAccount(playerid,password[])
PHP код:
publics LoadAccount(playerid,password[])
{
new rows, fields,string[144];
cache_get_data(rows, fields);
if(rows)
{
Player[playerid][pID] = cache_get_field_content_int(0, "ID", mySQLDB);
cache_get_field_content(0, "Nickname", Player[playerid][pName]);
cache_get_field_content(0, "Password", Player[playerid][pKey]);
SetPVarInt(playerid, "pLevel",cache_get_field_content_int(0, "Level", mySQLDB));
Player[playerid][pAdmin] = cache_get_field_content_int(0, "Admin", mySQLDB);
SetPVarInt(playerid,"Reg",cache_get_field_content_int(0, "Reg", mySQLDB));
SetPVarInt(playerid,"Sex",cache_get_field_content_int(0, "Sex", mySQLDB));
SetPVarInt(playerid,"pSpawn",cache_get_field_content_int(0, "Spawn", mySQLDB));
SetPVarInt(playerid, "pExp",cache_get_field_content_int(0, "Exp", mySQLDB));
Player[playerid][pBankPass] = cache_get_field_content_int(0, "BankPass", mySQLDB);
SetPVarInt(playerid,"pMoney",cache_get_field_content_int(0, "Money", mySQLDB));
Player[playerid][pBank] = cache_get_field_content_int(0, "Bank", mySQLDB);
Player[playerid][pMuteTime] = cache_get_field_content_int(0, "MuteTime", mySQLDB);
Player[playerid][pJob] = cache_get_field_content_int(0, "Job", mySQLDB);
Player[playerid][pPayCheck] = cache_get_field_content_int(0, "PayCheck", mySQLDB);
Player[playerid][pJailed] = bool:cache_get_field_content_int(0, "Jailed", mySQLDB);
Player[playerid][pJailTime] = cache_get_field_content_int(0, "JailTime", mySQLDB);
Player[playerid][pMedicTime] = cache_get_field_content_int(0, "MedicTime", mySQLDB);
Player[playerid][pMats] = cache_get_field_content_int(0, "Mats", mySQLDB);
Player[playerid][pDrugs] = cache_get_field_content_int(0, "Drugs", mySQLDB);
Player[playerid][pJobTime] = cache_get_field_content_int(0, "JobTime", mySQLDB);
Player[playerid][pMember] = cache_get_field_content_int(0, "Member", mySQLDB);
Player[playerid][pLeader] = cache_get_field_content_int(0, "Leader", mySQLDB);
Player[playerid][pZam] = cache_get_field_content_int(0, "Zam", mySQLDB);
Player[playerid][pRank] = cache_get_field_content_int(0, "Rank", mySQLDB);
Player[playerid][pModel] = cache_get_field_content_int(0, "Model", mySQLDB);
Player[playerid][pChar] = cache_get_field_content_int(0, "Char", mySQLDB);
Player[playerid][pPbiskey] = cache_get_field_content_int(0, "Pbiskey", mySQLDB);
Player[playerid][pTWarns] = cache_get_field_content_int(0, "TWarns", mySQLDB);
Player[playerid][pCarLic] = bool:cache_get_field_content_int(0, "CarLic", mySQLDB);
Player[playerid][pMotoLic] = bool:cache_get_field_content_int(0, "MotoLic", mySQLDB);
Player[playerid][pTruckLic] = bool:cache_get_field_content_int(0, "TruckLic", mySQLDB);
Player[playerid][pTruckELic] = bool:cache_get_field_content_int(0, "TruckELic", mySQLDB);
Player[playerid][pFlyLic] = bool:cache_get_field_content_int(0, "FlyLic", mySQLDB);
Player[playerid][pBoatLic] = bool:cache_get_field_content_int(0, "BoatLic", mySQLDB);
Player[playerid][pSD] = bool:cache_get_field_content_int(0, "SD", mySQLDB);
Player[playerid][pGunLic] = bool:cache_get_field_content_int(0, "GunLic", mySQLDB);
Player[playerid][pTaxiLic] = bool:cache_get_field_content_int(0, "TaxiLic", mySQLDB);
Player[playerid][pGruzSkill] = cache_get_field_content_int(0, "GruzSkill", mySQLDB);
Player[playerid][pDrugSkill] = cache_get_field_content_int(0, "DrugSkill", mySQLDB);
Player[playerid][pGunSkill] = cache_get_field_content_int(0, "GunSkill", mySQLDB);
Player[playerid][pCarSkill] = cache_get_field_content_int(0, "CarSkill", mySQLDB);
Player[playerid][pJackSkill] = cache_get_field_content_int(0, "JackSkill", mySQLDB);
Player[playerid][pRobSkill] = cache_get_field_content_int(0, "RobSkill", mySQLDB);
Player[playerid][pRobHouseSkill] = cache_get_field_content_int(0, "RobHouseSkill", mySQLDB);
Player[playerid][pTimePizdanul] = cache_get_field_content_int(0, "TimePizdanul", mySQLDB);
Player[playerid][pRobHouseTime] = cache_get_field_content_int(0, "RobHouseTime", mySQLDB);
Player[playerid][pMechSkill] = cache_get_field_content_int(0, "MechSkill", mySQLDB);
Player[playerid][pTruckSkill] = cache_get_field_content_int(0, "TruckSkill", mySQLDB);
Player[playerid][pDetSkill] = cache_get_field_content_int(0, "DetSkill", mySQLDB);
Player[playerid][pHeadValue] = cache_get_field_content_int(0, "HeadValue", mySQLDB);
Player[playerid][pHunterValue] = cache_get_field_content_int(0, "HunterValue", mySQLDB);
Player[playerid][pTruckETime] = cache_get_field_content_int(0, "TruckETime", mySQLDB);
Player[playerid][pPayDay] = cache_get_field_content_int(0, "PayDay", mySQLDB);
Player[playerid][pWarns] = cache_get_field_content_int(0, "Warns", mySQLDB);
Player[playerid][pBoxing] = bool:cache_get_field_content_int(0, "Boxing", mySQLDB);
Player[playerid][pKunfu] = bool:cache_get_field_content_int(0, "Kunfu", mySQLDB);
Player[playerid][pKneehead] = bool:cache_get_field_content_int(0, "Kneehead", mySQLDB);
Player[playerid][pGrabkick] = bool:cache_get_field_content_int(0, "Grabkick", mySQLDB);
Player[playerid][pFStyle] = cache_get_field_content_int(0, "FStyle", mySQLDB);
Player[playerid][pRope] = bool:cache_get_field_content_int(0, "Rope", mySQLDB);
Player[playerid][pCheatPassword] = bool:cache_get_field_content_int(0, "CheatPassword", mySQLDB);
Player[playerid][pGPS] = bool:cache_get_field_content_int(0, "GPS", mySQLDB);
Player[playerid][pSigs] = cache_get_field_content_int(0, "Sigs", mySQLDB);
Player[playerid][pPivo] = cache_get_field_content_int(0, "Pivo", mySQLDB);
Player[playerid][pWanted] = cache_get_field_content_int(0, "Wanted", mySQLDB);
Player[playerid][pRobTime] = cache_get_field_content_int(0, "RobTime", mySQLDB);
Player[playerid][pJackTime] = cache_get_field_content_int(0, "JackTime", mySQLDB);
Player[playerid][pAdminOnline] = cache_get_field_content_int(0, "AdminOnline", mySQLDB);
SetPVarInt(playerid,"pVip",cache_get_field_content_int(0, "Vip", mySQLDB));
Player[playerid][pDonate] = cache_get_field_content_int(0, "Donate", mySQLDB);
Player[playerid][pKvest_1] = bool:cache_get_field_content_int(0, "Kvest_1", mySQLDB);
Player[playerid][pKvest_2] = bool:cache_get_field_content_int(0, "Kvest_2", mySQLDB);
Player[playerid][pKvest_3] = bool:cache_get_field_content_int(0, "Kvest_3", mySQLDB);
Player[playerid][pKvest_4] = bool:cache_get_field_content_int(0, "Kvest_4", mySQLDB);
Player[playerid][pKvest_5] = bool:cache_get_field_content_int(0, "Kvest_5", mySQLDB);
Player[playerid][pKvest_6] = bool:cache_get_field_content_int(0, "Kvest_6", mySQLDB);
Player[playerid][pKvest_7] = bool:cache_get_field_content_int(0, "Kvest_7", mySQLDB);
Player[playerid][pKvest_8] = bool:cache_get_field_content_int(0, "Kvest_8", mySQLDB);
Player[playerid][pKvest_9] = bool:cache_get_field_content_int(0, "Kvest_9", mySQLDB);
Player[playerid][pKvest_10] = bool:cache_get_field_content_int(0, "Kvest_10", mySQLDB);
Player[playerid][pKvest_11] = bool:cache_get_field_content_int(0, "Kvest_11", mySQLDB);
Player[playerid][pKvest_12] = bool:cache_get_field_content_int(0, "Kvest_12", mySQLDB);
cache_get_field_content(0, "Repost", Player[playerid][pRepost]);
Player[playerid][pAdminLeader] = bool:cache_get_field_content_int(0, "AdmLeader", mySQLDB);
Player[playerid][pAdminBan] = bool:cache_get_field_content_int(0, "AdmBan", mySQLDB);
Player[playerid][pAdminSkripter] = bool:cache_get_field_content_int(0, "AdmSkript", mySQLDB);
Player[playerid][pJailBlock] = bool:cache_get_field_content_int(0, "JailPrice", mySQLDB);
Player[playerid][pFMuteTime] = cache_get_field_content_int(0, "Fmute", mySQLDB);
Player[playerid][pFrisk] = cache_get_field_content_int(0, "Frisk", mySQLDB);
cache_get_field_content(0, "Apass", Player[playerid][pApass]);
Player[playerid][pADostup] = bool:cache_get_field_content_int(0, "ADostup", mySQLDB);
SetPVarInt(playerid,"JoKvestStep",cache_get_field_content_int(0, "JoStep", mySQLDB));
SetPVarInt(playerid, "pLogged",1);
Logged[playerid] = true;
DisablePlayerCheckpoint(playerid);
new ip[MAX_PLAYER_NAME];
GetPlayerIp(playerid,ip,sizeof(ip));
ConnectIP[playerid] = ip;
if (Player[playerid][pAdmin] == 0)
{
f(string, "Ïîäêëþ÷åíèå: %s[%d] || IP: {FFFFFF}%s", sendername(playerid),playerid,ip);
ABroadCast(COLOR_GREY,string,1);
}
if (Player[playerid][pAdmin] != 0)
{
f(string, "Ïîäêëþ÷åíèå: %s[%d] || IP: {00D900}%s", sendername(playerid),playerid,ip);
ABroadCast(COLOR_GREY,string,1);
}
for(new i=1; i <= HOME; i++)
{
if(!strcmp(HouseInfo[i][hOwner],sendername(playerid),true) && HouseInfo[i][hOwned] == 1)
{
Player[playerid][pPhousekey] = i;
break;
}
}
/*mysql_format(mySQLDB,string, sizeof(string), "SELECT ID FROM house WHERE Owner = '%s'", sendername(playerid));
mysql_function_query(mySQLDB, string, true, "CallbackGiveHouse", "d", playerid);*/
SetPlayerScore(playerid, GetPVarInt(playerid, "pLevel"));
SetPlayerWantedLevel(playerid,Player[playerid][pWanted]);
TextDrawShowForPlayer(playerid,ServerTime);
TextDrawShowForPlayer(playerid,ServerDate);
TextDrawShowForPlayer(playerid,ServerLogo);
SetPlayerColor(playerid,0xFFFFFF80);
TeleportTime[playerid] = 10;
DisablePlayerCheckpoint(playerid);
PMOnline[playerid] = false;
SpawnPlayer(playerid),OnPlayerReSpawn(playerid);
if(Player[playerid][pAdmin] != 0)send(playerid,0xFFFF00AA,"Äëÿ ïîëó÷åíèÿ àäìèíèñòðàòîðñêèõ ïðàâ, èñïîëüçóéòå êîìàíäó ''/aduty''.");
//Ïðîâåðêà íà ëè÷íûé êàð.
//new CarCheckString[128];
//mysql_format(mySQLDB,CarCheckString, sizeof(CarCheckString), "SELECT * FROM "TABLE_VEHICLE_PLAYER" WHERE `Owner` = '%s'", sendername(playerid));
//mysql_function_query(mySQLDB, string, true, "LoadPlayerAuto", "d", playerid);
//send(playerid,COLOR_ANTICHEAT,"[UniteD: Guard] {ffffff}Èä¸ò ïîèñê ëè÷íûõ àâòî ïðèâÿçàííûõ ê âàøåìó àêêàóíòó...");
return true;
}
else
{
ErrorPas[playerid]++;
f(string,"[ÎØÈÁÊÀ] {FFFFFF}Íåâåðíûé ïàðîëü. Îñòàëîñü ïîïûòîê: {FF0000}%d{FFFFFF}.",3-ErrorPas[playerid]);
send(playerid,0xFF0000AA,string);
if(ErrorPas[playerid] >= 3)
{
switch(GetPVarInt(playerid,"Sex"))
{
case 1:f(string,"Àíòè÷èò: %s[%d] áûë êèêíóò. Ïðè÷èíà: Ïîäáîð ïàðîëÿ.",Player[playerid][pName],playerid);
case 2:f(string,"Àíòè÷èò: %s[%d] áûëà êèêíóòà. Ïðè÷èíà: Ïîäáîð ïàðîëÿ.",Player[playerid][pName],playerid);
}
ABroadCast(0xFFFF00AA,string,1);
send(playerid,0xFFFF00AA,"Âû áûëè êèêíóòû àíòè÷èòîì. Ïðè÷èíà: Ïîäáîð ïàðîëÿ.");
SetTimerEx("KickFix",1000,0,"i",playerid);
return true;
}
ShowLogin(playerid);
}
return false;
}