[Pomoc]Sifra

Započeo Markinjoâ„¢, Jul 02, 2012, 19:19:53 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 4 gostiju pregledaju ovu temu.

Skripta koju koristim:Privatna
Detaljan opis problema:Napravio sam reg i log sistem , ali kada se neko registruje i treba da sacuva sifru(Key) ne sacuva onu koju je igrac napisao nego nesto drugo....A kada taj igrac proba da udje na server ukuca bilo koju sifru i udje...
Dio skripte:Sta treba ?
Neke slike/video za lakse dobivanje pomoci(neobavezno):


a da probas koristiti
y_ini include
ili dini
ili nesto tako

Citat: almir101 poslato Jul 03, 2012, 11:57:18 PRE PODNE
a da probas koristiti
y_ini include
ili dini
ili nesto tako
Ti mene uopste ne razumes , ja sam napravio da cuva sifre ali ne sacuva ono sto igrac napise nego nesto levo ....

BUMP ! Zna li iko ?????
Poslednja Izmena: Jul 03, 2012, 22:03:50 POSLE PODNE od markinjo.amx


Citat: David (Sabljak) poslato Jul 04, 2012, 15:26:05 POSLE PODNE
To su Hash Keyevei ,znaci slova pretvara u brojeve radi sigurnosti, a zasto uopce zelis vidjeti passworde? To mnogi koriste da bi krali accounte po drugim serverima....

Nemoras znacit ;)
npr nisi valjda glup da svugdje stavljas iste sifre :D a i ako nema mailer to mu moze dobro doc kad nego zaboravi sifru i ovaj mu posalje :P

Citat: David (Sabljak) poslato Jul 04, 2012, 15:26:05 POSLE PODNE
To su Hash Keyevei ,znaci slova pretvara u brojeve radi sigurnosti, a zasto uopce zelis vidjeti passworde? To mnogi koriste da bi krali accounte po drugim serverima....
Ne pretvara u brojeve nego u neka rtd slova....

Postaj taj kod da vidimo.

Last nick: Paradox

Evo reg i save sistem za acc.


Reg sistem
RegisterPlayer(playerid, password[])
{
if(IsPlayerConnected(playerid))
{
new string3[64],
    playername3[MAX_PLAYER_NAME];
   
GetPlayerName(playerid, playername3, sizeof(playername3));

format(string3, sizeof(string3), "/accounts/%s.ini", playername3);

new File: hFile = fopen(string3, io_write);

if (hFile)
{
    strmid(PlayerInfo[playerid][pKey], password, 0, strlen(password), 255);
   
    new var[64];
   
format(var, 64, "Key=%s\n", PlayerInfo[playerid][pKey]);fwrite(hFile, var);
format(var, 64, "Level=%d\n",PlayerInfo[playerid][pLevel]);fwrite(hFile, var);
format(var, 64, "AdminLevel=%d\n",PlayerInfo[playerid][pAdmin]);fwrite(hFile, var);
format(var, 64, "DonateRank=%d\n",PlayerInfo[playerid][pDonateRank]);fwrite(hFile, var);
format(var, 64, "UpgradePoints=%d\n",PlayerInfo[playerid][gPupgrade]);fwrite(hFile, var);
format(var, 64, "ConnectTime=%d\n", GetPVarInt(playerid, "ConnectTime"));fwrite(hFile,var);
format(var, 64, "Registered=%d\n", GetPVarInt(playerid, "Registered"));fwrite(hFile,var);
format(var, 64, "Sex=%d\n",PlayerInfo[playerid][pSex]);fwrite(hFile, var);
format(var, 64, "Age=%d\n",PlayerInfo[playerid][pAge]);fwrite(hFile, var);
format(var, 64, "Origin=%d\n",PlayerInfo[playerid][pOrigin]);fwrite(hFile, var);
format(var, 64, "Muted=%d\n",PlayerInfo[playerid][pMuted]);fwrite(hFile, var);
format(var, 64, "Respect=%d\n",PlayerInfo[playerid][pExp]);fwrite(hFile, var);
format(var, 64, "Money=%d\n",PlayerInfo[playerid][pMoney]);fwrite(hFile, var);
format(var, 64, "Bank=%d\n",PlayerInfo[playerid][pAccount]);fwrite(hFile, var);
format(var, 64, "Crimes=%d\n",PlayerInfo[playerid][pCrimes]);fwrite(hFile, var);
format(var, 64, "Kills=%d\n",PlayerInfo[playerid][pKills]);fwrite(hFile, var);
format(var, 64, "BankCard=%d\n", GetPVarInt(playerid, "BankCard"));fwrite(hFile,var);
format(var, 64, "Arrested=%d\n",PlayerInfo[playerid][pArrested]);fwrite(hFile, var);
format(var, 64, "WantedDeaths=%d\n",PlayerInfo[playerid][pWantedDeaths]);fwrite(hFile, var);
format(var, 64, "Phonebook=%d\n",PlayerInfo[playerid][pPhoneBook]);fwrite(hFile, var);
format(var, 64, "Fishes=%d\n",PlayerInfo[playerid][pFishes]);fwrite(hFile, var);
format(var, 64, "BiggestFish=%d\n",PlayerInfo[playerid][pBiggestFish]);fwrite(hFile, var);
format(var, 64, "Job=%d\n",PlayerInfo[playerid][pJob]);fwrite(hFile, var);
format(var, 64, "Paycheck=%d\n",PlayerInfo[playerid][pPayCheck]);fwrite(hFile, var);
format(var, 64, "HeadValue=%d\n",PlayerInfo[playerid][pHeadValue]);fwrite(hFile, var);
format(var, 64, "Jailed=%d\n",PlayerInfo[playerid][pJailed]);fwrite(hFile, var);
format(var, 64, "JailTime=%d\n",PlayerInfo[playerid][pJailTime]);fwrite(hFile, var);
format(var, 64, "Materials=%d\n",PlayerInfo[playerid][pMats]);fwrite(hFile, var);
format(var, 64, "Drugs=%d\n",PlayerInfo[playerid][pDrugs]);fwrite(hFile, var);
format(var, 64, "Leader=%d\n",PlayerInfo[playerid][pLeader]);fwrite(hFile, var);
format(var, 64, "Member=%d\n",PlayerInfo[playerid][pMember]);fwrite(hFile, var);
format(var, 64, "Rank=%d\n",PlayerInfo[playerid][pRank]);fwrite(hFile, var);
format(var, 64, "Char=%d\n",PlayerInfo[playerid][pChar]);fwrite(hFile, var);
format(var, 64, "ContractTime=%d\n",PlayerInfo[playerid][pContractTime]);fwrite(hFile, var);
format(var, 64, "DetSkill=%d\n",PlayerInfo[playerid][pDetSkill]);fwrite(hFile, var);
format(var, 64, "SexSkill=%d\n",PlayerInfo[playerid][pSexSkill]);fwrite(hFile, var);
format(var, 64, "BoxSkill=%d\n",PlayerInfo[playerid][pBoxSkill]);fwrite(hFile, var);
format(var, 64, "LawSkill=%d\n",PlayerInfo[playerid][pLawSkill]);fwrite(hFile, var);
format(var, 64, "MechSkill=%d\n",PlayerInfo[playerid][pMechSkill]);fwrite(hFile, var);
format(var, 64, "JackSkill=%d\n",PlayerInfo[playerid][pJackSkill]);fwrite(hFile, var);
format(var, 64, "CarSkill=%d\n",PlayerInfo[playerid][pCarSkill]);fwrite(hFile, var);
format(var, 64, "NewsSkill=%d\n",PlayerInfo[playerid][pNewsSkill]);fwrite(hFile, var);
format(var, 64, "BrojNews=%d\n",PlayerInfo[playerid][pBrojNews]);fwrite(hFile, var);
format(var, 64, "DrugsSkill=%d\n",PlayerInfo[playerid][pDrugsSkill]);fwrite(hFile, var);
format(var, 64, "CookSkill=%d\n",PlayerInfo[playerid][pCookSkill]);fwrite(hFile, var);
format(var, 64, "FishSkill=%d\n",PlayerInfo[playerid][pFishSkill]);fwrite(hFile, var);
format(var, 64, "pSHealth=%.1f\n",PlayerInfo[playerid][pSHealth]);fwrite(hFile, var);
            GetPlayerHealth(playerid,PlayerInfo[playerid][pHealth]);
format(var, 64, "pHealth=%.1f\n",PlayerInfo[playerid][pHealth]);fwrite(hFile, var);
format(var, 64, "Int=%d\n",PlayerInfo[playerid][pInt]);fwrite(hFile, var);
format(var, 64, "CrashedVW=%d\n", GetPVarInt(playerid, "CrashedVW"));fwrite(hFile,var);
format(var, 64, "Local=%d\n",PlayerInfo[playerid][pLocal]);fwrite(hFile, var);
format(var, 64, "Team=%d\n",PlayerInfo[playerid][pTeam]);fwrite(hFile, var);
format(var, 64, "Model=%d\n",PlayerInfo[playerid][pModel]);fwrite(hFile, var);
format(var, 64, "PhoneNr=%d\n",PlayerInfo[playerid][pPnumber]);fwrite(hFile, var);
format(var, 64, "House=%d\n",PlayerInfo[playerid][pPhousekey]);fwrite(hFile, var);
format(var, 64, "Apartment=%d\n",PlayerInfo[playerid][pApartment]);fwrite(hFile, var);
format(var, 64, "RPUcitelj=%d\n", GetPVarInt(playerid, "RPUcitelj"));fwrite(hFile,var);
format(var, 64, "Bizz=%d\n",PlayerInfo[playerid][pPbiskey]);fwrite(hFile, var);
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(GetPVarInt(playerid, "Spectate") != 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];
}
format(var, 64, "Pos_x=%.1f\n",PlayerInfo[playerid][pPos_x]);fwrite(hFile, var);
format(var, 64, "Pos_y=%.1f\n",PlayerInfo[playerid][pPos_y]);fwrite(hFile, var);
format(var, 64, "Pos_z=%.1f\n",PlayerInfo[playerid][pPos_z]);fwrite(hFile, var);
format(var, 64, "CarLic=%d\n",PlayerInfo[playerid][pCarLic]);fwrite(hFile, var);
format(var, 64, "BikeLic=%d\n",PlayerInfo[playerid][pBikeLic]);fwrite(hFile, var);
                format(var, 64, "FlyLic=%d\n",PlayerInfo[playerid][pFlyLic]);fwrite(hFile, var);
format(var, 64, "BoatLic=%d\n",PlayerInfo[playerid][pBoatLic]);fwrite(hFile, var);
format(var, 64, "FishLic=%d\n",PlayerInfo[playerid][pFishLic]);fwrite(hFile, var);
format(var, 64, "GunLic=%d\n",PlayerInfo[playerid][pGunLic]);fwrite(hFile, var);
format(var, 64, "Gun1=%d\n", GetPVarInt(playerid, "Gun1"));fwrite(hFile,var);
format(var, 64, "Gun2=%d\n", GetPVarInt(playerid, "Gun2"));fwrite(hFile,var);
format(var, 64, "Gun3=%d\n", GetPVarInt(playerid, "Gun3"));fwrite(hFile,var);
format(var, 64, "Gun4=%d\n", GetPVarInt(playerid, "Gun4"));fwrite(hFile,var);
format(var, 64, "Gun5=%d\n", GetPVarInt(playerid, "Gun5"));fwrite(hFile,var);
format(var, 64, "Melee=%d\n", GetPVarInt(playerid, "Melee"));fwrite(hFile,var);
format(var, 64, "MaskID=%d\n", GetPVarInt(playerid, "MaskID"));fwrite(hFile,var);
format(var, 64, "Gun8=%d\n", GetPVarInt(playerid, "Gun8"));fwrite(hFile,var);
format(var, 64, "Gun9=%d\n", GetPVarInt(playerid, "Gun9"));fwrite(hFile,var);
format(var, 64, "Ammo1=%d\n", GetPVarInt(playerid, "Ammo1"));fwrite(hFile,var);
format(var, 64, "Ammo2=%d\n", GetPVarInt(playerid, "Ammo2"));fwrite(hFile,var);
format(var, 64, "Ammo3=%d\n", GetPVarInt(playerid, "Ammo3"));fwrite(hFile,var);
format(var, 64, "Ammo4=%d\n", GetPVarInt(playerid, "Ammo4"));fwrite(hFile,var);
format(var, 64, "Ammo5=%d\n", GetPVarInt(playerid, "Ammo5"));fwrite(hFile,var);
format(var, 64, "FreeWorks=%d\n", GetPVarInt(playerid, "FreeWorks"));fwrite(hFile,var);
format(var, 64, "Helmet=%d\n", GetPVarInt(playerid, "Helmet"));fwrite(hFile,var);
format(var, 64, "Ammo8=%d\n", GetPVarInt(playerid, "Ammo8"));fwrite(hFile,var);
format(var, 64, "Ammo9=%d\n", GetPVarInt(playerid, "Ammo9"));fwrite(hFile,var);
format(var, 64, "CarTime=%d\n",PlayerInfo[playerid][pCarTime]);fwrite(hFile, var);
format(var, 64, "PayDay=%d\n",PlayerInfo[playerid][pPayDay]);fwrite(hFile, var);
format(var, 64, "PayDayHad=%d\n",PlayerInfo[playerid][pPayDayHad]);fwrite(hFile, var);
format(var, 64, "Radio=%d\n", GetPVarInt(playerid, "Radio"));fwrite(hFile,var);
format(var, 64, "Wins=%d\n", GetPVarInt(playerid, "Wins"));fwrite(hFile,var);
                format(var, 64, "Loses=%d\n", GetPVarInt(playerid, "Loses"));fwrite(hFile,var);
format(var, 64, "AlcoholPerk=%d\n",PlayerInfo[playerid][pAlcoholPerk]);fwrite(hFile, var);
format(var, 64, "DrugPerk=%d\n",PlayerInfo[playerid][pDrugPerk]);fwrite(hFile, var);
format(var, 64, "MiserPerk=%d\n",PlayerInfo[playerid][pMiserPerk]);fwrite(hFile, var);
format(var, 64, "PainPerk=%d\n",PlayerInfo[playerid][pPainPerk]);fwrite(hFile, var);
format(var, 64, "TraderPerk=%d\n",PlayerInfo[playerid][pTraderPerk]);fwrite(hFile, var);
format(var, 64, "RPPassed=%d\n", GetPVarInt(playerid, "RPPassed"));fwrite(hFile,var);
format(var, 64, "Warnings=%d\n",PlayerInfo[playerid][pWarns]);fwrite(hFile, var);
format(var, 64, "Adjustable=%d\n",PlayerInfo[playerid][pAdjustable]);fwrite(hFile, var);
format(var, 64, "Fuel=%d\n", GetPVarInt(playerid, "Fuel"));fwrite(hFile,var);
format(var, 64, "Married=%d\n",PlayerInfo[playerid][pMarried]);fwrite(hFile, var);
format(var, 64, "MarriedTo=%s\n",PlayerInfo[playerid][pMarriedTo]);fwrite(hFile, var);
format(var, 64, "Passport=%d\n",PlayerInfo[playerid][pPassport]);fwrite(hFile, var);
format(var, 64, "Watch=%d\n",PlayerInfo[playerid][pWatch]);fwrite(hFile, var);
format(var, 64, "Tools=%d\n",PlayerInfo[playerid][pTools]);fwrite(hFile, var);
format(var, 64, "GameMaster=%d\n",PlayerInfo[playerid][pGameMaster]);fwrite(hFile, var);
format(var, 64, "LastX=%.1f\n",PlayerInfo[playerid][pLastX]);fwrite(hFile, var);
format(var, 64, "LastY=%.1f\n",PlayerInfo[playerid][pLastY]);fwrite(hFile, var);
format(var, 64, "LastZ=%.1f\n",PlayerInfo[playerid][pLastZ]);fwrite(hFile, var);
format(var, 64, "Crashed=%d\n", GetPVarInt(playerid, "Crashed"));fwrite(hFile,var);
format(var, 64, "TempHealth=%.1f\n",PlayerInfo[playerid][pTempHealth]);fwrite(hFile, var);
format(var, 64, "TempArmour=%.1f\n",PlayerInfo[playerid][pTempArmour]);fwrite(hFile, var);
format(var, 64, "MayorTeam=%d\n",PlayerInfo[playerid][pMayorTeam]);fwrite(hFile, var);
format(var, 64, "CrashInt=%d\n", GetPVarInt(playerid, "CrashInt"));fwrite(hFile,var);
format(var, 64, "FightStyle=%d\n",PlayerInfo[playerid][pFightStyle]);fwrite(hFile, var);
format(var, 64, "PayDayMoney=%d\n",PlayerInfo[playerid][pPayDayMoney]);fwrite(hFile, var);
format(var, 64, "Voted=%d\n",PlayerInfo[playerid][pVoted]);fwrite(hFile, var);
format(var, 64, "SmuggSkill=%d\n",PlayerInfo[playerid][pSmuggSkill]);fwrite(hFile, var);
format(var, 64, "Note1=%s\n",PlayerInfo[playerid][pNote1]);fwrite(hFile, var);
format(var, 64, "Note1s=%d\n",PlayerInfo[playerid][pNote1s]);fwrite(hFile, var);
format(var, 64, "Note2=%s\n",PlayerInfo[playerid][pNote2]);fwrite(hFile, var);
format(var, 64, "Note2s=%d\n",PlayerInfo[playerid][pNote2s]);fwrite(hFile, var);
format(var, 64, "Note3=%s\n",PlayerInfo[playerid][pNote3]);fwrite(hFile, var);
format(var, 64, "Note3s=%d\n",PlayerInfo[playerid][pNote3s]);fwrite(hFile, var);
format(var, 64, "Note4=%s\n",PlayerInfo[playerid][pNote4]);fwrite(hFile, var);
format(var, 64, "Note4s=%d\n",PlayerInfo[playerid][pNote4s]);fwrite(hFile, var);
format(var, 64, "Note5=%s\n",PlayerInfo[playerid][pNote5]);fwrite(hFile, var);
format(var, 64, "Note5s=%d\n",PlayerInfo[playerid][pNote5s]);fwrite(hFile, var);
format(var, 64, "Goods=%d\n",PlayerInfo[playerid][pGoods]);fwrite(hFile, var);
format(var, 64, "GunSkill=%d\n",PlayerInfo[playerid][pGunSkill]);fwrite(hFile, var);
format(var, 64, "pMask=%d\n", GetPVarInt(playerid, "pMask"));fwrite(hFile,var);
format(var, 64, "StealTime=%d\n", GetPVarInt(playerid, "StealTime"));fwrite(hFile,var);
format(var, 64, "Cocaine=%d\n", GetPVarInt(playerid, "Cocaine"));fwrite(hFile,var);
format(var, 64, "Heroin=%d\n", GetPVarInt(playerid, "Heroin"));fwrite(hFile,var);
format(var, 64, "Marijuana=%d\n", GetPVarInt(playerid, "Marijuana"));fwrite(hFile,var);
format(var, 64, "Inection=%d\n", GetPVarInt(playerid, "Inection"));fwrite(hFile,var);
format(var, 64, "StealSkill=%d\n",PlayerInfo[playerid][pStealSkill]);fwrite(hFile, var);
format(var, 64, "MParts=%d\n", GetPVarInt(playerid, "MParts"));fwrite(hFile,var);
format(var, 64, "IParts=%d\n", GetPVarInt(playerid, "IParts"));fwrite(hFile,var);
format(var, 64, "Toolkit=%d\n", GetPVarInt(playerid, "Toolkit"));fwrite(hFile,var);
format(var, 64, "StoredDrugs=%d\n",PlayerInfo[playerid][pStoredDrugs]);fwrite(hFile, var);
format(var, 64, "StoredMats=%d\n",PlayerInfo[playerid][pStoredMats]);fwrite(hFile, var);
format(var, 64, "DignutKredit=%d\n",PlayerInfo[playerid][pDignutKredit]);fwrite(hFile, var);
format(var, 64, "Rate=%d\n",PlayerInfo[playerid][pRate]);fwrite(hFile, var);
format(var, 64, "Kosa=%d\n",PlayerInfo[playerid][pKosa]);fwrite(hFile, var);
format(var, 64, "Event=%d\n",PlayerInfo[playerid][pevkey]);fwrite(hFile, var);
format(var, 64, "MustRead=%d\n", GetPVarInt(playerid, "MustRead"));fwrite(hFile,var);
format(var, 64, "DakarWins=%d\n", GetPVarInt(playerid, "DakarWins"));fwrite(hFile,var);
format(var, 64, "MaratonWins=%d\n", GetPVarInt(playerid, "MaratonWins"));fwrite(hFile,var);
format(var, 64, "QuadWins=%d\n", GetPVarInt(playerid, "QuadWins"));fwrite(hFile,var);
format(var, 64, "PDArrest=%d\n", GetPVarInt(playerid, "PDStatsArrest"));fwrite(hFile,var);
format(var, 64, "PDMats=%d\n", GetPVarInt(playerid, "PDStatsMats"));fwrite(hFile,var);
format(var, 64, "PDDrug=%d\n", GetPVarInt(playerid, "PDStatsDrug"));fwrite(hFile,var);
format(var, 64, "PDTicket=%d\n", GetPVarInt(playerid, "PDStatsTicket"));fwrite(hFile,var);
format(var, 64, "PDTicketMoney=%d\n", GetPVarInt(playerid, "PDStatsTicketMoney"));fwrite(hFile,var);
format(var, 64, "MobileMoney=%d\n", GetPVarInt(playerid, "pMobileMoney"));fwrite(hFile,var);
                format(var, 64, "KickReason=%d\n", GetPVarInt(playerid, "KickReason"));fwrite(hFile,var);
                format(var, 64, "DutySystem=%d\n", GetPVarInt(playerid, "DutySystem"));fwrite(hFile,var);
                format(var, 64, "Bomb=%d\n",PlayerInfo[playerid][pBomb]);fwrite(hFile, var);
format(var, 64, "Bombx=%d\n",PlayerInfo[playerid][pBombx]);fwrite(hFile, var);
format(var, 64, "Bomby=%d\n",PlayerInfo[playerid][pBomby]);fwrite(hFile, var);
format(var, 64, "Bombz=%d\n",PlayerInfo[playerid][pBombz]);fwrite(hFile, var);
format(var, 64, "BombE=%d\n", GetPVarInt(playerid, "BombE"));fwrite(hFile,var);
format(var, 64, "BombCar=%d\n", GetPVarInt(playerid, "BombCar"));fwrite(hFile,var);
format(var, 64, "PublicCredit=%d\n", GetPVarInt(playerid, "pPublicCredit"));fwrite(hFile,var);
/* format(var, 64, "TimesUsedHeroin=%d\n", GetPVarInt(playerid, "TimesUsedHeroin"));fwrite(hFile,var);
format(var, 64, "HeroinAddict=%d\n", GetPVarInt(playerid, "HeroinAddict"));fwrite(hFile,var);*/
format(var, 64, "UsingHeroin=%d\n", GetPVarInt(playerid, "UsingHeroin"));fwrite(hFile,var);
// format(var, 64, "AddictTimer=%d\n", GetPVarInt(playerid, "AddictTimer"));fwrite(hFile,var);
format(var, 64, "UsingCocaine=%d\n", GetPVarInt(playerid, "UsingCocaine"));fwrite(hFile,var);
format(var, 64, "Crack=%d\n", GetPVarInt(playerid, "Crack"));fwrite(hFile,var);
format(var, 64, "Speed=%d\n", GetPVarInt(playerid, "Speed"));fwrite(hFile,var);
format(var, 64, "Ciggaretes=%d\n", GetPVarInt(playerid, "Ciggaretes"));fwrite(hFile,var);
format(var, 64, "Lighter=%d\n", GetPVarInt(playerid, "Lighter"));fwrite(hFile,var);
format(var, 64, "MatsHolding=%d\n", GetPVarInt(playerid, "MatsHolding"));fwrite(hFile,var);
format(var, 64, "TakenDrugs=%d\n", GetPVarInt(playerid, "TakenDrugs"));fwrite(hFile,var);
format(var, 64, "WorkerSkill=%d\n", GetPVarInt(playerid, "WorkerSkill"));fwrite(hFile,var);
format(var, 64, "FarmerSkill=%d\n", GetPVarInt(playerid, "FarmerSkill"));fwrite(hFile,var);
format(var, 64, "TrainSkill=%d\n", GetPVarInt(playerid, "TrainSkill"));fwrite(hFile,var);
format(var, 64, "SmetlarSkill=%d\n", GetPVarInt(playerid, "SmetlarSkill"));fwrite(hFile,var);
format(var, 64, "SprunkSkill=%d\n", GetPVarInt(playerid, "SprunkSkill"));fwrite(hFile,var);
format(var, 64, "KazneniBodovi=%d\n", GetPVarInt(playerid, "KazneniBodovi"));fwrite(hFile,var);
format(var, 64, "Lampa=%d\n", GetPVarInt(playerid, "Lampa"));fwrite(hFile,var);
format(var, 64, "HeroinOvisnik=%d\n",PlayerInfo[playerid][pHeroinOvisnik]);fwrite(hFile, var);
format(var, 64, "CrackOvisnik=%d\n",PlayerInfo[playerid][pCrackOvisnik]);fwrite(hFile, var);
format(var, 64, "HeroinIndicator=%d\n",PlayerInfo[playerid][pHeroinIndicator]);fwrite(hFile, var);
format(var, 64, "CrackIndicator=%d\n",PlayerInfo[playerid][pCrackIndicator]);fwrite(hFile, var);
format(var, 64, "HeroinUsed=%d\n",PlayerInfo[playerid][pHeroinUsed]);fwrite(hFile, var);
format(var, 64, "CrackUsed=%d\n",PlayerInfo[playerid][pCrackUsed]);fwrite(hFile, var);
format(var, 64, "CigareteOvisnik=%d\n",PlayerInfo[playerid][pCigareteOvisnik]);fwrite(hFile, var);
format(var, 64, "CigareteUsed=%d\n",PlayerInfo[playerid][pCigareteUsed]);fwrite(hFile, var);
format(var, 64, "CigareteIndicator=%d\n",PlayerInfo[playerid][pCigareteIndicator]);fwrite(hFile, var);
format(var, 64, "TookDrugs=%d\n",PlayerInfo[playerid][pTookDrugs]);fwrite(hFile, var);
fclose(hFile);
}
}
return 1;
}


Save sistem
SavePlayer(playerid)
{
if(IsPlayerConnected(playerid))
{
if(GetPVarInt(playerid, "gPlayerLogged"))
{
new string3[64],
    playername3[MAX_PLAYER_NAME];
   
GetPlayerName(playerid, playername3, sizeof(playername3));

format(string3, sizeof(string3), "/accounts/%s.ini", playername3);

new File: hFile = fopen(string3, io_write);

if (hFile)
{
new var[64];
format(var, 64, "Key=%s\n", PlayerInfo[playerid][pKey]);fwrite(hFile, var);
format(var, 64, "Level=%d\n",PlayerInfo[playerid][pLevel]);fwrite(hFile, var);
format(var, 64, "AdminLevel=%d\n",PlayerInfo[playerid][pAdmin]);fwrite(hFile, var);
format(var, 64, "DonateRank=%d\n",PlayerInfo[playerid][pDonateRank]);fwrite(hFile, var);
format(var, 64, "UpgradePoints=%d\n",PlayerInfo[playerid][gPupgrade]);fwrite(hFile, var);
format(var, 64, "ConnectTime=%d\n", GetPVarInt(playerid, "ConnectTime"));fwrite(hFile,var);
format(var, 64, "Registered=%d\n", GetPVarInt(playerid, "Registered"));fwrite(hFile,var);
format(var, 64, "Sex=%d\n",PlayerInfo[playerid][pSex]);fwrite(hFile, var);
format(var, 64, "Age=%d\n",PlayerInfo[playerid][pAge]);fwrite(hFile, var);
format(var, 64, "Origin=%d\n",PlayerInfo[playerid][pOrigin]);fwrite(hFile, var);
format(var, 64, "Muted=%d\n",PlayerInfo[playerid][pMuted]);fwrite(hFile, var);
format(var, 64, "Respect=%d\n",PlayerInfo[playerid][pExp]);fwrite(hFile, var);
format(var, 64, "Money=%d\n",PlayerInfo[playerid][pMoney]);fwrite(hFile, var);
format(var, 64, "Bank=%d\n",PlayerInfo[playerid][pAccount]);fwrite(hFile, var);
format(var, 64, "Crimes=%d\n",PlayerInfo[playerid][pCrimes]);fwrite(hFile, var);
format(var, 64, "Kills=%d\n",PlayerInfo[playerid][pKills]);fwrite(hFile, var);
format(var, 64, "BankCard=%d\n", GetPVarInt(playerid, "BankCard"));fwrite(hFile,var);
format(var, 64, "Arrested=%d\n",PlayerInfo[playerid][pArrested]);fwrite(hFile, var);
format(var, 64, "WantedDeaths=%d\n",PlayerInfo[playerid][pWantedDeaths]);fwrite(hFile, var);
format(var, 64, "Phonebook=%d\n",PlayerInfo[playerid][pPhoneBook]);fwrite(hFile, var);
format(var, 64, "Fishes=%d\n",PlayerInfo[playerid][pFishes]);fwrite(hFile, var);
format(var, 64, "BiggestFish=%d\n",PlayerInfo[playerid][pBiggestFish]);fwrite(hFile, var);
format(var, 64, "Job=%d\n",PlayerInfo[playerid][pJob]);fwrite(hFile, var);
format(var, 64, "Paycheck=%d\n",PlayerInfo[playerid][pPayCheck]);fwrite(hFile, var);
format(var, 64, "HeadValue=%d\n",PlayerInfo[playerid][pHeadValue]);fwrite(hFile, var);
format(var, 64, "Jailed=%d\n",PlayerInfo[playerid][pJailed]);fwrite(hFile, var);
format(var, 64, "JailTime=%d\n",PlayerInfo[playerid][pJailTime]);fwrite(hFile, var);
format(var, 64, "Materials=%d\n",PlayerInfo[playerid][pMats]);fwrite(hFile, var);
format(var, 64, "Drugs=%d\n",PlayerInfo[playerid][pDrugs]);fwrite(hFile, var);
format(var, 64, "Leader=%d\n",PlayerInfo[playerid][pLeader]);fwrite(hFile, var);
format(var, 64, "Member=%d\n",PlayerInfo[playerid][pMember]);fwrite(hFile, var);
format(var, 64, "Rank=%d\n",PlayerInfo[playerid][pRank]);fwrite(hFile, var);
format(var, 64, "Char=%d\n",PlayerInfo[playerid][pChar]);fwrite(hFile, var);
format(var, 64, "ContractTime=%d\n",PlayerInfo[playerid][pContractTime]);fwrite(hFile, var);
format(var, 64, "DetSkill=%d\n",PlayerInfo[playerid][pDetSkill]);fwrite(hFile, var);
format(var, 64, "SexSkill=%d\n",PlayerInfo[playerid][pSexSkill]);fwrite(hFile, var);
format(var, 64, "BoxSkill=%d\n",PlayerInfo[playerid][pBoxSkill]);fwrite(hFile, var);
format(var, 64, "LawSkill=%d\n",PlayerInfo[playerid][pLawSkill]);fwrite(hFile, var);
format(var, 64, "MechSkill=%d\n",PlayerInfo[playerid][pMechSkill]);fwrite(hFile, var);
format(var, 64, "JackSkill=%d\n",PlayerInfo[playerid][pJackSkill]);fwrite(hFile, var);
format(var, 64, "CarSkill=%d\n",PlayerInfo[playerid][pCarSkill]);fwrite(hFile, var);
format(var, 64, "NewsSkill=%d\n",PlayerInfo[playerid][pNewsSkill]);fwrite(hFile, var);
format(var, 64, "BrojNews=%d\n",PlayerInfo[playerid][pBrojNews]);fwrite(hFile, var);
format(var, 64, "DrugsSkill=%d\n",PlayerInfo[playerid][pDrugsSkill]);fwrite(hFile, var);
format(var, 64, "CookSkill=%d\n",PlayerInfo[playerid][pCookSkill]);fwrite(hFile, var);
format(var, 64, "FishSkill=%d\n",PlayerInfo[playerid][pFishSkill]);fwrite(hFile, var);
format(var, 64, "pSHealth=%.1f\n",PlayerInfo[playerid][pSHealth]);fwrite(hFile, var);
            GetPlayerHealth(playerid,PlayerInfo[playerid][pHealth]);
format(var, 64, "pHealth=%.1f\n",PlayerInfo[playerid][pHealth]);fwrite(hFile, var);
format(var, 64, "Int=%d\n",PlayerInfo[playerid][pInt]);fwrite(hFile, var);
format(var, 64, "CrashedVW=%d\n", GetPVarInt(playerid, "CrashedVW"));fwrite(hFile,var);
format(var, 64, "Local=%d\n",PlayerInfo[playerid][pLocal]);fwrite(hFile, var);
format(var, 64, "Team=%d\n",PlayerInfo[playerid][pTeam]);fwrite(hFile, var);
format(var, 64, "Model=%d\n",PlayerInfo[playerid][pModel]);fwrite(hFile, var);
format(var, 64, "PhoneNr=%d\n",PlayerInfo[playerid][pPnumber]);fwrite(hFile, var);
format(var, 64, "House=%d\n",PlayerInfo[playerid][pPhousekey]);fwrite(hFile, var);
format(var, 64, "Apartment=%d\n",PlayerInfo[playerid][pApartment]);fwrite(hFile, var);
format(var, 64, "RPUcitelj=%d\n", GetPVarInt(playerid, "RPUcitelj"));fwrite(hFile,var);
format(var, 64, "Bizz=%d\n",PlayerInfo[playerid][pPbiskey]);fwrite(hFile, var);
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(GetPVarInt(playerid, "Spectate") != 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];
}
format(var, 64, "Pos_x=%.1f\n",PlayerInfo[playerid][pPos_x]);fwrite(hFile, var);
format(var, 64, "Pos_y=%.1f\n",PlayerInfo[playerid][pPos_y]);fwrite(hFile, var);
format(var, 64, "Pos_z=%.1f\n",PlayerInfo[playerid][pPos_z]);fwrite(hFile, var);
format(var, 64, "CarLic=%d\n",PlayerInfo[playerid][pCarLic]);fwrite(hFile, var);
format(var, 64, "BikeLic=%d\n",PlayerInfo[playerid][pBikeLic]);fwrite(hFile, var);
                format(var, 64, "FlyLic=%d\n",PlayerInfo[playerid][pFlyLic]);fwrite(hFile, var);
format(var, 64, "BoatLic=%d\n",PlayerInfo[playerid][pBoatLic]);fwrite(hFile, var);
format(var, 64, "FishLic=%d\n",PlayerInfo[playerid][pFishLic]);fwrite(hFile, var);
format(var, 64, "GunLic=%d\n",PlayerInfo[playerid][pGunLic]);fwrite(hFile, var);
format(var, 64, "Gun1=%d\n", GetPVarInt(playerid, "Gun1"));fwrite(hFile,var);
format(var, 64, "Gun2=%d\n", GetPVarInt(playerid, "Gun2"));fwrite(hFile,var);
format(var, 64, "Gun3=%d\n", GetPVarInt(playerid, "Gun3"));fwrite(hFile,var);
format(var, 64, "Gun4=%d\n", GetPVarInt(playerid, "Gun4"));fwrite(hFile,var);
format(var, 64, "Gun5=%d\n", GetPVarInt(playerid, "Gun5"));fwrite(hFile,var);
format(var, 64, "Melee=%d\n", GetPVarInt(playerid, "Melee"));fwrite(hFile,var);
format(var, 64, "MaskID=%d\n", GetPVarInt(playerid, "MaskID"));fwrite(hFile,var);
format(var, 64, "Gun8=%d\n", GetPVarInt(playerid, "Gun8"));fwrite(hFile,var);
format(var, 64, "Gun9=%d\n", GetPVarInt(playerid, "Gun9"));fwrite(hFile,var);
format(var, 64, "Ammo1=%d\n", GetPVarInt(playerid, "Ammo1"));fwrite(hFile,var);
format(var, 64, "Ammo2=%d\n", GetPVarInt(playerid, "Ammo2"));fwrite(hFile,var);
format(var, 64, "Ammo3=%d\n", GetPVarInt(playerid, "Ammo3"));fwrite(hFile,var);
format(var, 64, "Ammo4=%d\n", GetPVarInt(playerid, "Ammo4"));fwrite(hFile,var);
format(var, 64, "Ammo5=%d\n", GetPVarInt(playerid, "Ammo5"));fwrite(hFile,var);
format(var, 64, "FreeWorks=%d\n", GetPVarInt(playerid, "FreeWorks"));fwrite(hFile,var);
format(var, 64, "Helmet=%d\n", GetPVarInt(playerid, "Helmet"));fwrite(hFile,var);
format(var, 64, "Ammo8=%d\n", GetPVarInt(playerid, "Ammo8"));fwrite(hFile,var);
format(var, 64, "Ammo9=%d\n", GetPVarInt(playerid, "Ammo9"));fwrite(hFile,var);
format(var, 64, "CarTime=%d\n",PlayerInfo[playerid][pCarTime]);fwrite(hFile, var);
format(var, 64, "PayDay=%d\n",PlayerInfo[playerid][pPayDay]);fwrite(hFile, var);
format(var, 64, "PayDayHad=%d\n",PlayerInfo[playerid][pPayDayHad]);fwrite(hFile, var);
format(var, 64, "Radio=%d\n", GetPVarInt(playerid, "Radio"));fwrite(hFile,var);
format(var, 64, "Wins=%d\n", GetPVarInt(playerid, "Wins"));fwrite(hFile,var);
                format(var, 64, "Loses=%d\n", GetPVarInt(playerid, "Loses"));fwrite(hFile,var);
format(var, 64, "AlcoholPerk=%d\n",PlayerInfo[playerid][pAlcoholPerk]);fwrite(hFile, var);
format(var, 64, "DrugPerk=%d\n",PlayerInfo[playerid][pDrugPerk]);fwrite(hFile, var);
format(var, 64, "MiserPerk=%d\n",PlayerInfo[playerid][pMiserPerk]);fwrite(hFile, var);
format(var, 64, "PainPerk=%d\n",PlayerInfo[playerid][pPainPerk]);fwrite(hFile, var);
format(var, 64, "TraderPerk=%d\n",PlayerInfo[playerid][pTraderPerk]);fwrite(hFile, var);
format(var, 64, "RPPassed=%d\n", GetPVarInt(playerid, "RPPassed"));fwrite(hFile,var);
format(var, 64, "Warnings=%d\n",PlayerInfo[playerid][pWarns]);fwrite(hFile, var);
format(var, 64, "Adjustable=%d\n",PlayerInfo[playerid][pAdjustable]);fwrite(hFile, var);
format(var, 64, "Fuel=%d\n", GetPVarInt(playerid, "Fuel"));fwrite(hFile,var);
format(var, 64, "Married=%d\n",PlayerInfo[playerid][pMarried]);fwrite(hFile, var);
format(var, 64, "MarriedTo=%s\n",PlayerInfo[playerid][pMarriedTo]);fwrite(hFile, var);
format(var, 64, "Passport=%d\n",PlayerInfo[playerid][pPassport]);fwrite(hFile, var);
format(var, 64, "Watch=%d\n",PlayerInfo[playerid][pWatch]);fwrite(hFile, var);
format(var, 64, "Tools=%d\n",PlayerInfo[playerid][pTools]);fwrite(hFile, var);
format(var, 64, "GameMaster=%d\n",PlayerInfo[playerid][pGameMaster]);fwrite(hFile, var);
format(var, 64, "LastX=%.1f\n",PlayerInfo[playerid][pLastX]);fwrite(hFile, var);
format(var, 64, "LastY=%.1f\n",PlayerInfo[playerid][pLastY]);fwrite(hFile, var);
format(var, 64, "LastZ=%.1f\n",PlayerInfo[playerid][pLastZ]);fwrite(hFile, var);
format(var, 64, "Crashed=%d\n", GetPVarInt(playerid, "Crashed"));fwrite(hFile,var);
format(var, 64, "TempHealth=%.1f\n",PlayerInfo[playerid][pTempHealth]);fwrite(hFile, var);
format(var, 64, "TempArmour=%.1f\n",PlayerInfo[playerid][pTempArmour]);fwrite(hFile, var);
format(var, 64, "MayorTeam=%d\n",PlayerInfo[playerid][pMayorTeam]);fwrite(hFile, var);

format(var, 64, "M1_x=%.1f\n",PlayerInfo[playerid][pMarker1][0]);fwrite(hFile, var);
format(var, 64, "M1_y=%.1f\n",PlayerInfo[playerid][pMarker1][1]);fwrite(hFile, var);
format(var, 64, "M1_z=%.1f\n",PlayerInfo[playerid][pMarker1][2]);fwrite(hFile, var);

format(var, 64, "M2_x=%.1f\n",PlayerInfo[playerid][pMarker2][0]);fwrite(hFile, var);
format(var, 64, "M2_y=%.1f\n",PlayerInfo[playerid][pMarker2][1]);fwrite(hFile, var);
format(var, 64, "M2_z=%.1f\n",PlayerInfo[playerid][pMarker2][2]);fwrite(hFile, var);

format(var, 64, "M3_x=%.1f\n",PlayerInfo[playerid][pMarker3][0]);fwrite(hFile, var);
format(var, 64, "M3_y=%.1f\n",PlayerInfo[playerid][pMarker3][1]);fwrite(hFile, var);
format(var, 64, "M3_z=%.1f\n",PlayerInfo[playerid][pMarker3][2]);fwrite(hFile, var);

format(var, 64, "M4_x=%.1f\n",PlayerInfo[playerid][pMarker4][0]);fwrite(hFile, var);
format(var, 64, "M4_y=%.1f\n",PlayerInfo[playerid][pMarker4][1]);fwrite(hFile, var);
format(var, 64, "M4_z=%.1f\n",PlayerInfo[playerid][pMarker4][2]);fwrite(hFile, var);

format(var, 64, "M5_x=%.1f\n",PlayerInfo[playerid][pMarker5][0]);fwrite(hFile, var);
format(var, 64, "M5_y=%.1f\n",PlayerInfo[playerid][pMarker5][1]);fwrite(hFile, var);
format(var, 64, "M5_z=%.1f\n",PlayerInfo[playerid][pMarker5][2]);fwrite(hFile, var);
format(var, 64, "CrashInt=%d\n", GetPVarInt(playerid, "CrashInt"));fwrite(hFile,var);
format(var, 64, "FightStyle=%d\n",PlayerInfo[playerid][pFightStyle]);fwrite(hFile, var);
format(var, 64, "PayDayMoney=%d\n",PlayerInfo[playerid][pPayDayMoney]);fwrite(hFile, var);
format(var, 64, "Voted=%d\n",PlayerInfo[playerid][pVoted]);fwrite(hFile, var);
format(var, 64, "SmuggSkill=%d\n",PlayerInfo[playerid][pSmuggSkill]);fwrite(hFile, var);
format(var, 64, "Note1=%s\n",PlayerInfo[playerid][pNote1]);fwrite(hFile, var);
format(var, 64, "Note1s=%d\n",PlayerInfo[playerid][pNote1s]);fwrite(hFile, var);
format(var, 64, "Note2=%s\n",PlayerInfo[playerid][pNote2]);fwrite(hFile, var);
format(var, 64, "Note2s=%d\n",PlayerInfo[playerid][pNote2s]);fwrite(hFile, var);
format(var, 64, "Note3=%s\n",PlayerInfo[playerid][pNote3]);fwrite(hFile, var);
format(var, 64, "Note3s=%d\n",PlayerInfo[playerid][pNote3s]);fwrite(hFile, var);
format(var, 64, "Note4=%s\n",PlayerInfo[playerid][pNote4]);fwrite(hFile, var);
format(var, 64, "Note4s=%d\n",PlayerInfo[playerid][pNote4s]);fwrite(hFile, var);
format(var, 64, "Note5=%s\n",PlayerInfo[playerid][pNote5]);fwrite(hFile, var);
format(var, 64, "Note5s=%d\n",PlayerInfo[playerid][pNote5s]);fwrite(hFile, var);
format(var, 64, "Goods=%d\n",PlayerInfo[playerid][pGoods]);fwrite(hFile, var);
format(var, 64, "GunSkill=%d\n",PlayerInfo[playerid][pGunSkill]);fwrite(hFile, var);
format(var, 64, "pMask=%d\n", GetPVarInt(playerid, "pMask"));fwrite(hFile,var);
format(var, 64, "StealTime=%d\n", GetPVarInt(playerid, "StealTime"));fwrite(hFile,var);
format(var, 64, "Cocaine=%d\n", GetPVarInt(playerid, "Cocaine"));fwrite(hFile,var);
format(var, 64, "Heroin=%d\n", GetPVarInt(playerid, "Heroin"));fwrite(hFile,var);
format(var, 64, "Marijuana=%d\n", GetPVarInt(playerid, "Marijuana"));fwrite(hFile,var);
format(var, 64, "Inection=%d\n", GetPVarInt(playerid, "Inection"));fwrite(hFile,var);
format(var, 64, "StealSkill=%d\n",PlayerInfo[playerid][pStealSkill]);fwrite(hFile, var);
format(var, 64, "MParts=%d\n", GetPVarInt(playerid, "MParts"));fwrite(hFile,var);
format(var, 64, "IParts=%d\n", GetPVarInt(playerid, "IParts"));fwrite(hFile,var);
format(var, 64, "Toolkit=%d\n", GetPVarInt(playerid, "Toolkit"));fwrite(hFile,var);
format(var, 64, "StoredDrugs=%d\n",PlayerInfo[playerid][pStoredDrugs]);fwrite(hFile, var);
format(var, 64, "StoredMats=%d\n",PlayerInfo[playerid][pStoredMats]);fwrite(hFile, var);
format(var, 64, "DignutKredit=%d\n",PlayerInfo[playerid][pDignutKredit]);fwrite(hFile, var);
format(var, 64, "Rate=%d\n",PlayerInfo[playerid][pRate]);fwrite(hFile, var);
format(var, 64, "Kosa=%d\n",PlayerInfo[playerid][pKosa]);fwrite(hFile, var);
format(var, 64, "Event=%d\n",PlayerInfo[playerid][pevkey]);fwrite(hFile, var);
format(var, 64, "MustRead=%d\n", GetPVarInt(playerid, "MustRead"));fwrite(hFile,var);
format(var, 64, "DakarWins=%d\n", GetPVarInt(playerid, "DakarWins"));fwrite(hFile,var);
format(var, 64, "MaratonWins=%d\n", GetPVarInt(playerid, "MaratonWins"));fwrite(hFile,var);
format(var, 64, "QuadWins=%d\n", GetPVarInt(playerid, "QuadWins"));fwrite(hFile,var);
                format(var, 64, "PDArrest=%d\n", GetPVarInt(playerid, "PDStatsArrest"));fwrite(hFile,var);
format(var, 64, "PDMats=%d\n", GetPVarInt(playerid, "PDStatsMats"));fwrite(hFile,var);
format(var, 64, "PDDrug=%d\n", GetPVarInt(playerid, "PDStatsDrug"));fwrite(hFile,var);
format(var, 64, "PDTicket=%d\n", GetPVarInt(playerid, "PDStatsTicket"));fwrite(hFile,var);
format(var, 64, "PDTicketMoney=%d\n", GetPVarInt(playerid, "PDStatsTicketMoney"));fwrite(hFile,var);
format(var, 64, "MobileMoney=%d\n", GetPVarInt(playerid, "pMobileMoney"));fwrite(hFile,var);
                format(var, 64, "KickReason=%d\n", GetPVarInt(playerid, "KickReason"));fwrite(hFile,var);
                format(var, 64, "DutySystem=%d\n", GetPVarInt(playerid, "DutySystem"));fwrite(hFile,var);
                format(var, 64, "Bomb=%d\n",PlayerInfo[playerid][pBomb]);fwrite(hFile, var);
format(var, 64, "Bombx=%d\n",PlayerInfo[playerid][pBombx]);fwrite(hFile, var);
format(var, 64, "Bomby=%d\n",PlayerInfo[playerid][pBomby]);fwrite(hFile, var);
format(var, 64, "Bombz=%d\n",PlayerInfo[playerid][pBombz]);fwrite(hFile, var);
format(var, 64, "BombE=%d\n", GetPVarInt(playerid, "BombE"));fwrite(hFile,var);
format(var, 64, "BombCar=%d\n", GetPVarInt(playerid, "BombCar"));fwrite(hFile,var);
format(var, 64, "PublicCredit=%d\n", GetPVarInt(playerid, "pPublicCredit"));fwrite(hFile,var);
/* format(var, 64, "TimesUsedHeroin=%d\n", GetPVarInt(playerid, "TimesUsedHeroin"));fwrite(hFile,var);
format(var, 64, "HeroinAddict=%d\n", GetPVarInt(playerid, "HeroinAddict"));fwrite(hFile,var);*/
format(var, 64, "UsingHeroin=%d\n", GetPVarInt(playerid, "UsingHeroin"));fwrite(hFile,var);
// format(var, 64, "AddictTimer=%d\n", GetPVarInt(playerid, "AddictTimer"));fwrite(hFile,var);
format(var, 64, "UsingCocaine=%d\n", GetPVarInt(playerid, "UsingCocaine"));fwrite(hFile,var);
format(var, 64, "Crack=%d\n", GetPVarInt(playerid, "Crack"));fwrite(hFile,var);
format(var, 64, "Speed=%d\n", GetPVarInt(playerid, "Speed"));fwrite(hFile,var);
format(var, 64, "Ciggaretes=%d\n", GetPVarInt(playerid, "Ciggaretes"));fwrite(hFile,var);
format(var, 64, "Lighter=%d\n", GetPVarInt(playerid, "Lighter"));fwrite(hFile,var);
format(var, 64, "MatsHolding=%d\n", GetPVarInt(playerid, "MatsHolding"));fwrite(hFile,var);
format(var, 64, "TakenDrugs=%d\n", GetPVarInt(playerid, "TakenDrugs"));fwrite(hFile,var);
format(var, 64, "WorkerSkill=%d\n", GetPVarInt(playerid, "WorkerSkill"));fwrite(hFile,var);
format(var, 64, "FarmerSkill=%d\n", GetPVarInt(playerid, "FarmerSkill"));fwrite(hFile,var);
format(var, 64, "TrainSkill=%d\n", GetPVarInt(playerid, "TrainSkill"));fwrite(hFile,var);
format(var, 64, "SmetlarSkill=%d\n", GetPVarInt(playerid, "SmetlarSkill"));fwrite(hFile,var);
format(var, 64, "SprunkSkill=%d\n", GetPVarInt(playerid, "SprunkSkill"));fwrite(hFile,var);
format(var, 64, "KazneniBodovi=%d\n", GetPVarInt(playerid, "KazneniBodovi"));fwrite(hFile,var);
format(var, 64, "Lampa=%d\n", GetPVarInt(playerid, "Lampa"));fwrite(hFile,var);
                format(var, 64, "HeroinOvisnik=%d\n",PlayerInfo[playerid][pHeroinOvisnik]);fwrite(hFile, var); // novo
format(var, 64, "CrackOvisnik=%d\n",PlayerInfo[playerid][pCrackOvisnik]);fwrite(hFile, var);
format(var, 64, "HeroinIndicator=%d\n",PlayerInfo[playerid][pHeroinIndicator]);fwrite(hFile, var);
format(var, 64, "CrackIndicator=%d\n",PlayerInfo[playerid][pCrackIndicator]);fwrite(hFile, var);
format(var, 64, "HeroinUsed=%d\n",PlayerInfo[playerid][pHeroinUsed]);fwrite(hFile, var);
format(var, 64, "CrackUsed=%d\n",PlayerInfo[playerid][pCrackUsed]);fwrite(hFile, var);
format(var, 64, "CigareteOvisnik=%d\n",PlayerInfo[playerid][pCigareteOvisnik]);fwrite(hFile, var);
format(var, 64, "CigareteUsed=%d\n",PlayerInfo[playerid][pCigareteUsed]);fwrite(hFile, var);
format(var, 64, "CigareteIndicator=%d\n",PlayerInfo[playerid][pCigareteIndicator]);fwrite(hFile, var);
format(var, 64, "TookDrugs=%d\n",PlayerInfo[playerid][pTookDrugs]);fwrite(hFile, var);
fclose(hFile);
}
}
}
return 1;
}

Izvinite na DP ali nije moglo sve da stane u jednu poruku...

Evo login sistem
LoginPlayer(playerid,password[])
{
new tmp2[256],
        string2[64],
    playername2[MAX_PLAYER_NAME];
   
    GetPlayerName(playerid, playername2, sizeof(playername2));
   
format(string2, sizeof(string2), "/accounts/%s.ini", playername2);

new File: UserFile = fopen(string2, io_read);

if ( UserFile )
{
    new PassData[256],
        keytmp[256],
valtmp[256];

    fread(UserFile, PassData, sizeof(PassData));
    keytmp = ini_GetKey(PassData);
   
    if(strcmp(keytmp, "Key", true) == 0)
{
valtmp = ini_GetValue( PassData );
strmid(PlayerInfo[playerid][pKey], valtmp, 0, strlen(valtmp)-1, 255);
}

if(strcmp(PlayerInfo[playerid][pKey],password, true ) == 0)
{
new key[256] ,
    val[256],
    Data[256];
   
while(fread(UserFile, Data ,sizeof(Data)))
{
key = ini_GetKey( Data );
if( strcmp( key , "Level" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLevel] = strvalEx( val ); }
                if( strcmp( key , "AdminLevel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAdmin] = strvalEx( val ); }
    if( strcmp( key , "DonateRank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDonateRank] = strvalEx( val ); }
    if( strcmp( key , "UpgradePoints" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][gPupgrade] = strvalEx( val ); }
    if( strcmp( key , "ConnectTime" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "ConnectTime", strvalEx( val )); }
    if( strcmp( key , "Registered" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Registered", strvalEx( val )); }
    if( strcmp( key , "Sex" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSex] = strvalEx( val ); }
    if( strcmp( key , "Age" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAge] = strvalEx( val ); }
    if( strcmp( key , "Origin" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pOrigin] = strvalEx( val ); }
    if( strcmp( key , "Muted" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMuted] = strvalEx( val ); }
    if( strcmp( key , "Respect" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pExp] = strvalEx( val ); }
    if( strcmp( key , "Money" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMoney] = strvalEx( val ); }
    if( strcmp( key , "Bank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAccount] = strvalEx( val ); }
    if( strcmp( key , "Crimes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrimes] = strvalEx( val ); }
    if( strcmp( key , "Kills" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pKills] = strvalEx( val ); }
    if( strcmp( key , "BankCard" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "BankCard", strvalEx( val )); }
    if( strcmp( key , "Arrested" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pArrested] = strvalEx( val ); }
    if( strcmp( key , "WantedDeaths" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWantedDeaths] = strvalEx( val ); }
    if( strcmp( key , "Phonebook" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPhoneBook] = strvalEx( val ); }
    if( strcmp( key , "Fishes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishes] = strvalEx( val ); }
    if( strcmp( key , "BiggestFish" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBiggestFish] = strvalEx( val ); }
    if( strcmp( key , "Job" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJob] = strvalEx( val ); }
    if( strcmp( key , "Paycheck" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPayCheck] = strvalEx( val ); }
    if( strcmp( key , "HeadValue" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHeadValue] = strvalEx( val ); }
    if( strcmp( key , "Jailed" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJailed] = strvalEx( val ); }
    if( strcmp( key , "JailTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJailTime] = strvalEx( val ); }
    if( strcmp( key , "Materials" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMats] = strvalEx( val ); }
    if( strcmp( key , "Drugs" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrugs] = strvalEx( val ); }
    if( strcmp( key , "Leader" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLeader] = strvalEx( val ); }
    if( strcmp( key , "Member" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMember] = strvalEx( val ); }
    if( strcmp( key , "Rank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRank] = strvalEx( val ); }
    if( strcmp( key , "Char" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pChar] = strvalEx( val ); }
    if( strcmp( key , "ContractTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pContractTime] = strvalEx( val ); }
    if( strcmp( key , "DetSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDetSkill] = strvalEx( val ); }
    if( strcmp( key , "SexSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSexSkill] = strvalEx( val ); }
    if( strcmp( key , "BoxSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBoxSkill] = strvalEx( val ); }
    if( strcmp( key , "LawSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLawSkill] = strvalEx( val ); }
    if( strcmp( key , "MechSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMechSkill] = strvalEx( val ); }
    if( strcmp( key , "JackSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJackSkill] = strvalEx( val ); }
    if( strcmp( key , "CarSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarSkill] = strvalEx( val ); }
    if( strcmp( key , "NewsSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNewsSkill] = strvalEx( val ); }
    if( strcmp( key , "BrojNews" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBrojNews] = strvalEx( val ); }
    if( strcmp( key , "DrugsSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrugsSkill] = strvalEx( val ); }
    if( strcmp( key , "CookSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCookSkill] = strvalEx( val ); }
    if( strcmp( key , "FishSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishSkill] = strvalEx( val ); }
    if( strcmp( key , "pSHealth" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSHealth] = floatstr( val ); }
    if( strcmp( key , "pHealth" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHealth] = floatstr( val ); }
    if( strcmp( key , "Int" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInt] = strvalEx( val ); }
    if( strcmp( key , "CrashedVW" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "CrashedVW", strvalEx( val )); }
if( strcmp( key , "Local" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLocal] = strvalEx( val ); }
    if( strcmp( key , "Team" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTeam] = strvalEx( val ); }
    if( strcmp( key , "Model" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pModel] = strvalEx( val ); }
    if( strcmp( key , "PhoneNr" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPnumber] = strvalEx( val ); }
    if( strcmp( key , "House" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPhousekey] = strvalEx( val ); }
                if( strcmp( key , "Apartment" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pApartment] = strvalEx( val ); }
if( strcmp( key , "RPUcitelj" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "RPUcitelj", strvalEx( val )); }
    if( strcmp( key , "Bizz" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPbiskey] = strvalEx( val ); }
    if( strcmp( key , "Pos_x" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPos_x] = floatstr( val ); }
    if( strcmp( key , "Pos_y" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPos_y] = floatstr( val ); }
    if( strcmp( key , "Pos_z" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPos_z] = floatstr( val ); }
    if( strcmp( key , "CarLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarLic] = strvalEx( val ); }
                if( strcmp( key , "FlyLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFlyLic] = strvalEx( val ); }
if( strcmp( key , "BoatLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBoatLic] = strvalEx( val ); }
    if( strcmp( key , "FishLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishLic] = strvalEx( val ); }
    if( strcmp( key , "GunLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGunLic] = strvalEx( val ); }
    if( strcmp( key , "Gun1" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Gun1", strvalEx( val )); }
    if( strcmp( key , "Gun2" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Gun2", strvalEx( val )); }
    if( strcmp( key , "Gun3" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Gun3", strvalEx( val )); }
    if( strcmp( key , "Gun4" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Gun4", strvalEx( val )); }
    if( strcmp( key , "Gun5" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Gun5", strvalEx( val )); }
    if( strcmp( key , "Melee" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Melee", strvalEx( val )); }
    if( strcmp( key , "MaskID" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "MaskID", strvalEx( val )); }
    if( strcmp( key , "Gun8" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Gun8", strvalEx( val )); }
                if( strcmp( key , "Gun9" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Gun9", strvalEx( val )); }
    if( strcmp( key , "Ammo1" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Ammo1", strvalEx( val )); }
    if( strcmp( key , "Ammo2" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Ammo2", strvalEx( val )); }
    if( strcmp( key , "Ammo3" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Ammo3", strvalEx( val )); }
    if( strcmp( key , "Ammo4" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Ammo4", strvalEx( val )); }
    if( strcmp( key , "Ammo5" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Ammo5", strvalEx( val )); }
    if( strcmp( key , "FreeWorks" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "FreeWorks", strvalEx( val )); }
    if( strcmp( key , "Helmet" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Helmet", strvalEx( val )); }
    if( strcmp( key , "Ammo8" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Ammo8", strvalEx( val )); }
    if( strcmp( key , "Ammo9" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Ammo9", strvalEx( val )); }
    if( strcmp( key , "CarTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarTime] = strvalEx( val ); }
    if( strcmp( key , "PayDay" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPayDay] = strvalEx( val ); }
    if( strcmp( key , "PayDayHad" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPayDayHad] = strvalEx( val ); }
    if( strcmp( key , "Radio" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Radio", strvalEx( val )); }
    if( strcmp( key , "Wins" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Wins", strvalEx( val )); }
    if( strcmp( key , "Loses" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Loses", strvalEx( val )); }
    if( strcmp( key , "AlcoholPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAlcoholPerk] = strvalEx( val ); }
    if( strcmp( key , "DrugPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrugPerk] = strvalEx( val ); }
    if( strcmp( key , "MiserPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMiserPerk] = strvalEx( val ); }
    if( strcmp( key , "PainPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPainPerk] = strvalEx( val ); }
    if( strcmp( key , "TraderPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTraderPerk] = strvalEx( val ); }
      if( strcmp( key , "RPPassed" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "RPPassed", strvalEx( val )); }
    if( strcmp( key , "Warnings" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWarns] = strvalEx( val ); }
    if( strcmp( key , "Adjustable" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAdjustable] = strvalEx( val ); }
    if( strcmp( key , "Fuel" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Fuel", strvalEx( val )); }
    if( strcmp( key , "Married" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMarried] = strvalEx( val ); }
    if( strcmp( key , "MarriedTo" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pMarriedTo], val, 0, strlen(val)-1, 255); }
    if( strcmp( key , "Passport" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPassport] = strvalEx( val ); }
    if( strcmp( key , "Watch" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWatch] = strvalEx( val ); }
                if( strcmp( key , "Tools" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTools] = strvalEx( val ); }
    if( strcmp( key , "GameMaster" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGameMaster] = strvalEx( val ); }
    if( strcmp( key , "LastX" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLastX] = floatstr( val ); }
    if( strcmp( key , "LastY" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLastY] = floatstr( val ); }
    if( strcmp( key , "LastZ" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLastZ] = floatstr( val ); }
                if( strcmp( key , "Crashed" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Crashed", strvalEx( val )); }
    if( strcmp( key , "TempHealth" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTempHealth] = floatstr( val ); }
    if( strcmp( key , "TempArmour" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTempArmour] = floatstr( val ); }
    if( strcmp( key , "MayorTeam" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMayorTeam] = strvalEx( val ); }
    if( strcmp( key , "M1_x" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMarker1][0] = floatstr( val ); }
    if( strcmp( key , "M1_y" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMarker1][1] = floatstr( val ); }
    if( strcmp( key , "M1_z" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMarker1][2] = floatstr( val ); }
    if( strcmp( key , "M2_x" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMarker2][0] = floatstr( val ); }
    if( strcmp( key , "M2_y" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMarker2][1] = floatstr( val ); }
    if( strcmp( key , "M2_z" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMarker2][2] = floatstr( val ); }
    if( strcmp( key , "M3_x" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMarker3][0] = floatstr( val ); }
    if( strcmp( key , "M3_y" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMarker3][1] = floatstr( val ); }
    if( strcmp( key , "M3_z" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMarker3][2] = floatstr( val ); }
    if( strcmp( key , "M4_x" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMarker4][0] = floatstr( val ); }
    if( strcmp( key , "M4_y" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMarker4][1] = floatstr( val ); }
    if( strcmp( key , "M4_z" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMarker4][2] = floatstr( val ); }
    if( strcmp( key , "M5_x" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMarker5][0] = floatstr( val ); }
    if( strcmp( key , "M5_y" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMarker5][1] = floatstr( val ); }
    if( strcmp( key , "M5_z" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMarker5][2] = floatstr( val ); }
    if( strcmp( key , "CrashInt" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "CrashInt", strvalEx( val )); }
    if( strcmp( key , "FightStyle" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFightStyle] = strvalEx( val ); }
    if( strcmp( key , "PayDayMoney" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPayDayMoney] = strvalEx( val ); }
    if( strcmp( key , "Voted" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pVoted] = strvalEx( val ); }
    if( strcmp( key , "SmuggSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSmuggSkill] = strval( val ); }
    if( strcmp( key , "Note1" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pNote1], val, 0, strlen(val)-1, 255); }
        if( strcmp( key , "Note1s" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNote1s] = strval( val ); }
    if( strcmp( key , "Note2" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pNote2], val, 0, strlen(val)-1, 255); }
        if( strcmp( key , "Note2s" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNote2s] = strval( val ); }
        if( strcmp( key , "Note3" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pNote3], val, 0, strlen(val)-1, 255); }
        if( strcmp( key , "Note3s" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNote3s] = strval( val ); }
    if( strcmp( key , "Note4" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pNote4], val, 0, strlen(val)-1, 255); }
        if( strcmp( key , "Note4s" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNote4s] = strval( val ); }
        if( strcmp( key , "Note5" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pNote5], val, 0, strlen(val)-1, 255); }
        if( strcmp( key , "Note5s" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNote5s] = strval( val ); }
        if( strcmp( key , "Goods" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGoods] = strval( val ); }
        if( strcmp( key , "GunSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGunSkill] = strval( val ); }
        if( strcmp( key , "pMask" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "pMask", strvalEx( val )); }
        if( strcmp( key , "StealTime" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "StealTime", strvalEx( val )); }
        if( strcmp( key , "Cocaine" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Cocaine", strvalEx( val )); }
        if( strcmp( key , "Heroin" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Heroin", strvalEx( val )); }
        if( strcmp( key , "Marijuana" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Marijuana", strvalEx( val )); }
        if( strcmp( key , "Inection" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Inection", strvalEx( val )); }
        if( strcmp( key , "StealSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pStealSkill] = strval( val ); }
        if( strcmp( key , "MParts" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "MParts", strvalEx( val )); }
        if( strcmp( key , "IParts" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "IParts", strvalEx( val )); }
        if( strcmp( key , "Toolkit" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Toolkit", strvalEx( val )); }
        if( strcmp( key , "StoredDrugs" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pStoredDrugs] = strvalEx( val ); }
        if( strcmp( key , "StoredMats" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pStoredMats] = strvalEx( val ); }
        if( strcmp( key , "DignutKredit" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDignutKredit] = strvalEx( val ); }
        if( strcmp( key , "Rate" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRate] = strvalEx( val ); }
        if( strcmp( key , "Kosa" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pKosa] = strvalEx( val ); }
        if( strcmp( key , "Event" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pevkey] = strvalEx( val ); }
        if( strcmp( key , "MustRead" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "MustRead", strvalEx( val )); }
        if( strcmp( key , "DakarWins" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "DakarWins", strvalEx( val )); }
        if( strcmp( key , "MaratonWins" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "MaratonWins", strvalEx( val )); }
        if( strcmp( key , "QuadWins" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "QuadWins", strvalEx( val )); }
                if( strcmp( key , "PDArrest" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "PDStatsArrest", strvalEx( val )); }
        if( strcmp( key , "PDMats" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "PDStatsMats", strvalEx( val )); }
        if( strcmp( key , "PDDrug" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "PDStatsDrug", strvalEx( val )); }
        if( strcmp( key , "PDTicket" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "PDStatsTicket", strvalEx( val )); }
if( strcmp( key , "PDTicketMoney" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "PDStatsTicketMoney", strvalEx( val )); }
if( strcmp( key , "MobileMoney" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "pMobileMoney", strvalEx( val )); }
if( strcmp( key , "KickReason" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "KickReason", strvalEx( val )); }
if( strcmp( key , "DutySystem" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "DutySystem", strvalEx( val )); }
if( strcmp( key , "Bomb" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBomb] = strvalEx( val ); }
if( strcmp( key , "Bombx" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBombx] = strvalEx( val ); }
if( strcmp( key , "Bomby" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBomby] = strvalEx( val ); }
if( strcmp( key , "Bombz" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBombz] = strvalEx( val ); }
if( strcmp( key , "BombCar" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "BombCar", strvalEx( val )); }
if( strcmp( key , "BombE" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "BombE", strvalEx( val )); }
if( strcmp( key , "PublicCredit" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "pPublicCredit", strvalEx( val )); }
if( strcmp( key , "UsingHeroin" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "UsingHeroin", strvalEx( val )); }
    // if( strcmp( key , "TimesUsedHeroin" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "TimesUsedHeroin", strvalEx( val )); }
//     if( strcmp( key , "HeroinAddict" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "HeroinAddict", strvalEx( val )); }
//     if( strcmp( key , "AddictTimer" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "AddictTimer", strvalEx( val )); }
    if( strcmp( key , "UsingCocaine" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "UsingCocaine", strvalEx( val )); }
    if( strcmp( key , "Crack" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Crack", strvalEx( val )); }
    if( strcmp( key , "Speed" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Speed", strvalEx( val )); }
    if( strcmp( key , "Ciggaretes" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Ciggaretes", strvalEx( val )); }
if( strcmp( key , "Lighter" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Lighter", strvalEx( val )); }
if( strcmp( key , "MatsHolding" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "MatsHolding", strvalEx( val )); }
if( strcmp( key , "TakenDrugs" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "TakenDrugs", strvalEx( val )); }
if( strcmp( key , "WorkerSkill" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "WorkerSkill", strvalEx( val )); }
if( strcmp( key , "FarmerSkill" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "FarmerSkill", strvalEx( val )); }
if( strcmp( key , "TrainSkill" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "TrainSkill", strvalEx( val )); }
if( strcmp( key , "SmetlarSkill" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "SmetlarSkill", strvalEx( val )); }
if( strcmp( key , "SprunkSkill" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "SprunkSkill", strvalEx( val )); }
if( strcmp( key , "KazneniBodovi" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "KazneniBodovi", strvalEx( val )); }
if( strcmp( key , "Lampa" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Lampa", strvalEx( val )); }
                if( strcmp( key , "HeroinOvisnik" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHeroinOvisnik] = strvalEx( val ); } //novo
                if( strcmp( key , "CrackOvisnik" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrackOvisnik] = strvalEx( val ); }
                if( strcmp( key , "HeroinIndicator" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHeroinIndicator] = strvalEx( val ); }
                if( strcmp( key , "CrackIndicator" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrackIndicator] = strvalEx( val ); }
                if( strcmp( key , "HeroinUsed" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHeroinUsed] = strvalEx( val ); }
                if( strcmp( key , "CrackUsed" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrackUsed] = strvalEx( val ); }
                if( strcmp( key , "CigareteOvisnik" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCigareteOvisnik] = strvalEx( val ); }
                if( strcmp( key , "CigareteUsed" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCigareteUsed] = strvalEx( val ); }
                if( strcmp( key , "CigareteIndicator" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCigareteIndicator] = strvalEx( val ); }
                if( strcmp( key , "TookDrugs" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTookDrugs] = strvalEx( val ); }

}
            fclose(UserFile);
}
else
{
            PovecajPVarInt(playerid, "gPlayerLogTries", 1);

        new LoginTriesLeft = (MAX_LOGIN_TRIES - GetPVarInt(playerid, "gPlayerLogTries")),
    loginstring[512];

        format(loginstring,sizeof(loginstring), DialogTexts[1],
    MAX_LOGIN_TRIES,
LoginTriesLeft);

        ShowPlayerDialog(playerid, DIALOG_LOGIN + playerid, DIALOG_STYLE_INPUT, "PRIJAVA", loginstring, "Prijava", "Odustani");
        fclose(UserFile);

        if (GetPVarInt(playerid, "gPlayerLogTries") == MAX_LOGIN_TRIES)
{
HideConnectTextDraws(playerid);
HidePlayerDialog(playerid);
    Ban(playerid);
}
        return 1;
}
ServerInfo[sLogins]++;
HideConnectTextDraws(playerid);
PlayerInfo[playerid][pAdjustable] = 0;
ResetMoneyBar(playerid);
    UpdateMoneyBar(playerid, PlayerInfo[playerid][pMoney]);
      SetPVarInt(playerid, "gPlayerLogged", 1);
TogglePlayerSpectating(playerid, 0);
SetPlayerFightingStyle(playerid, PlayerInfo[playerid][pFightStyle]);
SetCameraBehindPlayer(playerid);
SpawnPlayer(playerid);
format(tmp2, sizeof(tmp2), "~w~Dobro dosli ~n~~y~   %s", playername2);
GameTextForPlayer(playerid, tmp2, 5000, 1);
        paydaytimer[playerid] = SetTimerEx("PayCheck", 60000, 1, "i", playerid);
        if(!IsPlayerNPC(playerid))
        {
        TextDrawShowForPlayer(playerid, AnnounceTextDraw);
TextDrawShowForPlayer(playerid, ServerTextDraw);
// for(new i; i<61; i++) TextDrawShowForPlayer(playerid,snow[i]); // Božiæ kod logiranja prikaz
TextDrawShowForPlayer(playerid, ZoneInfoTextDraw[playerid]);
NewsTextDrawsShowForPlayer(playerid);
}
SetPVarInt(playerid, "AnOnline", 0);

format(string2, sizeof(string2), "BALKAN SA:MP Role Play Server: Dobro dosli %s", ReturnPVarString(playerid, "ImePrezime"));
SendClientMessage(playerid, COLOR_WHITE,string2);
printf("%s has logged in.", ReturnPVarString(playerid, "ImePrezime"));

if(GetPVarInt(playerid, "Registered") == 0)
{
if(GetPVarInt(playerid, "Registered") == 0 && GetPVarInt(playerid, "ConnectTime") < 1)
{
                ShowPlayerDialog(playerid, RPTEST_DIALOG, DIALOG_STYLE_MSGBOX, "ROLEPLAY TEST","Prije nego sto pocnete igrati na nasem serveru morate proci Roleplay Test","Dalje","Kick");
}
else
{
                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] = 299;
new randphone = 100000 + random(899999);
PlayerInfo[playerid][pPnumber] = randphone;
PlayerInfo[playerid][pPhousekey] = 255;
PlayerInfo[playerid][pApartment] = 255;
PlayerInfo[playerid][pPbiskey] = 255;
PlayerInfo[playerid][pAccount] = 500;
SetPVarInt(playerid, "Registered", 1);
SafeGivePlayerMoney(playerid, 50);
PlayerInfo[playerid][pFightStyle] = 4;
PlayerInfo[playerid][pPayDayMoney] = 0;
}
}
        if(GetPVarInt(playerid, "KickReason") == 1)
    {
        SetTimerEx("KickTutorial", 2000, 0, "ii", playerid, 1);
        TogglePlayerControllable(playerid, 0);
    }
    else if(GetPVarInt(playerid, "KickReason") == 2)
    {
    SetTimerEx("KickTutorial", 2000, 0, "ii", playerid, 2);
        TogglePlayerControllable(playerid, 0);

    }
    else if(GetPVarInt(playerid, "KickReason") == 3)
    {
    SetTimerEx("KickTutorial", 2000, 0, "ii", playerid, 4);
        TogglePlayerControllable(playerid, 0);
    }
    else if(GetPVarInt(playerid, "KickReason") == 4)
    {
    SetTimerEx("KickTutorial", 2000, 0, "ii", playerid, 5);
        TogglePlayerControllable(playerid, 0);
    }
    else if(GetPVarInt(playerid, "KickReason") == 5)
    {
    SetTimerEx("KickTutorial", 2000, 0, "ii", playerid, 6);
        TogglePlayerControllable(playerid, 0);
    }
    else if(GetPVarInt(playerid, "KickReason") == 6)
    {
    SetTimerEx("KickTutorial", 2000, 0, "ii", playerid, 7);
        TogglePlayerControllable(playerid, 0);
    }
    else if(GetPVarInt(playerid, "KickReason") == 7)
    {
    SetTimerEx("KickTutorial", 2000, 0, "ii", playerid, 8);
        TogglePlayerControllable(playerid, 0);
    }
    else if(GetPVarInt(playerid, "KickReason") == 8)
    {
    SetTimerEx("KickTutorial", 2000, 0, "ii", playerid, 9);
        TogglePlayerControllable(playerid, 0);
    }
if(PlayerInfo[playerid][pLevel] == -999) //autoban
{
Ban(playerid);
}
if (PlayerInfo[playerid][pDonateRank] > 0)
{
SendClientMessage(playerid, COLOR_WHITE,"BALKAN SA:MP Role Play Server: Vi ste korisnik Premium Accounta.");
}
if (PlayerInfo[playerid][pAdmin] > 0)
{
    if (PlayerInfo[playerid][pAdmin] > 1337)
    {
        printf("%s se logirao na server kao 1338 admin!", ReturnPVarString(playerid, "ImePrezime"));
}
format(string2, sizeof(string2), "BALKAN SA:MP Role Play Server: Prijavljeni ste kao level %d Admin.",PlayerInfo[playerid][pAdmin]);
SendClientMessage(playerid, COLOR_WHITE,string2);
}
if (PlayerInfo[playerid][pGameMaster] > 0)
{
format(string2, sizeof(string2), "BALKAN SA:MP Role Play Server: Prijavljeni ste kao level %d Game Master.",PlayerInfo[playerid][pGameMaster]);
SendClientMessage(playerid, COLOR_WHITE,string2);
        }

SetTimerEx("PlayerGameCrashed", 4000, 0, "i", playerid);
    if(PlayerInfo[playerid][pJailed] > 0)
    {
        SetPVarInt(playerid, "jailtimer", SetTimerEx("JailTimer", 1000, 1, "i", playerid));
        SetPVarInt(playerid, "JailTimerCalled", 1);
}
if(PlayerInfo[playerid][pCarTime] > 0)
    {
        carjackertimer[playerid] = SetTimerEx("CarJackerTimer", 1000, 1, "i", playerid);
        SetPVarInt(playerid, "CarJackerTimerCalled", 1);
}
if (GetPVarInt(playerid, "HeroinAddict") == 1)
{
    if(GetPVarInt(playerid, "AddictTimer") < 60)
        {
HeroinCrackTimer = SetTimerEx("HeroinAddictTimer", 60000, true, "i", playerid);
}
else
{
    HeroinCrackTimer = SetTimerEx("HeroinAddictTimer", 60000, true, "i", playerid);
    SetPVarInt(playerid, "AddictTimer", 0);
}
}

if(gTeam[playerid] == 0)
{
gTeam[playerid] = 3;
}
else
{
gTeam[playerid] = PlayerInfo[playerid][pTeam];
}
}
return 1;
}


I evo nesto sto sam nasao kao pRegPassword
ResetPlayerRegArrays(playerid)
{
PlayerInfo[playerid][pSex] = 0;
PlayerInfo[playerid][pOrigin] = 0;
PlayerInfo[playerid][pAge] = 0;
strmid(PlayerRegInfo[playerid][pRegPassword], BLANK, 0, 1);
}

Citat: ED | ZicMortal poslato Jul 04, 2012, 17:32:20 POSLE PODNE
Mislim da imas onu Encrypt funkciju koja dode sa godfatherom (nakon dosta editova to je uvijek ostalo).

Ta funkcija uglavnom pretvara slova i brojeve (sta god da stavis za sifru) u druga slova nekakva..


Ali tvoj problem je to sto igrac udje sa bilo kojom sifrom, ja mislim da je to zbog spremanja sifre, mislim da sam i ja jednom imao takav problem ali se ne sjecam kako sam rijesio..

Uglavnom probaj vidjet dali u scriptfiles/igrac.ini - kad otvoris, probaj vidjet pKey=(prazno bude)/n .. i odma ide dalje na ono admin itd..

U pravu si sada je samo prazno nema nikakve sifre niti bilo cega ... Ajde probaj da se setis kako si to resio

Citat: ED | ZicMortal poslato Jul 04, 2012, 17:41:06 POSLE PODNE
Dali koristis SavePlayer u publicu OnPlayerDisconnect?
Evo ti ceo OnPlayerDisconnect negde ima negde nema ..

public OnPlayerDisconnect(playerid, reason)//novo ubacio
{
    new string[128],
    sendername[MAX_PLAYER_NAME];
   
foreach(Player, i)
{
    if(IsPlayerConnected(i))
    {
    if(GetPVarInt(i, "CoCarOffer") == playerid)
    {
    SetPVarInt(i, "COCarOffer", 999);
SetPVarInt(i, "COCarOfferPrice", 0);
break;
    }
    else
        continue;
}
}
if(GetPVarInt(playerid, "cNumber") != 0)
{
//new panels, doors, lights, tires, Float:health;
new Float:health;
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
GetVehicleHealth(GetPVarInt(playerid, "UsingCar"), health);
//GetVehicleDamageStatus(GetPVarInt(playerid, "UsingCar"), panels, doors, lights, tires);

SetPVarFloat(playerid, "cHealth", health);

/*SetPVarInt(playerid, "cPanels", panels);
SetPVarInt(playerid, "cDoors", doors);
SetPVarInt(playerid, "cLights", lights);
SetPVarInt(playerid, "cTires", tires);*/

SetPVarInt(playerid, "cPanels", 0);
SetPVarInt(playerid, "cDoors", 0);
SetPVarInt(playerid, "cLights", 0);
SetPVarInt(playerid, "cTires", 0);

SavePlayerVehicle(playerid, GetPVarInt(playerid, "cNumber"));
SetPVarInt(playerid, "cFuel", Gas[GetPVarInt(playerid, "UsingCar")]);
CoCarInfo[GetPVarInt(playerid, "UsingCar")-OTHER_VEHICLES][cColor1] = GetPVarInt(playerid, "cColor1");
CoCarInfo[GetPVarInt(playerid, "UsingCar")-OTHER_VEHICLES][cColor2] = GetPVarInt(playerid, "cColor2");
CoCarInfo[GetPVarInt(playerid, "UsingCar")-OTHER_VEHICLES][cPaintJob] = GetPVarInt(playerid, "cPaintJob");
CoCarInfo[GetPVarInt(playerid, "UsingCar")-OTHER_VEHICLES][cAlarm] = GetPVarInt(playerid, "cAlarm");
CoCarInfo[GetPVarInt(playerid, "UsingCar")-OTHER_VEHICLES][cImobilizator] = GetPVarInt(playerid, "cImobilizator");
CoCarInfo[GetPVarInt(playerid, "UsingCar")-OTHER_VEHICLES][cNumber] = GetPVarInt(playerid, "cNumber");
CoCarInfo[GetPVarInt(playerid, "UsingCar")-OTHER_VEHICLES][cLocked] = GetPVarInt(playerid, "cLocked");
CoCarInfo[GetPVarInt(playerid, "UsingCar")-OTHER_VEHICLES][cLock] = GetPVarInt(playerid, "cLock");
strmid(CoCarInfo[GetPVarInt(playerid, "UsingCar")-OTHER_VEHICLES][cOwner], playername, 0, strlen(playername), 255);
CoCarInfo[GetPVarInt(playerid, "UsingCar")-OTHER_VEHICLES][CarOwner] = 999;
}
SetPVarInt(playerid, "Melee", PlayerWeapons[playerid][1]);
SetPVarInt(playerid, "Gun1", PlayerWeapons[playerid][2]);
SetPVarInt(playerid, "Ammo1", PlayerWeaponAmmo[playerid][PlayerWeapons[playerid][2]]);
SetPVarInt(playerid, "Gun2", PlayerWeapons[playerid][3]);
SetPVarInt(playerid, "Ammo2", PlayerWeaponAmmo[playerid][PlayerWeapons[playerid][3]]);
SetPVarInt(playerid, "Gun3", PlayerWeapons[playerid][4]);
SetPVarInt(playerid, "Ammo3", PlayerWeaponAmmo[playerid][PlayerWeapons[playerid][4]]);
SetPVarInt(playerid, "Gun4", PlayerWeapons[playerid][5]);
SetPVarInt(playerid, "Ammo4", PlayerWeaponAmmo[playerid][PlayerWeapons[playerid][5]]);
SetPVarInt(playerid, "Gun5", PlayerWeapons[playerid][6]);
SetPVarInt(playerid, "Ammo5", PlayerWeaponAmmo[playerid][PlayerWeapons[playerid][6]]);

/*if(GetPVarInt(playerid,"roped") == 1)
{
    for(new destr=0;destr<=ropelength;destr++)
{
    DestroyDynamicObject(r0pes[playerid][destr]);
}
}*/
if(reason == 0 && GetPVarInt(playerid, "gPlayerLogged") == 1)
{
        ServerInfo[sCrashes]++;

    new Float:x,
Float:y,
Float:z,
            Float:health,Float:armour,
            interior = GetPlayerInterior(playerid),
vw = GetPlayerVirtualWorld(playerid);

        GetPlayerName(playerid, sendername, sizeof(sendername));
        GetPlayerHealth(playerid, health);
        GetPlayerArmour(playerid, armour);
        GetPlayerPos(playerid, x, y, z);

        PlayerInfo[playerid][pLastX] = x;
        PlayerInfo[playerid][pLastY] = y;
        PlayerInfo[playerid][pLastZ] = z;
        PlayerInfo[playerid][pTempHealth] = health;
        PlayerInfo[playerid][pTempArmour] = armour;
        SetPVarInt(playerid, "Crashed", 1);
        SetPVarInt(playerid, "CrashInt", interior);
        SetPVarInt(playerid, "CrashedVW", vw);

        format(string, sizeof(string), "AdmWarn: Igracu %s je upravo crashao SA-MP client.",sendername);
        ABroadCast(COLOR_LIGHTRED,string,1);
        format(string, sizeof(string), "(( Igracu %s je upravo crashao SA-MP client. ))", sendername);
        ProxDetector(25.0, playerid, string, COLOR_GREY,COLOR_GREY,COLOR_GREY,COLOR_GREY,COLOR_GREY);
        if(IsPlayerNPC(playerid))
        {
            if(strcmp(sendername, "Vozi_Misko", true) == 0)
            {
                ConnectNPC("Vozi_Misko","autobus2");
            }
        }
       
}
else if(reason == 1)
{
    GetPlayerName(playerid, sendername, sizeof(sendername));
SetPVarInt(playerid, "Crashed", 0);
format(string, sizeof(string), "(( Igrac %s je upravo otisao sa servera. ))", sendername);
ProxDetector(25.0, playerid, string, COLOR_GREY,COLOR_GREY,COLOR_GREY,COLOR_GREY,COLOR_GREY);
if(GetPVarInt(playerid, "PlayerCuffed") > 0)
{
PlayerInfo[playerid][pJailed] = 2;
PlayerInfo[playerid][pJailTime] = 10800;
}
}
else if(reason == 2)
    SetPVarInt(playerid, "Crashed", 0);
if(GetPVarInt(playerid, "TowTimerCalled") == 1)
{
    KillTimer(GetPVarInt(playerid, "TowTimer"));
}
if(GetPVarInt(playerid, "PlayerInAmmunation") == 1)
{
KillTimer(GetPVarInt(playerid, "ammunationtimer"));
}
if(GetPVarInt(playerid, "PlayerInSexShop") == 1)
{
KillTimer(sexshoptimer[playerid]);
}
if (GetPVarInt(playerid, "PlayerRegistrating") == 1)
{
    ResetPlayerRegArrays(playerid);
    SetPVarInt(playerid, "PlayerRegistrating", 0);
}
// Timers

if(GetPVarInt(playerid, "ImmobTimerCalled") == 1)
{
    KillTimer(GetPVarInt(playerid, "immobcounttimer"));
}
if(GetPVarInt(playerid, "BreakLockTimerCalled") == 1)
{
KillTimer(GetPVarInt(playerid, "breakcounttimer"));
}
if(GetPVarInt(playerid, "BreakingLock") == 1)
{
    KillTimer(GetPVarInt(playerid, "BreakLockTimer"));
}
if(GetPVarInt(playerid, "GPSTimerCalled") == 1)
{
    KillTimer(GetPVarInt(playerid, "GPSConnectTimer"));
}
if(GetPVarInt(playerid, "JailTimerCalled")  == 1)
{
KillTimer(GetPVarInt(playerid, "jailtimer"));
}
if(GetPVarInt(playerid, "DamageTimerCalled") == 1)
{
    KillTimer(cardamagetimer[playerid]);
}
if(GetPVarInt(playerid, "DriftTimerCalled")  == 1)
{
    KillTimer(GetPVarInt(playerid, "drifttimer"));
}
if(GetPVarInt(playerid, "PizzaTimerCalled") == 1)
{
    KillTimer(pizzatimer[playerid]);
}
if(GetPVarInt(playerid, "DetectiveTimerCalled") == 1)
{
    KillTimer(detectivetimer[playerid]);
}
if(GetPVarInt(playerid, "CuffTimerCalled") == 1)
{
    KillTimer(GetPVarInt(playerid, "cufftimer"));
}
if(GetPVarInt(playerid, "VehicleTakeTimerCalled") == 1)
{
    KillTimer(GetPVarInt(playerid, "VehicleTake"));
    SetPVarInt(playerid, "VehicleTakeTimerCalled", 0);
    if(IsABoat(GetPVarInt(playerid, "cModel")))
    {
    for(new i = 0; i < sizeof(BoatBuySpawn); i++)
    {
        if(BoatBuySpawn[i] == playerid)
        {
BoatBuySpawn[i] = 999;
break;
        }
        else
            continue;
    }
}
else if(IsAPlane(GetPVarInt(playerid, "cModel")))
{
    for(new i = 0; i < sizeof(PlaneBuySpawn); i++)
    {
        if(PlaneBuySpawn[i] == playerid)
        {
PlaneBuySpawn[i] = 999;
break;
        }
        else
            continue;
}
}
else
{
for(new i = 0; i < sizeof(CarBuySpawn); i++)
    {
        if(CarBuySpawn[i] == playerid)
        {
CarBuySpawn[i] = 999;
break;
        }
}
}
}
if(GetPVarInt(playerid, "TazerTimerCalled")  == 1)
{
    KillTimer(GetPVarInt(playerid, "tazertimer"));
}
if(GetPVarInt(playerid, "CarJackerTimerCalled") == 1)
{
    KillTimer(carjackertimer[playerid]);
}
if(GetPVarInt(playerid, "RequestingBackup") == 1)
{
KillTimer(backuptimer[playerid]);
BackupClear(playerid, 0);
}

    KillTimer(paydaytimer[playerid]);
    KillTimer(fixtimer[playerid]);
    KillTimer(updatezangletimer[playerid]);
    KillTimer(notonstarttimer[playerid]);

SetPVarInt(playerid, "gActivePlayers", -1);
numplayers--;

PlayerInfo[playerid][pAdjustable] = 1;

SavePlayer(playerid);

foreach(Player, i)
{
    if(IsPlayerConnected(i))
    {
        if(GetPVarInt(i, "TaxiAccepted") < 999)
        {
        if(GetPVarInt(i, "TaxiAccepted") == playerid)
        {
            SetPVarInt(i, "TaxiAccepted", 999);
            GameTextForPlayer(i, "~w~Taxi Pozivatelj~n~~r~Napustio igru", 5000, 1);
            SetPVarInt(i, "TaxiCallTime", 0);
            DisablePlayerCheckpoint(i);
            KillTimer(taxitimer[i]);
            SetPVarInt(playerid, "TaxiTimerCalled", 0);
        }
        }
        else if(GetPVarInt(i, "BusAccepted") < 999)
        {
        if(GetPVarInt(i, "BusAccepted") == playerid)
        {
            SetPVarInt(i, "BusAccepted", 999);
            GameTextForPlayer(i, "~w~Bus Pozivatelj~n~~r~Napustio igru", 5000, 1);
            SetPVarInt(i, "BusCallTime", 0);
            DisablePlayerCheckpoint(i);
            KillTimer(bustimer[i]);
            SetPVarInt(playerid, "BusTimerCalled", 0);
        }
        }
    }
}
if(GetPVarInt(playerid, "TransportCost") > 0 && GetPVarInt(playerid, "TransportDriver") < 999)
{
    if(IsPlayerConnected(GetPVarInt(playerid, "TransportDriver")))
{
    PovecajPVarInt(GetPVarInt(playerid, "TransportDriver"), "TransportMoney", GetPVarInt(playerid, "TransportCost"));
    SetPVarInt(GetPVarInt(playerid, "TransportDriver"), "TransportTime", 0);
    SetPVarInt(GetPVarInt(playerid, "TransportDriver"), "TransportCost", 0);
    format(string, sizeof(string), "~w~Putnik napustio auto~n~~g~Zaradjeno $%d",GetPVarInt(playerid, "TransportCost"));
    GameTextForPlayer(GetPVarInt(playerid, "TransportDriver"), string, 5000, 1);
    KillTimer(GetPVarInt(playerid, "transporttimer"));
}
}
if(GetPVarInt(playerid, "GotHit") > 0)
{
    if(GetPVarInt(playerid, "GetChased") < 999)
    {
        if(IsPlayerConnected(GetPVarInt(playerid, "GetChased")))
        {
        SendClientMessage(GetPVarInt(playerid, "GetChased"), COLOR_YELLOW, "Vasa meta je napustila server.");
                SetPVarInt(GetPVarInt(playerid, "GetChased"), "GoChase", 999);
}
    }
}
if(GetPVarInt(playerid, "PlayerKarting") > 0 && GetPVarInt(playerid, "PlayerInKart") > 0)
{
    KartingPlayers --;
}
if(GetPVarInt(playerid, "PlayersChannel") < 999)
{
IRCInfo[GetPVarInt(playerid, "PlayersChannel")][iPlayers] -= 1;
}
if(GetPVarInt(playerid, "HireCar") != 699)
{
gLastDriver[GetPVarInt(playerid, "HireCar")] = 300;
gCarLock[GetPVarInt(playerid, "HireCar")] = 0;
UnLockCar(GetPVarInt(playerid, "HireCar"));
}
if(GetPVarInt(playerid, "gLastCar") > 0)
{
gLastDriver[GetPVarInt(playerid, "gLastCar")] = 300;
if(GetPVarInt(playerid, "UsingCar") != GetPVarInt(playerid, "gLastCar"))
{
gCarLock[GetPVarInt(playerid, "gLastCar")] = 0;
UnLockCar(GetPVarInt(playerid, "gLastCar"));
}
}
if(GetPVarInt(playerid, "TransportDuty") == 1)
{
TaxiDrivers -= 1;
}
    else if(GetPVarInt(playerid, "TransportDuty") == 2)
{
BusDrivers -= 1;
}
if(PlayerInfo[playerid][pJob] == 11)
{
    if(GetPVarInt(playerid, "JobDuty") == 1) { Medics -= 1; }
}
else if(PlayerInfo[playerid][pJob] == 7)
{
    if(GetPVarInt(playerid, "JobDuty") == 1) { Mechanics -= 1; }
}
else if(PlayerInfo[playerid][pJob] == 21)
{
if(GetPVarInt(playerid, "JobDuty") == 1) { PizzaBoys -= 1; }
}
}