02.02.2011, 19:35
(
Последний раз редактировалось marinusi; 02.02.2011 в 20:21.
)
I tried to do all the lines in the register / login with #include <dini> but when I login server blocked.
Where did I go wrong?
Where did I go wrong?
Код:
public OnPlayerRegister(playerid, password[]) { if(IsPlayerConnected(playerid)) { new string3[64]; new playername3[MAX_PLAYER_NAME]; GetPlayerName(playerid, playername3, sizeof(playername3)); format(string3, sizeof(string3), "%s.ini", playername3); dini_Create(string3); new password2 = num_hash(password); PlayerInfo[playerid][pKey] = password2; dini_IntSet(string3, "Key", password2); PlayerInfo[playerid][pCash] = GetPlayerMoney(playerid); dini_IntSet(string3, "Level",PlayerInfo[playerid][pLevel]); dini_IntSet(string3, "AdminLevel",PlayerInfo[playerid][pAdmin]); dini_IntSet(string3, "HelperLevel",PlayerInfo[playerid][pHelper]); dini_IntSet(string3, "DonateRank",PlayerInfo[playerid][pDonateRank]); dini_IntSet(string3, "UpgradePoints",PlayerInfo[playerid][gPupgrade]); dini_IntSet(string3, "ConnectedTime",PlayerInfo[playerid][pConnectTime]); dini_IntSet(string3, "Registered",PlayerInfo[playerid][pReg]); dini_IntSet(string3, "Sex",PlayerInfo[playerid][pSex]); dini_IntSet(string3, "Age",PlayerInfo[playerid][pAge]); dini_IntSet(string3, "Origin",PlayerInfo[playerid][pOrigin]); dini_IntSet(string3, "CK",PlayerInfo[playerid][pCK]); dini_IntSet(string3, "Muted",PlayerInfo[playerid][pMuted]); dini_IntSet(string3, "Respect",PlayerInfo[playerid][pExp]); dini_IntSet(string3, "Money",PlayerInfo[playerid][pCash]); dini_IntSet(string3, "Bank",PlayerInfo[playerid][pAccount]); dini_IntSet(string3, "Crimes",PlayerInfo[playerid][pCrimes]); dini_IntSet(string3, "Kills",PlayerInfo[playerid][pKills]); dini_IntSet(string3, "Deaths",PlayerInfo[playerid][pDeaths]); dini_IntSet(string3, "Arrested",PlayerInfo[playerid][pArrested]); dini_IntSet(string3, "WantedDeaths",PlayerInfo[playerid][pWantedDeaths]); dini_IntSet(string3, "Phonebook",PlayerInfo[playerid][pPhoneBook]); dini_IntSet(string3, "LottoNr",PlayerInfo[playerid][pLottoNr]); dini_IntSet(string3, "Fishes",PlayerInfo[playerid][pFishes]); dini_IntSet(string3, "BiggestFish",PlayerInfo[playerid][pBiggestFish]); dini_IntSet(string3, "Job",PlayerInfo[playerid][pJob]); dini_IntSet(string3, "Paycheck",PlayerInfo[playerid][pPayCheck]); dini_IntSet(string3, "HeadValue",PlayerInfo[playerid][pHeadValue]); dini_IntSet(string3, "Jailed",PlayerInfo[playerid][pJailed]); dini_IntSet(string3, "JailTime",PlayerInfo[playerid][pJailTime]); dini_IntSet(string3, "MuteTime",PlayerInfo[playerid][pMuteTime]); dini_IntSet(string3, "Materials",PlayerInfo[playerid][pMats]); dini_IntSet(string3, "MaterialsBox",PlayerInfo[playerid][pBoxMats]); dini_IntSet(string3, "Drugs",PlayerInfo[playerid][pDrugs]); dini_IntSet(string3, "Leader",PlayerInfo[playerid][pLeader]); dini_IntSet(string3, "Member",PlayerInfo[playerid][pMember]); dini_IntSet(string3, "FMember",PlayerInfo[playerid][pFMember]); dini_IntSet(string3, "Rank",PlayerInfo[playerid][pRank]); dini_IntSet(string3, "Char",PlayerInfo[playerid][pChar]); dini_IntSet(string3, "ContractTime",PlayerInfo[playerid][pContractTime]); dini_IntSet(string3, "DetSkill",PlayerInfo[playerid][pDetSkill]); dini_IntSet(string3, "SexSkill",PlayerInfo[playerid][pSexSkill]); dini_IntSet(string3, "BoxSkill",PlayerInfo[playerid][pBoxSkill]); dini_IntSet(string3, "LawSkill",PlayerInfo[playerid][pLawSkill]); dini_IntSet(string3, "MechSkill",PlayerInfo[playerid][pMechSkill]); dini_IntSet(string3, "JackSkill",PlayerInfo[playerid][pJackSkill]); dini_IntSet(string3, "CarSkill",PlayerInfo[playerid][pCarSkill]); dini_IntSet(string3, "NewsSkill",PlayerInfo[playerid][pNewsSkill]); dini_IntSet(string3, "DrugsSkill",PlayerInfo[playerid][pDrugsSkill]); dini_IntSet(string3, "CookSkill",PlayerInfo[playerid][pCookSkill]); dini_IntSet(string3, "FishSkill",PlayerInfo[playerid][pFishSkill]); dini_FloatSet(string3, "pSHealth",PlayerInfo[playerid][pSHealth]); GetPlayerHealth(playerid,PlayerInfo[playerid][pHealth]); dini_FloatSet(string3, "pHealth",PlayerInfo[playerid][pHealth]); dini_IntSet(string3, "Int",PlayerInfo[playerid][pInt]); dini_IntSet(string3, "Local",PlayerInfo[playerid][pLocal]); dini_IntSet(string3, "Team",PlayerInfo[playerid][pTeam]); dini_IntSet(string3, "Model",PlayerInfo[playerid][pModel]); dini_IntSet(string3, "PhoneNr",PlayerInfo[playerid][pPnumber]); dini_IntSet(string3, "House",PlayerInfo[playerid][pPhousekey]); dini_IntSet(string3, "Bizz",PlayerInfo[playerid][pPbiskey]); if ((PlayerInfo[playerid][pPos_x]==0.0 && PlayerInfo[playerid][pPos_y]==0.0 && PlayerInfo[playerid][pPos_z]==0.0)) { PlayerInfo[playerid][pPos_x] = 1684.9; PlayerInfo[playerid][pPos_y] = -2244.5; PlayerInfo[playerid][pPos_z] = 13.5; } if(Spectate[playerid] != 255) { PlayerInfo[playerid][pPos_x] = Unspec[playerid][sPx]; PlayerInfo[playerid][pPos_y] = Unspec[playerid][sPy]; PlayerInfo[playerid][pPos_z] = Unspec[playerid][sPz]; PlayerInfo[playerid][pInt] = Unspec[playerid][sPint]; PlayerInfo[playerid][pLocal] = Unspec[playerid][sLocal]; } dini_FloatSet(string3, "Pos_x",PlayerInfo[playerid][pPos_x]); dini_FloatSet(string3, "Pos_y",PlayerInfo[playerid][pPos_y]); dini_FloatSet(string3, "Pos_z",PlayerInfo[playerid][pPos_z]); dini_IntSet(string3, "CarLic",PlayerInfo[playerid][pCarLic]); dini_IntSet(string3, "MotLic",PlayerInfo[playerid][pMotLic]); dini_IntSet(string3, "FlyLic",PlayerInfo[playerid][pFlyLic]); dini_IntSet(string3, "BoatLic",PlayerInfo[playerid][pBoatLic]); dini_IntSet(string3, "FishLic",PlayerInfo[playerid][pFishLic]); dini_IntSet(string3, "GunLic",PlayerInfo[playerid][pGunLic]); dini_IntSet(string3, "Gun1",PlayerInfo[playerid][pGun1]); dini_IntSet(string3, "Gun2",PlayerInfo[playerid][pGun2]); dini_IntSet(string3, "Gun3",PlayerInfo[playerid][pGun3]); dini_IntSet(string3, "Gun4",PlayerInfo[playerid][pGun4]); dini_IntSet(string3, "Ammo1",PlayerInfo[playerid][pAmmo1]); dini_IntSet(string3, "Ammo2",PlayerInfo[playerid][pAmmo2]); dini_IntSet(string3, "Ammo3",PlayerInfo[playerid][pAmmo3]); dini_IntSet(string3, "Ammo4",PlayerInfo[playerid][pAmmo4]); dini_IntSet(string3, "CarTime",PlayerInfo[playerid][pCarTime]); dini_IntSet(string3, "PayDay",PlayerInfo[playerid][pPayDay]); dini_IntSet(string3, "PayDayHad",PlayerInfo[playerid][pPayDayHad]); dini_IntSet(string3, "CDPlayer",PlayerInfo[playerid][pCDPlayer]); dini_IntSet(string3, "Wins",PlayerInfo[playerid][pWins]); dini_IntSet(string3, "Loses",PlayerInfo[playerid][pLoses]); dini_IntSet(string3, "AlcoholPerk",PlayerInfo[playerid][pAlcoholPerk]); dini_IntSet(string3, "DrugPerk",PlayerInfo[playerid][pDrugPerk]); dini_IntSet(string3, "MiserPerk",PlayerInfo[playerid][pMiserPerk]); dini_IntSet(string3, "PainPerk",PlayerInfo[playerid][pPainPerk]); dini_IntSet(string3, "TraderPerk",PlayerInfo[playerid][pTraderPerk]); dini_IntSet(string3, "Tutorial",PlayerInfo[playerid][pTut]); dini_IntSet(string3, "Mission",PlayerInfo[playerid][pMissionNr]); dini_IntSet(string3, "Warnings",PlayerInfo[playerid][pWarns]); dini_IntSet(string3, "Adjustable",PlayerInfo[playerid][pAdjustable]); dini_IntSet(string3, "Fuel",PlayerInfo[playerid][pFuel]); dini_IntSet(string3, "Married",PlayerInfo[playerid][pMarried]); dini_Set(string3, "MarriedTo",PlayerInfo[playerid][pMarriedTo]); dini_IntSet(string3, "Passport",PlayerInfo[playerid][pPassport]); dini_IntSet(string3, "Crack",PlayerInfo[playerid][pCrack]); dini_IntSet(string3, "CabinetTime",PlayerInfo[playerid][pCabinetTime]); dini_IntSet(string3, "WantedSave",WantedLevel[playerid]); getdate(PlRegDataInfo[playerid][pRegDateA],PlRegDataInfo[playerid][pRegDateL],PlRegDataInfo[playerid][pRegDateZ]); dini_IntSet(string3, "RegDateZ",PlRegDataInfo[playerid][pRegDateZ]); dini_IntSet(string3, "RegDateL",PlRegDataInfo[playerid][pRegDateL]); dini_IntSet(string3, "RegDateA",PlRegDataInfo[playerid][pRegDateA]); dini_IntSet(string3, "Banned",PlayerInfo[playerid][pBanned]); // } return 1; } public OnPlayerUpdate(playerid) { if(IsPlayerConnected(playerid)) { if(gPlayerLogged[playerid] == 1) { new string3[32]; new playername3[MAX_PLAYER_NAME]; GetPlayerName(playerid, playername3, sizeof(playername3)); format(string3, sizeof(string3), "%s.ini", playername3); dini_IntSet(string3, "Key",PlayerInfo[playerid][pKey]); PlayerInfo[playerid][pCash] = GetPlayerMoney(playerid); dini_IntSet(string3, "Level",PlayerInfo[playerid][pLevel]); dini_IntSet(string3, "AdminLevel",PlayerInfo[playerid][pAdmin]); dini_IntSet(string3, "HelperLevel",PlayerInfo[playerid][pHelper]); dini_IntSet(string3, "DonateRank",PlayerInfo[playerid][pDonateRank]); dini_IntSet(string3, "UpgradePoints",PlayerInfo[playerid][gPupgrade]); dini_IntSet(string3, "ConnectedTime",PlayerInfo[playerid][pConnectTime]); dini_IntSet(string3, "Registered",PlayerInfo[playerid][pReg]); dini_IntSet(string3, "Sex",PlayerInfo[playerid][pSex]); dini_IntSet(string3, "Age",PlayerInfo[playerid][pAge]); dini_IntSet(string3, "Origin",PlayerInfo[playerid][pOrigin]); dini_IntSet(string3, "CK",PlayerInfo[playerid][pCK]); dini_IntSet(string3, "Muted",PlayerInfo[playerid][pMuted]); dini_IntSet(string3, "Respect",PlayerInfo[playerid][pExp]); dini_IntSet(string3, "Money",PlayerInfo[playerid][pCash]); dini_IntSet(string3, "Bank",PlayerInfo[playerid][pAccount]); dini_IntSet(string3, "Crimes",PlayerInfo[playerid][pCrimes]); dini_IntSet(string3, "Kills",PlayerInfo[playerid][pKills]); dini_IntSet(string3, "Deaths",PlayerInfo[playerid][pDeaths]); dini_IntSet(string3, "Arrested",PlayerInfo[playerid][pArrested]); dini_IntSet(string3, "WantedDeaths",PlayerInfo[playerid][pWantedDeaths]); dini_IntSet(string3, "Phonebook",PlayerInfo[playerid][pPhoneBook]); dini_IntSet(string3, "LottoNr",PlayerInfo[playerid][pLottoNr]); dini_IntSet(string3, "Fishes",PlayerInfo[playerid][pFishes]); dini_IntSet(string3, "BiggestFish",PlayerInfo[playerid][pBiggestFish]); dini_IntSet(string3, "Job",PlayerInfo[playerid][pJob]); dini_IntSet(string3, "Paycheck",PlayerInfo[playerid][pPayCheck]); dini_IntSet(string3, "HeadValue",PlayerInfo[playerid][pHeadValue]); dini_IntSet(string3, "Jailed",PlayerInfo[playerid][pJailed]); dini_IntSet(string3, "JailTime",PlayerInfo[playerid][pJailTime]); dini_IntSet(string3, "MuteTime",PlayerInfo[playerid][pMuteTime]); dini_IntSet(string3, "Materials",PlayerInfo[playerid][pMats]); dini_IntSet(string3, "MaterialsBox",PlayerInfo[playerid][pBoxMats]); dini_IntSet(string3, "Drugs",PlayerInfo[playerid][pDrugs]); dini_IntSet(string3, "Leader",PlayerInfo[playerid][pLeader]); dini_IntSet(string3, "Member",PlayerInfo[playerid][pMember]); dini_IntSet(string3, "FMember",PlayerInfo[playerid][pFMember]); dini_IntSet(string3, "Rank",PlayerInfo[playerid][pRank]); dini_IntSet(string3, "Char",PlayerInfo[playerid][pChar]); dini_IntSet(string3, "ContractTime",PlayerInfo[playerid][pContractTime]); dini_IntSet(string3, "DetSkill",PlayerInfo[playerid][pDetSkill]); dini_IntSet(string3, "SexSkill",PlayerInfo[playerid][pSexSkill]); dini_IntSet(string3, "BoxSkill",PlayerInfo[playerid][pBoxSkill]); dini_IntSet(string3, "LawSkill",PlayerInfo[playerid][pLawSkill]); dini_IntSet(string3, "MechSkill",PlayerInfo[playerid][pMechSkill]); dini_IntSet(string3, "JackSkill",PlayerInfo[playerid][pJackSkill]); dini_IntSet(string3, "CarSkill",PlayerInfo[playerid][pCarSkill]); dini_IntSet(string3, "NewsSkill",PlayerInfo[playerid][pNewsSkill]); dini_IntSet(string3, "DrugsSkill",PlayerInfo[playerid][pDrugsSkill]); dini_IntSet(string3, "CookSkill",PlayerInfo[playerid][pCookSkill]); dini_IntSet(string3, "FishSkill",PlayerInfo[playerid][pFishSkill]); dini_FloatSet(string3, "pSHealth",PlayerInfo[playerid][pSHealth]); GetPlayerHealth(playerid,PlayerInfo[playerid][pHealth]); dini_FloatSet(string3, "pHealth",PlayerInfo[playerid][pHealth]); dini_IntSet(string3, "Int",PlayerInfo[playerid][pInt]); dini_IntSet(string3, "Local",PlayerInfo[playerid][pLocal]); dini_IntSet(string3, "Team",PlayerInfo[playerid][pTeam]); dini_IntSet(string3, "Model",PlayerInfo[playerid][pModel]); dini_IntSet(string3, "PhoneNr",PlayerInfo[playerid][pPnumber]); dini_IntSet(string3, "House",PlayerInfo[playerid][pPhousekey]); dini_IntSet(string3, "Bizz",PlayerInfo[playerid][pPbiskey]); if ((PlayerInfo[playerid][pPos_x]==0.0 && PlayerInfo[playerid][pPos_y]==0.0 && PlayerInfo[playerid][pPos_z]==0.0)) { PlayerInfo[playerid][pPos_x] = 1684.9; PlayerInfo[playerid][pPos_y] = -2244.5; PlayerInfo[playerid][pPos_z] = 13.5; } if(Spectate[playerid] != 255) { PlayerInfo[playerid][pPos_x] = Unspec[playerid][sPx]; PlayerInfo[playerid][pPos_y] = Unspec[playerid][sPy]; PlayerInfo[playerid][pPos_z] = Unspec[playerid][sPz]; PlayerInfo[playerid][pInt] = Unspec[playerid][sPint]; PlayerInfo[playerid][pLocal] = Unspec[playerid][sLocal]; } dini_FloatSet(string3, "Pos_x",PlayerInfo[playerid][pPos_x]); dini_FloatSet(string3, "Pos_y",PlayerInfo[playerid][pPos_y]); dini_FloatSet(string3, "Pos_z",PlayerInfo[playerid][pPos_z]); dini_IntSet(string3, "CarLic",PlayerInfo[playerid][pCarLic]); dini_IntSet(string3, "MotLic",PlayerInfo[playerid][pMotLic]); dini_IntSet(string3, "FlyLic",PlayerInfo[playerid][pFlyLic]); dini_IntSet(string3, "BoatLic",PlayerInfo[playerid][pBoatLic]); dini_IntSet(string3, "FishLic",PlayerInfo[playerid][pFishLic]); dini_IntSet(string3, "GunLic",PlayerInfo[playerid][pGunLic]); dini_IntSet(string3, "Gun1",PlayerInfo[playerid][pGun1]); dini_IntSet(string3, "Gun2",PlayerInfo[playerid][pGun2]); dini_IntSet(string3, "Gun3",PlayerInfo[playerid][pGun3]); dini_IntSet(string3, "Gun4",PlayerInfo[playerid][pGun4]); dini_IntSet(string3, "Ammo1",PlayerInfo[playerid][pAmmo1]); dini_IntSet(string3, "Ammo2",PlayerInfo[playerid][pAmmo2]); dini_IntSet(string3, "Ammo3",PlayerInfo[playerid][pAmmo3]); dini_IntSet(string3, "Ammo4",PlayerInfo[playerid][pAmmo4]); dini_IntSet(string3, "CarTime",PlayerInfo[playerid][pCarTime]); dini_IntSet(string3, "PayDay",PlayerInfo[playerid][pPayDay]); dini_IntSet(string3, "PayDayHad",PlayerInfo[playerid][pPayDayHad]); dini_IntSet(string3, "CDPlayer",PlayerInfo[playerid][pCDPlayer]); dini_IntSet(string3, "Wins",PlayerInfo[playerid][pWins]); dini_IntSet(string3, "Loses",PlayerInfo[playerid][pLoses]); dini_IntSet(string3, "AlcoholPerk",PlayerInfo[playerid][pAlcoholPerk]); dini_IntSet(string3, "DrugPerk",PlayerInfo[playerid][pDrugPerk]); dini_IntSet(string3, "MiserPerk",PlayerInfo[playerid][pMiserPerk]); dini_IntSet(string3, "PainPerk",PlayerInfo[playerid][pPainPerk]); dini_IntSet(string3, "TraderPerk",PlayerInfo[playerid][pTraderPerk]); dini_IntSet(string3, "Tutorial",PlayerInfo[playerid][pTut]); dini_IntSet(string3, "Mission",PlayerInfo[playerid][pMissionNr]); dini_IntSet(string3, "Warnings",PlayerInfo[playerid][pWarns]); dini_IntSet(string3, "Adjustable",PlayerInfo[playerid][pAdjustable]); if(PlayerInfo[playerid][pDonateRank] < 1) { PlayerInfo[playerid][pFuel] = 0; } dini_IntSet(string3, "Fuel",PlayerInfo[playerid][pFuel]); dini_IntSet(string3, "Married",PlayerInfo[playerid][pMarried]); dini_Set(string3, "MarriedTo",PlayerInfo[playerid][pMarriedTo]); dini_IntSet(string3, "Crack",PlayerInfo[playerid][pCrack]); dini_IntSet(string3, "Passport",PlayerInfo[playerid][pPassport]); dini_IntSet(string3, "CabinetTime",PlayerInfo[playerid][pCabinetTime]); } } return 1; } public OnPlayerLogin(playerid,password[]) { new tmp2[256]; new string2[64]; new playername2[MAX_PLAYER_NAME]; new playernamesplit[3][MAX_PLAYER_NAME]; GetPlayerName(playerid, playername2, sizeof(playername2)); split(playername2, playernamesplit, '_'); format(string2, sizeof(string2), "%s.ini", playername2); if (dini_Exists(string2)) { new password2 = num_hash(password); if(dini_Int(string2,"Key") == password2) { PlayerInfo[playerid][pKey] = dini_Int(string2,"Key"); PlayerInfo[playerid][pLevel] = dini_Int(string2,"Level"); PlayerInfo[playerid][pAdmin] = dini_Int(string2,"AdminLevel"); PlayerInfo[playerid][pHelper] = dini_Int(string2,"HelperLevel"); PlayerInfo[playerid][pDonateRank] = dini_Int(string2,"DonateRank"); PlayerInfo[playerid][gPupgrade] = dini_Int(string2,"UpgradePoints"); PlayerInfo[playerid][pConnectTime] = dini_Int(string2,"ConnectedTime"); PlayerInfo[playerid][pReg] = dini_Int(string2,"Registered"); PlayerInfo[playerid][pSex] = dini_Int(string2,"Sex"); PlayerInfo[playerid][pAge] = dini_Int(string2,"Age"); PlayerInfo[playerid][pOrigin] = dini_Int(string2,"Origin"); PlayerInfo[playerid][pCK] = dini_Int(string2,"CK"); PlayerInfo[playerid][pMuted] = dini_Int(string2,"Muted"); PlayerInfo[playerid][pExp] = dini_Int(string2,"Respect"); PlayerInfo[playerid][pCash] = dini_Int(string2,"Money"); PlayerInfo[playerid][pAccount] = dini_Int(string2,"Bank"); PlayerInfo[playerid][pCrimes] = dini_Int(string2,"Crimes"); PlayerInfo[playerid][pKills] = dini_Int(string2,"Kills"); PlayerInfo[playerid][pDeaths] = dini_Int(string2,"Deaths"); PlayerInfo[playerid][pArrested] = dini_Int(string2,"Arrested"); PlayerInfo[playerid][pWantedDeaths] = dini_Int(string2,"WantedDeaths"); PlayerInfo[playerid][pPhoneBook] = dini_Int(string2,"Phonebook"); PlayerInfo[playerid][pLottoNr] = dini_Int(string2,"LottoNr"); PlayerInfo[playerid][pFishes] = dini_Int(string2,"Fishes"); PlayerInfo[playerid][pBiggestFish] = dini_Int(string2,"BiggestFish"); PlayerInfo[playerid][pJob] = dini_Int(string2,"Job"); PlayerInfo[playerid][pPayCheck] = dini_Int(string2,"Paycheck"); PlayerInfo[playerid][pHeadValue] = dini_Int(string2,"HeadValue"); PlayerInfo[playerid][pJailed] = dini_Int(string2,"Jailed"); PlayerInfo[playerid][pJailTime] = dini_Int(string2,"JailTime"); PlayerInfo[playerid][pMuteTime] = dini_Int(string2,"MuteTime"); PlayerInfo[playerid][pMats] = dini_Int(string2,"Materials"); PlayerInfo[playerid][pBoxMats] = dini_Int(string2,"MaterialsBox"); PlayerInfo[playerid][pDrugs] = dini_Int(string2,"Drugs"); PlayerInfo[playerid][pLeader] = dini_Int(string2,"Leader"); PlayerInfo[playerid][pMember] = dini_Int(string2,"Member"); PlayerInfo[playerid][pFMember] = dini_Int(string2,"FMember"); PlayerInfo[playerid][pRank] = dini_Int(string2,"Rank"); PlayerInfo[playerid][pChar] = dini_Int(string2,"Char"); PlayerInfo[playerid][pContractTime] = dini_Int(string2,"ContractTime"); PlayerInfo[playerid][pDetSkill] = dini_Int(string2,"DetSkill"); PlayerInfo[playerid][pSexSkill] = dini_Int(string2,"SexSkill"); PlayerInfo[playerid][pBoxSkill] = dini_Int(string2,"BoxSkill"); PlayerInfo[playerid][pLawSkill] = dini_Int(string2,"LawSkill"); PlayerInfo[playerid][pMechSkill] = dini_Int(string2,"MechSkill"); PlayerInfo[playerid][pJackSkill] = dini_Int(string2,"JackSkill"); PlayerInfo[playerid][pCarSkill] = dini_Int(string2,"CarSkill"); PlayerInfo[playerid][pNewsSkill] = dini_Int(string2,"NewsSkill"); PlayerInfo[playerid][pDrugsSkill] = dini_Int(string2,"DrugsSkill"); PlayerInfo[playerid][pCookSkill] = dini_Int(string2,"CookSkill"); PlayerInfo[playerid][pFishSkill] = dini_Int(string2,"FishSkill"); PlayerInfo[playerid][pSHealth] = dini_Float(string2,"pSHealth"); PlayerInfo[playerid][pHealth] = dini_Float(string2,"pHealth"); PlayerInfo[playerid][pInt] = dini_Int(string2,"Int"); PlayerInfo[playerid][pLocal] = dini_Int(string2,"Local"); PlayerInfo[playerid][pTeam] = dini_Int(string2,"Team"); PlayerInfo[playerid][pModel] = dini_Int(string2,"Model"); PlayerInfo[playerid][pPnumber] = dini_Int(string2,"PhoneNr"); PlayerInfo[playerid][pPhousekey] = dini_Int(string2,"House"); PlayerInfo[playerid][pPbiskey] = dini_Int(string2,"Bizz"); PlayerInfo[playerid][pPos_x] = dini_Float(string2,"Pos_x"); PlayerInfo[playerid][pPos_y] = dini_Float(string2,"Pos_y"); PlayerInfo[playerid][pPos_z] = dini_Float(string2,"Pos_y"); PlayerInfo[playerid][pCarLic] = dini_Int(string2,"CarLic"); PlayerInfo[playerid][pMotLic] = dini_Int(string2,"MotLic"); PlayerInfo[playerid][pFlyLic] = dini_Int(string2,"FlyLic"); PlayerInfo[playerid][pBoatLic] = dini_Int(string2,"BoatLic"); PlayerInfo[playerid][pFishLic] = dini_Int(string2,"FishLic"); PlayerInfo[playerid][pGunLic] = dini_Int(string2,"GunLic"); PlayerInfo[playerid][pGun1] = dini_Int(string2,"Gun1"); PlayerInfo[playerid][pGun2] = dini_Int(string2,"Gun2"); PlayerInfo[playerid][pGun3] = dini_Int(string2,"Gun3"); PlayerInfo[playerid][pGun4] = dini_Int(string2,"Gun4"); PlayerInfo[playerid][pAmmo1] = dini_Int(string2,"Ammo1"); PlayerInfo[playerid][pAmmo2] = dini_Int(string2,"Ammo2"); PlayerInfo[playerid][pAmmo3] = dini_Int(string2,"Ammo3"); PlayerInfo[playerid][pAmmo4] = dini_Int(string2,"Ammo4"); PlayerInfo[playerid][pCarTime] = dini_Int(string2,"CarTime"); PlayerInfo[playerid][pPayDay] = dini_Int(string2,"PayDay"); PlayerInfo[playerid][pPayDayHad] = dini_Int(string2,"PayDayHad"); PlayerInfo[playerid][pCDPlayer] = dini_Int(string2,"CDPlayer"); PlayerInfo[playerid][pWins] = dini_Int(string2,"Wins"); PlayerInfo[playerid][pLoses] = dini_Int(string2,"Loses"); PlayerInfo[playerid][pAlcoholPerk] = dini_Int(string2,"AlcoholPerk"); PlayerInfo[playerid][pDrugPerk] = dini_Int(string2,"DrugPerk"); PlayerInfo[playerid][pMiserPerk] = dini_Int(string2,"MiserPerk"); PlayerInfo[playerid][pPainPerk] = dini_Int(string2,"PainPerk"); PlayerInfo[playerid][pTraderPerk] = dini_Int(string2,"TraderPerk"); PlayerInfo[playerid][pWarns] = dini_Int(string2,"Warnings"); PlayerInfo[playerid][pTut] = dini_Int(string2,"Tutorial"); PlayerInfo[playerid][pMissionNr] = dini_Int(string2,"Mission"); PlayerInfo[playerid][pWarns] = dini_Int(string2,"Warnings"); PlayerInfo[playerid][pAdjustable] = dini_Int(string2,"Adjustable"); PlayerInfo[playerid][pFuel] = dini_Int(string2,"Fuel"); PlayerInfo[playerid][pMarried] = dini_Int(string2,"Married"); strmid(PlayerInfo[playerid][pMarriedTo],dini_Get(string2,"MarriedTo"),0,strlen(dini_Get(string2,"MarriedTo")),255); PlayerInfo[playerid][pCrack] = dini_Int(string2,"Crack"); PlayerInfo[playerid][pPassport] = dini_Int(string2,"Passport"); PlayerInfo[playerid][pCabinetTime] = dini_Int(string2,"CabinetTime"); } else { // return 1; } PlayerInfo[playerid][pAdjustable] = 0; ResetPlayerMoney(playerid); ConsumingMoney[playerid] = 1; GivePlayerMoney(playerid,PlayerInfo[playerid][pCash]); CurrentMoney[playerid] = PlayerInfo[playerid][pCash]; if(PlayerInfo[playerid][pReg] == 0) { PlayerInfo[playerid][pLevel] = 1; PlayerInfo[playerid][pSHealth] = 0.0; PlayerInfo[playerid][pHealth] = 50.0; PlayerInfo[playerid][pPos_x] = 2246.6; PlayerInfo[playerid][pPos_y] = -1161.9; PlayerInfo[playerid][pPos_z] = 1029.7; PlayerInfo[playerid][pInt] = 15; PlayerInfo[playerid][pLocal] = 255; PlayerInfo[playerid][pTeam] = 3; PlayerInfo[playerid][pModel] = 60; new randphone = 1000 + random(89999);//minimum 1000 max 9999 //giving one at the start PlayerInfo[playerid][pPnumber] = 07*randphone; PlayerInfo[playerid][pPhousekey] = 255; PlayerInfo[playerid][pPbiskey] = 255; PlayerInfo[playerid][pAccount] = 50000; PlayerInfo[playerid][pReg] = 1; GivePlayerMoney(playerid, 5000); } if(PlayerInfo[playerid][pCK] > 0) { Kick(playerid); } SetSpawnInfo(playerid, PlayerInfo[playerid][pTeam], PlayerInfo[playerid][pModel], PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z], 1.0, -1, -1, -1, -1, -1, -1); if(gTeam[playerid] == 0) { gTeam[playerid] = 3; } else { gTeam[playerid] = PlayerInfo[playerid][pTeam]; } gPlayerLogged[playerid] = 1; SpawnPlayer(playerid); format(tmp2, sizeof(tmp2), "~w~Bun venit ~n~~r~~h~ %s", playername2); DateProp(playerid); GameTextForPlayer(playerid, tmp2, 20, 1); if(PlayerInfo[playerid][pFMember] < 255) { format(tmp2, sizeof(tmp2), "Family MOTD: %s.", FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyMOTD]); SendClientMessage(playerid, COLOR_YELLOW, tmp2); } } return 1; }