Jump to content

1Shot

Membru
  • Content Count

    65
  • Joined

  • Last visited

Community Reputation

0 Neutru

About 1Shot

  • Rank
    Membru junior

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. 1Shot

    Ofer Servicii Scripting

    Ma numesc Mihai, am 22 de ani, ofer servicii scripting de calitate, cunosc foarte bine limbajul pawn. Pot face sisteme unice la preturi rezonabile/negociabile. Ofer si cer seriozitate. Ma puteti contacta prin mesaj privat / skype: remusmihai99 / discord: oneshot#5822 Metode de plata: Paysafe, Paypal, transfer bancar
  2. 1Shot

    Exploit Panel

    Salut. Cum as putea sa pun pe panel-ul meu sa nu mai poata fi postate link-uri cu cookie grabber? Multumesc.
  3. 1Shot

    Problema top

    Salut. Cum as putea sa fac un script care sa-mi arate Jucatorul cu cea mai mare variabila, gen Damage[playerid]; Si sa imi arate jucatorul care are cea mai mare valoare la Damage[playerid]; Atat, doar primul, cel mai mare. (Fara mysql, doar variabila temporara) Ma poate ajuta cineva? multumesc
  4. 1Shot

    Panel

    cineva ?
  5. 1Shot

    Panel

    Salut. Cine imi poata adapta un panel burned la gamemode-ul meu (burned editat) contra cost?
  6. 1Shot

    Problema Top

    Can someone help me?
  7. 1Shot

    Ajutor Script

    Can someone help me?
  8. 1Shot

    Problema Top

    Salut. Cum as putea sa fac scriptez o comanda care sa imi arate un top (Loc 1. Loc 2. si Loc 3.) al vehiculelor in functie de cati KM au (odometer) ?
  9. 1Shot

    Ajutor Script

    Salut. Vreau sa fac un script si nu prea ma descurc, nu este ceva greu doar ca nu imi trece prin cap... As vrea ca daca cineva scrie in chat @text , acest "@text" sa apara cu rosu... ca un tag De exemplu eu scriu in chat: "Ba @1Shot , vino la mine!" - text-ul @1Shot sa apara cu culoarea FF0000. Cam asta as vrea, stiu ca trebuie sa verific daca in string se afla caracterul "@", dar cum fac ca textul lipit de "@" sa fie rosu ? Multumesc.
  10. 1Shot

    Viteza Maxima

    Nu merg link-urile de download...
  11. 1Shot

    Viteza Maxima

    Salut. Cum as putea sa maresc viteza maxima la un vehicul? De exemplu, daca jucatorul are un Infernus VIP, viteza Infernusului sa creasca pana la 250, in loc de 222.
  12. 1Shot

    Problema baza de date

    Ma poate ajuta cineva?
  13. 1Shot

    Problema baza de date

    Imi apar aceste erori in mysql_log, de ce? [16:23:48] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('0') [16:23:57] [WARNING] CMySQLResult::GetRowDataByName - field not found ("Fishes") [16:23:57] [WARNING] CMySQLResult::GetRowDataByName - field not found ("RFishes") [16:23:57] [WARNING] CMySQLResult::GetRowDataByName - field not found ("HeadValue") [16:23:57] [WARNING] CMySQLResult::GetRowDataByName - field not found ("SexSkill") [16:23:57] [WARNING] CMySQLResult::GetRowDataByName - field not found ("LawSkill") [16:23:57] [WARNING] CMySQLResult::GetRowDataByName - field not found ("MechSkill") [16:23:57] [WARNING] CMySQLResult::GetRowDataByName - field not found ("NewsSkill") [16:23:57] [WARNING] CMySQLResult::GetRowDataByName - field not found ("DrugsSkill") [16:23:57] [WARNING] CMySQLResult::GetRowDataByName - field not found ("RobSkill") [16:23:57] [WARNING] CMySQLResult::GetRowDataByName - field not found ("pHealth") [16:23:57] [WARNING] CMySQLResult::GetRowDataByName - field not found ("Inter") [16:23:57] [WARNING] CMySQLResult::GetRowDataByName - field not found ("Local") [16:23:57] [WARNING] CMySQLResult::GetRowDataByName - field not found ("Married") [16:23:57] [WARNING] CMySQLResult::GetRowDataByName - field not found ("MarriedTo") [16:23:57] [WARNING] CMySQLResult::GetRowDataByName - field not found ("HitT") [16:23:57] [WARNING] CMySQLResult::GetRowDataByName - field not found ("referralp") [16:23:57] [WARNING] CMySQLResult::GetRowDataByName - field not found ("ClanWarn") [16:23:57] [WARNING] CMySQLResult::GetRowDataByName - field not found ("Pin") [16:24:37] [WARNING] CMySQLResult::GetRowDataByName - field not found ("Fishes") [16:24:37] [WARNING] CMySQLResult::GetRowDataByName - field not found ("RFishes") [16:24:37] [WARNING] CMySQLResult::GetRowDataByName - field not found ("HeadValue") [16:24:37] [WARNING] CMySQLResult::GetRowDataByName - field not found ("SexSkill") [16:24:37] [WARNING] CMySQLResult::GetRowDataByName - field not found ("LawSkill") [16:24:37] [WARNING] CMySQLResult::GetRowDataByName - field not found ("MechSkill") [16:24:37] [WARNING] CMySQLResult::GetRowDataByName - field not found ("NewsSkill") [16:24:37] [WARNING] CMySQLResult::GetRowDataByName - field not found ("DrugsSkill") [16:24:37] [WARNING] CMySQLResult::GetRowDataByName - field not found ("RobSkill") [16:24:37] [WARNING] CMySQLResult::GetRowDataByName - field not found ("pHealth") [16:24:37] [WARNING] CMySQLResult::GetRowDataByName - field not found ("Inter") [16:24:37] [WARNING] CMySQLResult::GetRowDataByName - field not found ("Local") [16:24:37] [WARNING] CMySQLResult::GetRowDataByName - field not found ("Married") [16:24:37] [WARNING] CMySQLResult::GetRowDataByName - field not found ("MarriedTo") [16:24:37] [WARNING] CMySQLResult::GetRowDataByName - field not found ("HitT") [16:24:37] [WARNING] CMySQLResult::GetRowDataByName - field not found ("referralp") [16:24:37] [WARNING] CMySQLResult::GetRowDataByName - field not found ("ClanWarn") [16:24:37] [WARNING] CMySQLResult::GetRowDataByName - field not found ("Pin")
  14. 1Shot

    Ticks

    Am si eu o intrebare. Este bine sa ai Ticks: multe sau putine ?
  15. 1Shot

    Problema baza de date

    @SherKan function OnPlayerLogin(playerid,password[]) { new playername2[MAX_PLAYER_NAME]; GetPlayerName(playerid, playername2, sizeof(playername2)); new qstr[100]; new result[456]; format(qstr,100,"SELECT * FROM users WHERE `name`='%s' AND `password`='%s'",playername2,password); mysql_query(SQL,qstr); mysql_store_result(); if(mysql_num_rows() > 0) { if(mysql_retrieve_row()) { GameTextForPlayer(playerid, "~r~Loading account...", 20000, 4); PlayerTextdraws(playerid); mysql_fetch_field_row(result,"password"); format(PlayerInfo[playerid][pKey], 128, result); mysql_fetch_field_row(result,"SpinPoints"); PlayerInfo[playerid][pSpinPoints] = strval(result); mysql_fetch_field_row(result,"PetName"); format(PlayerInfo[playerid][pPetName], 100, result); mysql_fetch_field_row(result,"Level"); PlayerInfo[playerid][pLevel] = strval( result ); mysql_fetch_field_row(result,"Admin"); PlayerInfo[playerid][pAdmin] = strval( result ); mysql_fetch_field_row(result,"Backpack"); PlayerInfo[playerid][pBackpack] = strval( result ); mysql_fetch_field_row(result,"Propose"); format(PlayerInfo[playerid][pPropose], 64, result); mysql_fetch_field_row(result,"ShowProgress1"); PlayerInfo[playerid][pShowProgress][0] = strval( result ); mysql_fetch_field_row(result,"ShowProgress2"); PlayerInfo[playerid][pShowProgress][1] = strval( result ); SetPVarInt(playerid, "AdminLevel", PlayerInfo[playerid][pAdmin]); mysql_fetch_field_row(result,"PetLevel"); PlayerInfo[playerid][pPetLevel] = strval( result ); mysql_fetch_field_row(result,"PetPoints"); PlayerInfo[playerid][pPetPoints] = strval( result ); mysql_fetch_field_row(result,"PetStatus"); PlayerInfo[playerid][pPetStatus] = strval( result ); mysql_fetch_field_row(result,"Pet"); PlayerInfo[playerid][pPet] = strval( result ); mysql_fetch_field_row(result,"DM"); PlayerInfo[playerid][pDM] = strval( result ); mysql_fetch_field_row(result,"Vip"); PlayerInfo[playerid][pVip] = strval( result ); mysql_fetch_field_row(result,"Helper"); PlayerInfo[playerid][pHelper] = strval( result ); mysql_fetch_field_row(result,"Premium"); PlayerInfo[playerid][pPremiumAccount] = strval( result ); mysql_fetch_field_row(result,"ConnectedTime"); PlayerInfo[playerid][pConnectTime] = floatstr( result ); mysql_fetch_field_row(result,"Registered"); PlayerInfo[playerid][pReg] = strval( result ); mysql_fetch_field_row(result,"Sex"); PlayerInfo[playerid][pSex] = strval( result ); mysql_fetch_field_row(result,"Age"); PlayerInfo[playerid][pAge] = strval( result ); mysql_fetch_field_row(result,"Muted"); PlayerInfo[playerid][pMuted] = strval( result ); mysql_fetch_field_row(result,"MuteTime"); PlayerInfo[playerid][pMuteTime] = strval( result ); mysql_fetch_field_row(result,"Respect"); PlayerInfo[playerid][pExp] = strval( result ); mysql_fetch_field_row(result,"Money"); PlayerInfo[playerid][pCash] = strval( result ); mysql_fetch_field_row(result,"Bank"); PlayerInfo[playerid][pAccount] = strval( result ); mysql_fetch_field_row(result,"Crimes"); PlayerInfo[playerid][pCrimes] = strval( result ); mysql_fetch_field_row(result,"Kills"); PlayerInfo[playerid][pKills] = strval( result ); mysql_fetch_field_row(result,"Deaths"); PlayerInfo[playerid][pDeaths] = strval( result ); mysql_fetch_field_row(result,"Arrested"); PlayerInfo[playerid][pArrested] = strval( result ); mysql_fetch_field_row(result,"WantedDeaths"); PlayerInfo[playerid][pWantedDeaths] = strval( result ); mysql_fetch_field_row(result,"Phonebook"); PlayerInfo[playerid][pPhoneBook] = strval( result ); mysql_fetch_field_row(result,"LottoNr"); PlayerInfo[playerid][pLottoNr] = strval( result ); mysql_fetch_field_row(result,"WantedLevel"); PlayerInfo[playerid][pWantedLevel] = strval( result ); mysql_fetch_field_row(result,"Fishes"); PlayerInfo[playerid][pFishes] = strval( result ); mysql_fetch_field_row(result,"RFishes"); PlayerInfo[playerid][pRFishes] = strval( result ); mysql_fetch_field_row(result,"Job"); PlayerInfo[playerid][pJob] = strval( result ); mysql_fetch_field_row(result,"Paycheck"); PlayerInfo[playerid][pPayCheck] = strval( result ); mysql_fetch_field_row(result,"HeadValue"); PlayerInfo[playerid][pHeadValue] = strval( result ); mysql_fetch_field_row(result,"Jailed"); PlayerInfo[playerid][pJailed] = strval( result ); mysql_fetch_field_row(result,"JailTime"); PlayerInfo[playerid][pJailTime] = strval( result ); mysql_fetch_field_row(result,"Materials"); PlayerInfo[playerid][pMats] = strval( result ); mysql_fetch_field_row(result,"Drugs"); PlayerInfo[playerid][pDrugs] = strval( result ); mysql_fetch_field_row(result,"Leader"); PlayerInfo[playerid][pLeader] = strval( result ); mysql_fetch_field_row(result,"Member"); PlayerInfo[playerid][pMember] = strval( result ); mysql_fetch_field_row(result,"Rank"); PlayerInfo[playerid][pRank] = strval( result ); mysql_fetch_field_row(result,"CChar"); PlayerInfo[playerid][pChar] = strval( result ); mysql_fetch_field_row(result,"FWarn"); PlayerInfo[playerid][pFACWarns] = strval( result ); mysql_fetch_field_row(result,"FPunish"); PlayerInfo[playerid][pFpunish] = strval( result ); mysql_fetch_field_row(result,"Acceptpoints"); PlayerInfo[playerid][pLawyer] = strval( result ); mysql_fetch_field_row(result,"SexSkill"); PlayerInfo[playerid][pSexSkill] = strval( result ); mysql_fetch_field_row(result,"LawSkill"); PlayerInfo[playerid][pLawSkill] = strval( result ); mysql_fetch_field_row(result,"MechSkill"); PlayerInfo[playerid][pMechSkill] = strval( result ); mysql_fetch_field_row(result,"NewsSkill"); PlayerInfo[playerid][pNewsSkill] = strval( result ); mysql_fetch_field_row(result,"DrugsSkill"); PlayerInfo[playerid][pDrugsSkill] = strval( result ); mysql_fetch_field_row(result,"MowerSkill"); PlayerInfo[playerid][pWoodSkill] = strval( result ); mysql_fetch_field_row(result,"StivuitorSkill"); PlayerInfo[playerid][pStivuitorSkill] = strval( result ); mysql_fetch_field_row(result,"TruckerSkill"); PlayerInfo[playerid][pTruckerSkill] = strval( result ); mysql_fetch_field_row(result,"IceSkill"); PlayerInfo[playerid][pJackerSkill] = strval( result ); mysql_fetch_field_row(result,"GarbageSkill"); PlayerInfo[playerid][pGarbageSkill] = strval( result ); mysql_fetch_field_row(result,"FarmerSkill"); PlayerInfo[playerid][pFarmerSkill] = strval( result ); mysql_fetch_field_row(result,"FishSkill"); PlayerInfo[playerid][pFishSkill] = strval( result ); mysql_fetch_field_row(result,"MatSkill"); PlayerInfo[playerid][pMatSkill] = strval( result ); mysql_fetch_field_row(result,"RobSkill"); PlayerInfo[playerid][pRobSkill] = strval( result ); mysql_fetch_field_row(result,"pHealth"); PlayerInfo[playerid][pHealth] = floatstr( result ); mysql_fetch_field_row(result,"Inter"); PlayerInfo[playerid][pInt] = strval( result ); mysql_fetch_field_row(result,"Local"); PlayerInfo[playerid][pLocal] = strval( result ); mysql_fetch_field_row(result,"Team"); PlayerInfo[playerid][pTeam] = strval( result ); mysql_fetch_field_row(result,"Model"); PlayerInfo[playerid][pModel] = strval( result ); mysql_fetch_field_row(result,"PhoneNr"); PlayerInfo[playerid][pPhone] = strval( result ); mysql_fetch_field_row(result,"House"); PlayerInfo[playerid][pHouse] = strval( result ); mysql_fetch_field_row(result,"Bizz"); PlayerInfo[playerid][pBizz] = strval( result ); mysql_fetch_field_row(result,"Rob"); PlayerInfo[playerid][pRob] = strval( result ); mysql_fetch_field_row(result,"CarLicT"); PlayerInfo[playerid][pCarLicT] = strval( result ); mysql_fetch_field_row(result,"CarLic"); PlayerInfo[playerid][pCarLic] = strval( result ); mysql_fetch_field_row(result,"FlyLicT"); PlayerInfo[playerid][pFlyLicT] = strval( result ); mysql_fetch_field_row(result,"FlyLic"); PlayerInfo[playerid][pFlyLic] = strval( result ); mysql_fetch_field_row(result,"BoatLicT"); PlayerInfo[playerid][pBoatLicT] = strval( result ); mysql_fetch_field_row(result,"BoatLic"); PlayerInfo[playerid][pBoatLic] = strval( result ); mysql_fetch_field_row(result,"FishLicT"); PlayerInfo[playerid][pFishLicT] = strval( result ); mysql_fetch_field_row(result,"FishLic"); PlayerInfo[playerid][pFishLic] = strval( result ); mysql_fetch_field_row(result,"GunLicT"); PlayerInfo[playerid][pGunLicT] = strval( result ); mysql_fetch_field_row(result,"GunLic"); PlayerInfo[playerid][pGunLic] = strval( result ); mysql_fetch_field_row(result,"PayDay"); PlayerInfo[playerid][pPayDay] = strval( result ); mysql_fetch_field_row(result,"PayDayHad"); PlayerInfo[playerid][pPayDayHad] = strval( result ); mysql_fetch_field_row(result,"Tutorial"); PlayerInfo[playerid][pTut] = strval( result ); mysql_fetch_field_row(result,"Warnings"); PlayerInfo[playerid][pWarns] = strval( result ); mysql_fetch_field_row(result,"Rented"); PlayerInfo[playerid][pRented] = strval( result ); mysql_fetch_field_row(result,"Fuel"); PlayerInfo[playerid][pFuel] = strval( result ); mysql_fetch_field_row(result,"Married"); PlayerInfo[playerid][pMarried] = strval( result ); mysql_fetch_field_row(result,"MarriedTo"); strmid(PlayerInfo[playerid][pMarriedTo], result, 0, strlen(result), 255); mysql_fetch_field_row(result,"WTalkie"); PlayerInfo[playerid][pWTalkie] = strval( result ); mysql_fetch_field_row(result,"Lighter"); PlayerInfo[playerid][pLighter] = strval( result ); mysql_fetch_field_row(result,"Cigarettes"); PlayerInfo[playerid][pCigarettes] = strval( result ); mysql_fetch_field_row(result,"Email"); strmid(PlayerInfo[playerid][pEmail], result, 0, strlen(result), 255); mysql_fetch_field_row(result,"RegisterDate"); strmid(PlayerInfo[playerid][pRegistredDate], result, 0, strlen(result), 255); mysql_fetch_field_row(result,"Banned"); PlayerInfo[playerid][pBanned] = strval( result ); mysql_fetch_field_row(result,"Radio2"); PlayerInfo[playerid][pMP3] = strval( result ); mysql_fetch_field_row(result,"HitT"); PlayerInfo[playerid][pHitT] = strval( result ); mysql_fetch_field_row(result,"CRank"); PlayerInfo[playerid][pCRank] = strval( result ); mysql_fetch_field_row(result,"WantedTime"); WantedTime[playerid] = strval( result ); //mysql_fetch_field_row(result,"Phone"); PlayerInfo[playerid][pPhone] = strval( result ); mysql_fetch_field_row(result,"id"); PlayerInfo[playerid][pSQLID] = strval( result ); mysql_fetch_field_row(result,"WarTurf"); new turf = strval( result ); mysql_fetch_field_row(result,"WarKills"); ucideri[playerid][turf] = strval( result ); mysql_fetch_field_row(result,"WarDeaths"); decese[playerid][turf] = strval( result ); WarKills[playerid] = ucideri[playerid][turf]; WarDeaths[playerid] = decese[playerid][turf]; mysql_fetch_field_row(result,"Referral"); PlayerInfo[playerid][pReferral] = strval( result ); mysql_fetch_field_row(result,"ReferralRP"); PlayerInfo[playerid][pReferralRP] = strval( result ); mysql_fetch_field_row(result,"ReferralMoney"); PlayerInfo[playerid][pReferralMoney] = strval( result ); mysql_fetch_field_row(result,"referralp"); PlayerInfo[playerid][pReferralP] = strval( result ); mysql_fetch_field_row(result,"Victim"); strmid(PlayerInfo[playerid][pVictim], result, 0, strlen(result), 255); mysql_fetch_field_row(result,"Accused"); strmid(PlayerInfo[playerid][pAccused], result, 0, strlen(result), 255); mysql_fetch_field_row(result,"Crime1"); strmid(PlayerInfo[playerid][pCrime1], result, 0, strlen(result), 255); mysql_fetch_field_row(result,"Crime2"); strmid(PlayerInfo[playerid][pCrime2], result, 0, strlen(result), 255); mysql_fetch_field_row(result,"Crime3"); strmid(PlayerInfo[playerid][pCrime3], result, 0, strlen(result), 255); mysql_fetch_field_row(result,"BTemp"); PlayerInfo[playerid][pBTemp] = strval( result ); mysql_fetch_field_row(result,"BYear"); PlayerInfo[playerid][pBYear] = strval( result ); mysql_fetch_field_row(result,"BMonth"); PlayerInfo[playerid][pBMonth] = strval( result ); mysql_fetch_field_row(result,"BDay"); PlayerInfo[playerid][pBDay] = strval( result ); mysql_fetch_field_row(result,"BBy"); strmid(PlayerInfo[playerid][pBBy], result, 0, strlen(result), 255); mysql_fetch_field_row(result,"BReason"); strmid(PlayerInfo[playerid][pBReason], result, 0, strlen(result), 255); mysql_fetch_field_row(result,"ALeader"); PlayerInfo[playerid][pALeader] = strval( result ); mysql_fetch_field_row(result,"ShowJob"); PlayerInfo[playerid][pShowJob] = strval( result ); mysql_fetch_field_row(result,"GiftPoints"); PlayerInfo[playerid][pGiftPoints] = strval( result ); mysql_fetch_field_row(result,"NewbieMute"); PlayerInfo[playerid][pNewbieMute] = strval( result ); mysql_fetch_field_row(result,"ReportTime"); PlayerInfo[playerid][pReportTime] = strval( result ); mysql_fetch_field_row(result, "WTChannel"); WTChannel[playerid] = strval( result ); mysql_fetch_field_row(result,"HelpedPlayers"); PlayerInfo[playerid][pHelpedPlayers] = strval( result ); mysql_fetch_field_row(result,"HelpedPlayersToday"); PlayerInfo[playerid][pHelpedPlayersToday] = strval( result ); mysql_fetch_field_row(result,"ShowFP"); PlayerInfo[playerid][pShowFP] = strval( result ); mysql_fetch_field_row(result,"ShowLogo"); PlayerInfo[playerid][pShowLogo] = strval( result ); mysql_fetch_field_row(result,"ShowCeas"); PlayerInfo[playerid][pShowCeas] = strval( result ); mysql_fetch_field_row(result,"GoldPoints"); PlayerInfo[playerid][pPremiumPoints] = strval( result ); // tog NewbieChat[playerid] = cache_get_field_content_int(0, "NewbieChat", SQL); toglc[playerid] = cache_get_field_content_int(0, "TogLC", SQL); gFam[playerid] = cache_get_field_content_int(0, "TogFC", SQL); WTToggle[playerid] = cache_get_field_content_int(0, "TogWT", SQL); HidePM[playerid] = cache_get_field_content_int(0, "HidePM", SQL); gNews[playerid] = cache_get_field_content_int(0, "TogNews", SQL); toglicitatie[playerid] = cache_get_field_content_int(0, "TogLicitatie", SQL); togclan[playerid] = cache_get_field_content_int(0, "TogClan", SQL); togvip[playerid] = cache_get_field_content_int(0, "TogVip", SQL); togevent[playerid] = cache_get_field_content_int(0, "TogEvent", SQL); togding[playerid] = cache_get_field_content_int(0, "TogDing", SQL); togsurf[playerid] = cache_get_field_content_int(0, "TogSurf", SQL); tograport[playerid] = cache_get_field_content_int(0, "TogRaport", SQL); togalert[playerid] = cache_get_field_content_int(0, "TogAlert", SQL); togjob[playerid] = 0; //togjob[playerid] = cache_get_field_content_int(0, "TogJob", SQL); // Aici togfind[playerid] = cache_get_field_content_int(0, "TogFind", SQL); PhoneOnline[playerid] = cache_get_field_content_int(0, "PhoneOnline", SQL); mysql_fetch_field_row(result,"Clan"); PlayerInfo[playerid][pClan] = strval( result ); mysql_fetch_field_row(result,"Tag"); PlayerInfo[playerid][pTag] = strval( result ); mysql_fetch_field_row(result,"ClanRank"); PlayerInfo[playerid][pClanRank] = strval( result ); mysql_fetch_field_row(result,"ClanWarn"); PlayerInfo[playerid][pClanWarn] = strval( result ); mysql_fetch_field_row(result,"ClanDays"); PlayerInfo[playerid][pClanDays] = strval( result ); mysql_fetch_field_row(result,"InvalidCommands"); PlayerInfo[playerid][pInvalidCommands] = strval( result ); mysql_fetch_field_row(result,"Commands"); PlayerInfo[playerid][pCommands][0] = strval( result ); mysql_fetch_field_row(result,"Commands2"); PlayerInfo[playerid][pCommands][1] = strval( result ); mysql_fetch_field_row(result,"Commands3"); PlayerInfo[playerid][pCommands][2] = strval( result ); mysql_fetch_field_row(result,"Commands4"); PlayerInfo[playerid][pCommands][3] = strval( result ); mysql_fetch_field_row(result,"Commands5"); PlayerInfo[playerid][pCommands][4] = strval( result ); if(SpecialWeek == 1) { new questsvar[1028]; cache_get_field_content(0, "SpecialQuest", result); format(questsvar, 256, result); sscanf(questsvar, "p<|>iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii", PlayerInfo[playerid][pSpecialQuest][0], PlayerInfo[playerid][pSpecialQuest][1], PlayerInfo[playerid][pSpecialQuest][2], PlayerInfo[playerid][pSpecialQuest][3], PlayerInfo[playerid][pSpecialQuest][4], PlayerInfo[playerid][pSpecialQuest][5], PlayerInfo[playerid][pSpecialQuest][6], PlayerInfo[playerid][pSpecialQuest][7], PlayerInfo[playerid][pSpecialQuest][8], PlayerInfo[playerid][pSpecialQuest][9], PlayerInfo[playerid][pSpecialQuest][10], PlayerInfo[playerid][pSpecialQuest][11], PlayerInfo[playerid][pSpecialQuest][12], PlayerInfo[playerid][pSpecialQuest][13], PlayerInfo[playerid][pSpecialQuest][14], PlayerInfo[playerid][pSpecialQuest][15], PlayerInfo[playerid][pSpecialQuest][16], PlayerInfo[playerid][pSpecialQuest][17], PlayerInfo[playerid][pSpecialQuest][18], PlayerInfo[playerid][pSpecialQuest][19], PlayerInfo[playerid][pSpecialQuest][20], PlayerInfo[playerid][pSpecialQuest][21], PlayerInfo[playerid][pSpecialQuest][22], PlayerInfo[playerid][pSpecialQuest][23], PlayerInfo[playerid][pSpecialQuest][24], PlayerInfo[playerid][pSpecialQuest][25], PlayerInfo[playerid][pSpecialQuest][26], PlayerInfo[playerid][pSpecialQuest][27], PlayerInfo[playerid][pSpecialQuest][28], PlayerInfo[playerid][pSpecialQuest][29], PlayerInfo[playerid][pSpecialQuest][30], PlayerInfo[playerid][pSpecialQuest][31], PlayerInfo[playerid][pSpecialQuest][32], PlayerInfo[playerid][pSpecialQuest][33], PlayerInfo[playerid][pSpecialQuest][34], PlayerInfo[playerid][pSpecialQuest][35], PlayerInfo[playerid][pSpecialQuest][36], PlayerInfo[playerid][pSpecialQuest][37], PlayerInfo[playerid][pSpecialQuest][38], PlayerInfo[playerid][pSpecialQuest][39], PlayerInfo[playerid][pSpecialQuest][40], PlayerInfo[playerid][pSpecialQuest][41], PlayerInfo[playerid][pSpecialQuest][42], PlayerInfo[playerid][pSpecialQuest][43], PlayerInfo[playerid][pSpecialQuest][44], PlayerInfo[playerid][pSpecialQuest][45], PlayerInfo[playerid][pSpecialQuest][46], PlayerInfo[playerid][pSpecialQuest][47], PlayerInfo[playerid][pSpecialQuest][48], PlayerInfo[playerid][pSpecialQuest][49], PlayerInfo[playerid][pSpecialQuest][50], PlayerInfo[playerid][pSpecialQuest][51], PlayerInfo[playerid][pSpecialQuest][52], PlayerInfo[playerid][pSpecialQuest][53], PlayerInfo[playerid][pSpecialQuest][54], PlayerInfo[playerid][pSpecialQuest][55], PlayerInfo[playerid][pSpecialQuest][56], PlayerInfo[playerid][pSpecialQuest][57], PlayerInfo[playerid][pSpecialQuest][58], PlayerInfo[playerid][pSpecialQuest][59], PlayerInfo[playerid][pSpecialQuest][60], PlayerInfo[playerid][pSpecialQuest][61], PlayerInfo[playerid][pSpecialQuest][62], PlayerInfo[playerid][pSpecialQuest][63], PlayerInfo[playerid][pSpecialQuest][64], PlayerInfo[playerid][pSpecialQuest][65], PlayerInfo[playerid][pSpecialQuest][66], PlayerInfo[playerid][pSpecialQuest][67], PlayerInfo[playerid][pSpecialQuest][68], PlayerInfo[playerid][pSpecialQuest][69], PlayerInfo[playerid][pSpecialQuest][70], PlayerInfo[playerid][pSpecialQuest][71], PlayerInfo[playerid][pSpecialQuest][72], PlayerInfo[playerid][pSpecialQuest][73], PlayerInfo[playerid][pSpecialQuest][74], PlayerInfo[playerid][pSpecialQuest][75], PlayerInfo[playerid][pSpecialQuest][76], PlayerInfo[playerid][pSpecialQuest][77], PlayerInfo[playerid][pSpecialQuest][78], PlayerInfo[playerid][pSpecialQuest][79], PlayerInfo[playerid][pSpecialQuest][80], PlayerInfo[playerid][pSpecialQuest][81], PlayerInfo[playerid][pSpecialQuest][82], PlayerInfo[playerid][pSpecialQuest][83], PlayerInfo[playerid][pSpecialQuest][84], PlayerInfo[playerid][pSpecialQuest][85], PlayerInfo[playerid][pSpecialQuest][86], PlayerInfo[playerid][pSpecialQuest][87], PlayerInfo[playerid][pSpecialQuest][88], PlayerInfo[playerid][pSpecialQuest][89], PlayerInfo[playerid][pSpecialQuest][90], PlayerInfo[playerid][pSpecialQuest][91], PlayerInfo[playerid][pSpecialQuest][92], PlayerInfo[playerid][pSpecialQuest][93], PlayerInfo[playerid][pSpecialQuest][94], PlayerInfo[playerid][pSpecialQuest][95], PlayerInfo[playerid][pSpecialQuest][96], PlayerInfo[playerid][pSpecialQuest][97], PlayerInfo[playerid][pSpecialQuest][98], PlayerInfo[playerid][pSpecialQuest][99]); for(new i = 0; i < 100; i++) { if(PlayerInfo[playerid][pSpecialQuest][i] == 0) { PlayerInfo[playerid][pObjectQuest][i] = CreatePlayerObject(playerid, 19061, QuestPos[i][0], QuestPos[i][1], QuestPos[i][2], 0, 0, 0, 300.0); } } } new skin[64]; cache_get_field_content(0, "Skin", result); format(skin, 64, result); sscanf(skin, "p<|>iiiiiiiiii", PlayerInfo[playerid][pSkins][0], PlayerInfo[playerid][pSkins][1], PlayerInfo[playerid][pSkins][2], PlayerInfo[playerid][pSkins][3], PlayerInfo[playerid][pSkins][4], PlayerInfo[playerid][pSkins][5], PlayerInfo[playerid][pSkins][6], PlayerInfo[playerid][pSkins][7], PlayerInfo[playerid][pSkins][8], PlayerInfo[playerid][pSkins][9]); cache_get_field_content(0, "Crates", result); format(skin, 9, result); sscanf(skin, "p<|>i", PlayerInfo[playerid][pCrates]); new achivar[256]; cache_get_field_content(0, "AchievementStatus", result); format(achivar, 256, result); sscanf(achivar, "p<|>iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii", PlayerInfo[playerid][pAchievementStatus][0], PlayerInfo[playerid][pAchievementStatus][1], PlayerInfo[playerid][pAchievementStatus][2], PlayerInfo[playerid][pAchievementStatus][3], PlayerInfo[playerid][pAchievementStatus][4], PlayerInfo[playerid][pAchievementStatus][5], PlayerInfo[playerid][pAchievementStatus][6], PlayerInfo[playerid][pAchievementStatus][7], PlayerInfo[playerid][pAchievementStatus][8], PlayerInfo[playerid][pAchievementStatus][9], PlayerInfo[playerid][pAchievementStatus][10], PlayerInfo[playerid][pAchievementStatus][11], PlayerInfo[playerid][pAchievementStatus][12], PlayerInfo[playerid][pAchievementStatus][13], PlayerInfo[playerid][pAchievementStatus][14], PlayerInfo[playerid][pAchievementStatus][15], PlayerInfo[playerid][pAchievementStatus][16], PlayerInfo[playerid][pAchievementStatus][17], PlayerInfo[playerid][pAchievementStatus][18], PlayerInfo[playerid][pAchievementStatus][19], PlayerInfo[playerid][pAchievementStatus][20], PlayerInfo[playerid][pAchievementStatus][21], PlayerInfo[playerid][pAchievementStatus][22], PlayerInfo[playerid][pAchievementStatus][23], PlayerInfo[playerid][pAchievementStatus][24], PlayerInfo[playerid][pAchievementStatus][25], PlayerInfo[playerid][pAchievementStatus][26], PlayerInfo[playerid][pAchievementStatus][27], PlayerInfo[playerid][pAchievementStatus][28], PlayerInfo[playerid][pAchievementStatus][29], PlayerInfo[playerid][pAchievementStatus][30], PlayerInfo[playerid][pAchievementStatus][31]); SpawnChange[playerid] = cache_get_field_content_int(0, "SpawnChange"); PlayerInfo[playerid][pSeconds] = cache_get_field_content_float(0, "Seconds"); PlayerInfo[playerid][pUsed] = cache_get_field_content_int(0, "Used"); PlayerInfo[playerid][pRacePlace][0] = cache_get_field_content_int(0, "RacePlace1"); PlayerInfo[playerid][pRacePlace][1] = cache_get_field_content_int(0, "RacePlace2"); PlayerInfo[playerid][pRacePlace][2] = cache_get_field_content_int(0, "RacePlace3"); PlayerInfo[playerid][pRacePlace][3] = cache_get_field_content_int(0, "RacePlace4"); PlayerInfo[playerid][pArenaStats][0] = cache_get_field_content_int(0, "ArenaKills"); PlayerInfo[playerid][pArenaStats][1] = cache_get_field_content_int(0, "ArenaDeaths"); PlayerInfo[playerid][pPaintKills][0] = cache_get_field_content_int(0, "PaintKills1"); PlayerInfo[playerid][pPaintKills][1] = cache_get_field_content_int(0, "PaintKills2"); PlayerInfo[playerid][pPaintKills][2] = cache_get_field_content_int(0, "PaintKills3"); PlayerInfo[playerid][pPaintDeaths][2] = cache_get_field_content_int(0, "PaintDeaths1"); PlayerInfo[playerid][pPaintDeaths][2] = cache_get_field_content_int(0, "PaintDeaths2"); PlayerInfo[playerid][pPaintDeaths][2] = cache_get_field_content_int(0, "PaintDeaths3"); PlayerInfo[playerid][pCarLicS] = cache_get_field_content_int(0, "CarLicS", SQL); PlayerInfo[playerid][pBoatLicS] = cache_get_field_content_int(0, "BoatLicS", SQL); PlayerInfo[playerid][pFlyLicS] = cache_get_field_content_int(0, "FlyLicS", SQL); PlayerInfo[playerid][pGunLicS] = cache_get_field_content_int(0, "GunLicS", SQL); PlayerInfo[playerid][pCarKey][0] = cache_get_field_content_int(0, "CarKey1", SQL); PlayerInfo[playerid][pCarKey][1] = cache_get_field_content_int(0, "CarKey2", SQL); PlayerInfo[playerid][pCarKey][2] = cache_get_field_content_int(0, "CarKey3", SQL); PlayerInfo[playerid][pCarKey][3] = cache_get_field_content_int(0, "CarKey4", SQL); PlayerInfo[playerid][pCarKey][4] = cache_get_field_content_int(0, "CarKey5", SQL); PlayerInfo[playerid][pCarKey][5] = cache_get_field_content_int(0, "CarKey6", SQL); PlayerInfo[playerid][pCarKey][6] = cache_get_field_content_int(0, "CarKey7", SQL); PlayerInfo[playerid][pCarKey][7] = cache_get_field_content_int(0, "CarKey8", SQL); PlayerInfo[playerid][pCarKey][8] = cache_get_field_content_int(0, "CarKey9", SQL); PlayerInfo[playerid][pCarKey][9] = cache_get_field_content_int(0, "CarKey10", SQL); PlayerInfo[playerid][pShowDMG] = cache_get_field_content_int(0, "ShowDMG", SQL); PlayerInfo[playerid][pSlot][0] = cache_get_field_content_int(0, "Slot1", SQL); PlayerInfo[playerid][pSlot][1] = cache_get_field_content_int(0, "Slot2", SQL); PlayerInfo[playerid][pSlot][2] = cache_get_field_content_int(0, "Slot3", SQL); PlayerInfo[playerid][pSlot][3] = cache_get_field_content_int(0, "Slot4", SQL); PlayerInfo[playerid][pSlot][4] = cache_get_field_content_int(0, "Slot5", SQL); PlayerInfo[playerid][pDailyMission][0] = cache_get_field_content_int(0, "DailyMission", SQL); PlayerInfo[playerid][pDailyMission][1] = cache_get_field_content_int(0, "DailyMission2", SQL); PlayerInfo[playerid][pNeedProgress][0] = cache_get_field_content_int(0, "NeedProgress1", SQL); PlayerInfo[playerid][pNeedProgress][1] = cache_get_field_content_int(0, "NeedProgress2", SQL); PlayerInfo[playerid][pProgress][0] = cache_get_field_content_int(0, "Progress", SQL); PlayerInfo[playerid][pProgress][1] = cache_get_field_content_int(0, "Progress2", SQL); PlayerInfo[playerid][pPizzaSkill] = cache_get_field_content_int(0, "PizzaSkill", SQL); PlayerInfo[playerid][pCurierSkill] = cache_get_field_content_int(0, "CurierSkill", SQL); PlayerInfo[playerid][pGasCan] = cache_get_field_content_int(0, "GasCan", SQL); PlayerInfo[playerid][pGlasses] = cache_get_field_content_int(0, "Glasses", SQL); PlayerInfo[playerid][pShowGlasses] = cache_get_field_content_int(0, "ShowGlasses", SQL); PlayerInfo[playerid][pShowHP] = cache_get_field_content_int(0, "ShowHP", SQL); PlayerInfo[playerid][pShowCP] = cache_get_field_content_int(0, "ShowCP", SQL); PlayerInfo[playerid][pShowAP] = cache_get_field_content_int(0, "ShowAP", SQL); PlayerInfo[playerid][pPin] = cache_get_field_content_int(0, "Pin", SQL); PlayerInfo[playerid][pFires] = cache_get_field_content_int(0, "Fires", SQL); PlayerInfo[playerid][pColor] = cache_get_field_content_int(0, "Color", SQL); PlayerInfo[playerid][pYT] = cache_get_field_content_int(0, "Youtuber", SQL); PlayerInfo[playerid][pDays] = cache_get_field_content_int(0, "Days", SQL); PlayerInfo[playerid][pPilotSkill] = cache_get_field_content_int(0, "PilotSkill", SQL); PlayerInfo[playerid][pEscapePoints] = cache_get_field_content_int(0, "EscapePoints", SQL); PlayerInfo[playerid][pHat] = cache_get_field_content_int(0, "Hat", SQL); PlayerInfo[playerid][pCoins] = cache_get_field_content_int(0, "Coins", SQL); PlayerInfo[playerid][pShowHat] = cache_get_field_content_int(0, "ShowHat", SQL); PlayerInfo[playerid][pDailyLogin] = cache_get_field_content_int(0, "DailyLogin", SQL); PlayerInfo[playerid][pCrash] = cache_get_field_content_int(0, "Crash", SQL); PlayerInfo[playerid][pAJail] = cache_get_field_content_int(0, "AJail", SQL); PlayerInfo[playerid][pHW] = cache_get_field_content_int(0, "HW", SQL); PlayerInfo[playerid][pAW] = cache_get_field_content_int(0, "AW", SQL); PlayerInfo[playerid][pLW] = cache_get_field_content_int(0, "LW", SQL); new string[180], clanid = PlayerInfo[playerid][pClan]; if(PlayerInfo[playerid][pClan] != 0 && PlayerInfo[playerid][pTag] == 0) { format(string, sizeof(string), "%s%s", ClanInfo[clanid][clTag], PlayerInfo[playerid][pUsername]); SetPlayerName(playerid, string); } else if(PlayerInfo[playerid][pClan] != 0 && PlayerInfo[playerid][pTag] == 1) { format(string, sizeof(string), "%s%s", PlayerInfo[playerid][pUsername], ClanInfo[clanid][clTag]); SetPlayerName(playerid, string); } LoadPlayerCars(playerid); SetPlayerToTeamColor(playerid); //ADeathMessage(playerid, INVALID_PLAYER_ID, 200); new ip[16]; GetPlayerIp(playerid, ip, sizeof(ip)); format(string, sizeof(string), "UPDATE `users` SET `Status` = '1', `IP`='%s' WHERE `ID`=%d", ip, PlayerInfo[playerid][pSQLID]); mysql_tquery(SQL,string, "", ""); UpdateVar(playerid, "DayLogin", 1); TextDrawHideForPlayer(playerid, ServerTD); GameTextForPlayer(playerid, " ", 1000, 4); SpawnPlayer(playerid); } for( new j = 0; j <= 100; j++) SCM(playerid, COLOR_WHITE, ""); } else { new loginstring[128]; format(loginstring,sizeof(loginstring),"Parola introdusa de tine este incorecta!\nIntrodu parola corecta altfel vei primi kick!",GetName(playerid)); ShowPlayerDialog(playerid, DIALOG_LOGIN3,DIALOG_STYLE_PASSWORD,"Logare",loginstring,"Logare","Quit"); mysql_free_result(); gPlayerLogTries[playerid] += 1; new string[180]; if(gPlayerLogTries[playerid] < 3) format(string, sizeof(string), "Parola incorecta! Mai ai la dispozitie %d incercari.", 3-gPlayerLogTries[playerid]); else format(string, sizeof(string), "Parola incorecta! Incercarile au fost epuizate si ai primit kick.", 3-gPlayerLogTries[playerid]); SCM(playerid, COLOR_WARNING, string); if(gPlayerLogTries[playerid] == 3) KickEx(playerid); return 1; } mysql_free_result(); ResetPlayerCash(playerid); GivePlayerCash(playerid,PlayerInfo[playerid][pCash]); CurrentMoney[playerid] = PlayerInfo[playerid][pCash]; KillTimer(login[playerid]); if(PlayerInfo[playerid][pReg] == 0) { PlayerInfo[playerid][pLevel] = 1; PlayerInfo[playerid][pHealth] = 100.0; PlayerInfo[playerid][pInt] = 0; PlayerInfo[playerid][pLocal] = 255; PlayerInfo[playerid][pTeam] = 3; PlayerInfo[playerid][pModel] = 250; PlayerInfo[playerid][pHouse] = 999; PlayerInfo[playerid][pBizz] = 255; PlayerInfo[playerid][pAccount] = 1000; PlayerInfo[playerid][pReg] = 1; SetPlayerInterior(playerid,0); new string[300]; new d,m,y; getdate(y,m,d); new h,mine,s; gettime(h,mine,s); format(string, sizeof(string), "%d/%d/%d %d:%d:%d",d,m,y,h,mine,s); strmid(PlayerInfo[playerid][pRegistredDate], string, 0, strlen(string), 255); new str[180]; format(str,sizeof(str),"UPDATE users SET `pHealth`='100.0',`Team`='3',`Model`='250' WHERE `ID`=%d",PlayerInfo[playerid][pSQLID]); mysql_query(SQL,str); Update(playerid,pCashx); Update(playerid,pLevelx); Update(playerid,pHousex); Update(playerid,pBizzx); Update(playerid,pPnumberx); Update(playerid,pRegx); Update(playerid,pRegistredDatex); } if(PlayerInfo[playerid][pBTemp] == 1) { TempBanCheck(playerid); return 1; } if(PlayerInfo[playerid][pBanned] == 1) { for( new j = 0; j <= 100; j++) SCM(playerid, COLOR_WHITE, ""); SCM(playerid, COLOR_WARNING, "Acest cont este banat permanent!"); new str[180]; format(str, sizeof str, "Ai fost banat de adminul %s.",PlayerInfo[playerid][pBBy]); SCM(playerid, COLOR_CLIENT, str); format(str, sizeof str, "Motivul: %s",PlayerInfo[playerid][pBReason]); SCM(playerid, COLOR_CLIENT, str); KickEx(playerid); SetPlayerCameraPos(playerid, 1183.0143, -965.7394, 129.6071); SetPlayerCameraLookAt(playerid, 1183.7214, -965.0270, 129.2470); TogglePlayerSpectating(playerid, 0); return 1; } StopAudioStreamForPlayer(playerid); SetPlayerScore(playerid, PlayerInfo[playerid][pLevel]); new string2[180]; if(PlayerInfo[playerid][pTut] != 0) { format(string2, 256, "Bine ai revenit, %s!", GetName(playerid)); SCM(playerid, -1, string2); if(PlayerInfo[playerid][pMember] != 0) { if(PlayerInfo[playerid][pDays] == 30) { if(PlayerInfo[playerid][pMember] == 11) finishAchievement(playerid, 23); else if(IsACop(playerid)) finishAchievement(playerid, 24); else if(IsAMember(playerid)) finishAchievement(playerid, 25); else finishAchievement(playerid, 22); } } } if(PlayerInfo[playerid][pWantedLevel] > 0 && PlayerInfo[playerid][pTut] != 0) { format(string2, sizeof(string2), "Aveai wanted %d inainte sa iesi de pe server.",PlayerInfo[playerid][pWantedLevel]); SetPlayerWantedLevel(playerid, PlayerInfo[playerid][pWantedLevel]); SCM(playerid, COLOR_LIGHTRED, string2); } SetSpawnInfo(playerid, PlayerInfo[playerid][pTeam], PlayerInfo[playerid][pModel], 1800.8823,-1866.6110,13.5712, 1.0, -1, -1, -1, -1, -1, -1); if(gTeam[playerid] == 0) gTeam[playerid] = 3; else gTeam[playerid] = PlayerInfo[playerid][pTeam]; if(PlayerInfo[playerid][pMember] != 0 && PlayerInfo[playerid][pTut] != 0) { new disc[84]; format(disc,sizeof(disc),"(Factiune) %s s-a conectat pe server.",GetName(playerid)); SendFactionMessage(PlayerInfo[playerid][pMember], COLOR_CLIENT, disc); } HudProgress[playerid][0] = CreatePlayerProgressBar(playerid, 513.00, 158.50, 85.50, 2.50, 0x00FF00FF, 100.0); HudProgress[playerid][1] = CreatePlayerProgressBar(playerid, 513.00, 183.50, 85.50, 2.50, 0x00FF00FF, 100.0); UpdateProgress(playerid, 0); UpdateProgress(playerid, 1); new sendername[25],playersip[64],iplog[184]; GetPlayerName(playerid,sendername,sizeof(sendername)); GetPlayerIp(playerid,playersip,sizeof(playersip)); LogIP(playersip,PlayerInfo[playerid][pSQLID]); format(iplog,sizeof(iplog),"%s(%d) connected on the server with IP %s.",sendername,playerid,playersip); SendIP(COLOR_WHITE,iplog); IsPlayerLogged[playerid] = 1; if(PlayerInfo[playerid][pTut] == 0) { gOoc[playerid] = 1; gNews[playerid] = 1; gFam[playerid] = 1; TogglePlayerControllable(playerid, 0); RegistrationStep[playerid] = 1; SCM(playerid, 0xFFDE96FF, "Te rugam sa raspunzi la urmatoarele intrebari."); ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_MSGBOX, "Register:", "Care este sexul caracterului tau?\nMasculin sau Feminin?", "Masculin", "Feminin"); SetPlayerInterior(playerid, 0); } printf("%s has logged in with IP %s.",sendername,playersip); if(PlayerInfo[playerid][pDailyMission][0] == -1 || PlayerInfo[playerid][pDailyMission][1] == -1) GiveQuest(playerid); if(PlayerInfo[playerid][pTut] != 0) { SCM(playerid, COLOR_WHITE, "Pentru a vedea ce misiuni ai in aceasta zi, foloseste /quests."); SCM(playerid, COLOR_WHITE, "[CONCURS] - Vineri (22/02/2019) Ora 20:00 vor fi alesi 2 Helperi si 1 Admin! [{00C3FF}/contests{FFFFFF}] - pentru mai multe detalii!"); new clanid = PlayerInfo[playerid][pClan], string[180]; if(clanid != 0) { format(string, sizeof(string), "{%s}(CMOTD): %s", ClanInfo[PlayerInfo[playerid][pClan]][clColor], ClanInfo[PlayerInfo[playerid][pClan]][clMotd]); MesajLung(playerid, -1, string); } if(PlayerInfo[playerid][pMember] != 0) { if(strlen(DynamicFactions[PlayerInfo[playerid][pMember]][fAnn]) > 0) { new factioninfo[128]; format(factioninfo,sizeof(factioninfo), "(FMOTD): %s",DynamicFactions[PlayerInfo[playerid][pMember]][fAnn]); MesajLung(playerid,COLOR_WHITE,factioninfo); } } new szQuery[256], szString[180], onf, Cache: results; format(szQuery, sizeof(szQuery), "SELECT * FROM `friends` WHERE `AddBy` = %d", PlayerInfo[playerid][pSQLID]); results = mysql_query(SQL, szQuery); // playerid login for(new i, j = cache_get_row_count (); i != j; ++i) { cache_get_field_content(i, "friendName", szString); new userID = GetPlayerID(szString); if(userID != INVALID_PLAYER_ID) onf ++; } cache_delete(results); format(string, sizeof(string), "Ai %d prieteni conectati in lista.", onf); if(onf != 0) { PlayerTextDrawSetString(playerid, FriendTD, string); PlayerTextDrawShow(playerid, FriendTD); SetTimerEx("HideFriendTD", 3000, false, "i", playerid); } if(PlayerInfo[playerid][pDailyLogin] == 0) SCM(playerid, COLOR_LIGHTBLUE, "Vei primi de doua ori mai multi bani si puncte de respect la urmatorul payday."); if(PlayerInfo[playerid][pBizz] != 255) finishAchievement(playerid, 2); if(PlayerInfo[playerid][pHouse] != 999 && strcmp(GetName(playerid), HouseInfo[PlayerInfo[playerid][pHouse]][hOwner], true) == 0) finishAchievement(playerid, 3); // if exist player in other friend list foreach(Player, i) { if(IsPlayerConnected(i) && IsPlayerLogged[i] == 1) { format(szQuery, sizeof(szQuery), "SELECT * FROM `friends` WHERE `AddBy` = %d AND `friendID` = %d", PlayerInfo[i][pSQLID], PlayerInfo[playerid][pSQLID]); results = mysql_query(SQL, szQuery); cache_get_field_content(0, "AddBy", szString); new friendID = strval(szString); cache_delete(results); if(PlayerInfo[i][pSQLID] == friendID && friendID != 0) { if(PlayerInfo[playerid][pAdmin] < 7) { format(string, sizeof(string), "Prietenul tau, %s, s-a conectat.", GetName(playerid)); PlayerTextDrawSetString(i, FriendTD, string); PlayerTextDrawShow(i, FriendTD); SetTimerEx("HideFriendTD", 3000, false, "i", i); } } } } CalculateEmails(playerid); check_save(playerid); } return 1; }
×

Important Information

This site uses cookies. By continuing browsing, you agree to the use of this information. For more details, see Terms of Use and Privacy Policy.