Jump to content
  • 0

problema gm


duplex

Question

4 answers to this question

Recommended Posts

[pawn]public OnPlayerConnect(playerid)

{

if(IsPlayerNPC(playerid)) return 1;

new zone[MAX_ZONE_NAME];

GetPlayer2DZone(playerid, zone, MAX_ZONE_NAME)

   

    if(Security != 0)

{

    SendClientMessage(playerid, COLOR_YELLOW, ": Gazda a rupt una dintre regulile de acord, actiunea a fost luata.");

    Kick(playerid);

    return 1;

}

JustReported[playerid] = 0;

PlayerNeedsHelp[playerid] = 0;

UsedCrack[playerid] = 0;

CrackOffer[playerid] = 999;

CrackPrice[playerid] = 0;

CrackGram[playerid] = 0;

STIPlayer[playerid] = 0;

SetVehicleNumberPlate(examc, " School");

gActivePlayers[playerid]++;

IsSmoking[playerid] = 0;

numplayers++;

gPlayerAnimLibsPreloaded[playerid] = 0;

new plname[MAX_PLAYER_NAME];

new string[MAX_PLAYER_NAME];

SelectChar[playerid] = 0; Hidemda[playerid]= 0; HidePM[playerid] = 0; PhoneOnline[playerid] = 0; PlayerIsHarvesting[playerid] = 0;

SelectCharID[playerid] = 0; SelectCharPlace[playerid] = 0; ChosenSkin[playerid] = 0;

GettingJob[playerid] = 0; GuardOffer[playerid] = 999; GuardPrice[playerid] = 0;

    ApprovedLawyer[playerid] = 0; CallLawyer[playerid] = 0; WantLawyer[playerid] = 0;

KickPlayer[playerid] = 0; CurrentMoney[playerid] = 0; UsedFind[playerid] = 0;BusrouteEast[playerid][0] = 0; BusrouteWest[playerid][0] = 0;

CP[playerid] = 0; Robbed[playerid] = 0; SpawnChange[playerid] = 1;Sweeperroute[playerid][0] = 0;Tractorroute[playerid][0] = 0; Cowroute[playerid][0] = 0;

CarOffer[playerid] = 999; CarPrice[playerid] = 0; CarID[playerid] = 0; CarCalls[playerid] = 0;

RobbedTime[playerid] = 0; MoneyMessage[playerid] = 0; Condom[playerid] = 0;

STDPlayer[playerid] = 0; SexOffer[playerid] = 999; SexPrice[playerid] = 0; ChangePos2[playerid][1] = 0;

RepairOffer[playerid] = 999; RepairPrice[playerid] = 0; RepairCar[playerid] = 0;

TalkingLive[playerid] = 255; LiveOffer[playerid] = 999; TakingLesson[playerid] = 0;

RefillOffer[playerid] = 999; RefillPrice[playerid] = 0; MapIconsShown[playerid] = 0;

DrugOffer[playerid] = 999; PlayerCuffed[playerid] = 0; PlayerCuffedTime[playerid] = 0;

DrugPrice[playerid] = 0; RegistrationStep[playerid] = 0; OnCK[playerid] = 999; GettingCK[playerid] = 999;

DrugGram[playerid] = 0; ConnectedToPC[playerid] = 0; OrderReady[playerid] = 0;

JailPrice[playerid] = 0; MedicTime[playerid] = 0; NeedMedicTime[playerid] = 0; MedicBill[playerid] = 0; GotHit[playerid] = 0;

    GoChase[playerid] = 999; GetChased[playerid] = 999; PlacedNews[playerid] = 0;

OnDuty[playerid] = 0; MOnDuty[playerid] = 0; TestFishes[playerid] = 0;

BoxWaitTime[playerid] = 0; SchoolSpawn[playerid] = 0; ChangePos2[playerid][1] = 0;

SafeTime[playerid] = 60; TransportDuty[playerid] = 0; PlayerTied[playerid] = 0;

BusCallTime[playerid] = 0; TaxiCallTime[playerid] = 0; MedicCallTime[playerid] = 0; MechanicCallTime[playerid] = 0;

FindTimePoints[playerid] = 0; FindTime[playerid] = 0; JobDuty[playerid] = 0;

Mobile[playerid] = 255; Music[playerid] = 0; BoxOffer[playerid] = 999; PlayerBoxing[playerid] = 0; BusShowLocation[playerid][0] = 0;

Spectate[playerid] = 255; PlayerDrunk[playerid] = 0; PlayerDrunkTime[playerid] = 0;

Unspec[playerid][sLocal] = 255; FishCount[playerid] = 0; SafeGivePlayerMoney(playerid,PlayerInfo[playerid][pCash]);

WritingPaper[playerid] = 0; WritingPaperNumber[playerid] = 999; WritingLine[playerid] = 0; BringingPaper[playerid] = 0; GotPaper[playerid] = 0;

PaperOffer[playerid] = 999; ConsumingMoney[playerid] = 0;

    gLastCar[playerid] = 0; FirstSpawn[playerid] = 0; AdminDuty[playerid] = 0; ModeratorDuty[playerid] = 0;

gOoc[playerid] = 0; gNews[playerid] = 0; BigEar[playerid] = 0; gDice[playerid] = 0; gFam[playerid] = 0;

gSpeedo[playerid] = 0; gGas[playerid] = 0;

gPlayerLogged[playerid] = 0; gPlayerLogTries[playerid] = 0; gPlayerAccount[playerid] = 0;

gPlayerSpawned[playerid] = 0; PlayerKarting[playerid] = 0; PlayerInKart[playerid] = 0;

PlayerTazeTime[playerid] = 0; PlayerStoned[playerid] = 0;

StartTime[playerid] = 0; TicketOffer[playerid] = 999; TicketMoney[playerid] = 0; ScriptMoney[playerid] = 0;

MatsHolding[playerid] = 0; TutTime[playerid] = 0;

gPlayerMission[playerid] = 0; TaxiAccepted[playerid] = 999; BusAccepted[playerid] = 999;

NoFuel[playerid] = 0; ScriptMoneyUpdated[playerid] = 0;

HireCar[playerid] = 299; PlayersChannel[playerid] = 999;

TransportValue[playerid] = 0; TransportMoney[playerid] = 0; TransportTime[playerid] = 0; TransportCost[playerid] = 0; TransportDriver[playerid] = 999;

Locator[playerid] = 0; PlayerOnMission[playerid] = 0; MissionCheckpoint[playerid] = 0;

WatchingTV[playerid] = 0; PlayerPaintballing[playerid] = 0; PlayerPaintballKills[playerid] = 0;

Fishes[playerid][pLastFish] = 0; Fishes[playerid][pFishID] = 0;

ProposeOffer[playerid] = 999; MarryWitness[playerid] = 999; MarryWitnessOffer[playerid] = 999; MarriageCeremoney[playerid] = 0; ProposedTo[playerid] = 999; GotProposedBy[playerid] = 999; DivorceOffer[playerid] = 999; PlayerReport[playerid] = 0;PlayerSweeper[playerid] = 0; PlayerTicket[playerid] = 0; PlayerGuard[playerid] = 0; PlayerRefill[playerid] = 0; PlayerRepair[playerid] = 0; PlayerNeedHelp[playerid] = 0;

GivePlayerMoney(playerid,PlayerInfo[playerid][pCash]);

PlayerInfo[playerid][pLevel] = 0;

PlayerInfo[playerid][pAdmin] = 0;

PlayerInfo[playerid][pPremium] = 0;

PlayerInfo[playerid][pHelper] = 0;

PlayerInfo[playerid][pDonateRank] = 1;

PlayerInfo[playerid][gPupgrade] = 0;

PlayerInfo[playerid][pConnectTime] = 0;

PlayerInfo[playerid][pReg] = 0;

PlayerInfo[playerid][pSex] = 0;

PlayerInfo[playerid]


= 0;

PlayerInfo[playerid][pOrigin] = 0;

PlayerInfo[playerid][pFstyles] = 0;

PlayerInfo[playerid][pWstyles] = 0;

PlayerInfo[playerid][pExp] = 0;

PlayerInfo[playerid][pAccount] = 0;

PlayerInfo[playerid][pCrimes] = 0;

gPlayerUsingLoopingAnim[playerid] = 0;

gPlayerAnimLibsPreloaded[playerid] = 0;

PlayerInfo[playerid][pDeaths] = 0;

PlayerInfo[playerid][pArrested] = 0;

PlayerInfo[playerid][pWantedDeaths] = 0;

PlayerInfo[playerid][pPhoneBook] = 0;

PlayerInfo[playerid][pLottoNr] = 0;

PlayerInfo[playerid][pFishes] = 0;

PlayerInfo[playerid][pBiggestFish] = 0;

PlayerInfo[playerid][pJob] = 0;

PlayerInfo[playerid][pPayCheck] = 0;

PlayerInfo[playerid][pHeadValue] = 0;

PlayerInfo[playerid][pJailed] = 0;

PlayerInfo[playerid][pMuteTime] = 0;

PlayerInfo[playerid][pRentroom1] = 0;

PlayerInfo[playerid][pRentroom2] = 0;

PlayerInfo[playerid][pRentroom4] = 0;

PlayerInfo[playerid][pRentroom6] = 0;

PlayerInfo[playerid][pRentroom7] = 0;

PlayerInfo[playerid][pRentroom10] = 0;

PlayerInfo[playerid][pRentroom11] = 0;

PlayerInfo[playerid][pRentroom12] = 0;

PlayerInfo[playerid][pJailTime] = 0;

PlayerInfo[playerid][pMats] = 0;

PlayerInfo[playerid][pDrugs] = 0;

PlayerInfo[playerid][pLeader] = 0;

PlayerInfo[playerid][pMember] = 0;

PlayerInfo[playerid][pFMember] = 255;

PlayerInfo[playerid][pRank] = 0;

PlayerInfo[playerid][pLighter] = 0;

PlayerInfo[playerid][pRoadblock] = 0;

PlayerInfo[playerid][pDependent] = 0;

PlayerInfo[playerid][pCigarettes] = 0;

PlayerInfo[playerid][pBoxDrugs] = 0;

PlayerInfo[playerid][pBoxMats] = 0;

PlayerInfo[playerid][pChar] = 0;

PlayerInfo[playerid][pContractTime] = 0;

PlayerInfo[playerid][pDetSkill] = 0;

PlayerInfo[playerid][pSexSkill] = 0;

PlayerInfo[playerid][pBoxSkill] = 0;

PlayerInfo[playerid][pLawSkill] = 0;

PlayerInfo[playerid][pMechSkill] = 0;

PlayerInfo[playerid][pJackSkill] = 0;

PlayerInfo[playerid][pCarSkill] = 0;

PlayerInfo[playerid][pNewsSkill] = 0;

UsingDrugs[playerid] = 0;

PlayerInfo[playerid][pCMember] = 0;

PlayerInfo[playerid][pDrugsSkill] = 0;

PlayerInfo[playerid][pCookSkill] = 0;

PlayerInfo[playerid][pFishSkill] = 0;

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(8999);//minimum 1000  max 9999 //giving one at the start

PlayerInfo[playerid][pPnumber] = randphone;

PlayerInfo[playerid][pPhousekey] = 255;

PlayerInfo[playerid][pPcarkey1] = 999;

PlayerInfo[playerid][pPcarkey2] = 999;

PlayerInfo[playerid][pPcarkey3] = 999;

PlayerInfo[playerid][pPbiskey] = 255;

PlayerInfo[playerid][pCarLic] = 1;

PlayerInfo[playerid][pFlyLic] = 0;

PlayerInfo[playerid][pBoatLic] = 0;

PlayerInfo[playerid][pFishLic] = 0;

PlayerInfo[playerid][pGunLic] = 1;

PlayerInfo[playerid][pGun1] = 0;

PlayerInfo[playerid][pGun2] = 0;

PlayerInfo[playerid][pGun3] = 0;

PlayerInfo[playerid][pGun4] = 0;

PlayerInfo[playerid][pAmmo1] = 0;

PlayerInfo[playerid][pAmmo2] = 0;

PlayerInfo[playerid][pAmmo3] = 0;

PlayerInfo[playerid][pAmmo4] = 0;

PlayerInfo[playerid][pCarTime] = 0;

PlayerInfo[playerid][pPayDay] = 0;

PlayerInfo[playerid][pPayDayHad] = 0;

PlayerInfo[playerid][pCDPlayer] = 0;

PlayerInfo[playerid][pWins] = 0;

PlayerInfo[playerid][pLoses] = 0;

PlayerInfo[playerid][pAlcoholPerk] = 0;

PlayerInfo[playerid][pDrugPerk] = 0;

PlayerInfo[playerid][pMiserPerk] = 0;

PlayerInfo[playerid][pPainPerk] = 0;

PlayerInfo[playerid][pTraderPerk] = 0;

PlayerInfo[playerid][pTut] = 0;

PlayerInfo[playerid][pMissionNr] = 0;

PlayerInfo[playerid][pWarns] = 0;

PlayerInfo[playerid][pAWarns] = 0;

PlayerInfo[playerid][pMWarns] = 0;

PlayerInfo[playerid][pMaskuse] = 0;

PlayerInfo[playerid][pFuel] = 0;

PlayerInfo[playerid][pAdjustable] = 0;

PlayerInfo[playerid][pPassport] = 0;

PlayerInfo[playerid][pLocked] = 0;

PlayerInfo[playerid][pBuletin] = 0;

PlayerInfo[playerid][pCrack] = 0;

PlayerInfo[playerid][pPDspawn] = 0;  // Spawn Police Departament

PlayerInfo[playerid][pFBIspawn] = 0; // Spawn FBI Agency

PlayerInfo[playerid][pNGspawn] = 0;  // Spawn National Guard

PlayerInfo[playerid][pNFspawn] = 0;  // Spawn The Russian Bratva

PlayerInfo[playerid][pTJMspawn] = 0; // Spawn Da Nang Boys

PlayerInfo[playerid][pPrspawn] = 0;  // Spawn Primarie

PlayerInfo[playerid][pHAspawn] = 0;  // Spawn Hitman Agency

PlayerInfo[playerid][pMCspawn] = 0;  // Spawn Mechanic ompanY

PlayerInfo[playerid][pESBspawn] = 0; // Spawn Grove Street

PlayerInfo[playerid][pWSCspawn] = 0; // Spawn The Triads Mafia

PlayerInfo[playerid][pNSspawn] = 0;  // Spawn Los Santos Vagos

PlayerInfo[playerid][pSSspawn] = 0;  // Spawn Ballas

PlayerInfo[playerid][pBKspawn] = 0;  // Spawn People Racing

PlayerInfo[playerid][pTransferacc] = 0;  // Accept Transfer

TextDrawShowForPlayer(playerid,HClock);

TextDrawShowForPlayer(playerid,HClock2);

TextDrawShowForPlayer(playerid,HClock3);

TextDrawShowForPlayer(playerid,HClock4);

ClearFishes(playerid);

SetPlayerMapIcon(playerid,1,1412.0840,-1701.5978,13.5395,55,COLOR_YELLOW2, MAPICON_LOCAL);//DMV LS

new DialogString[1024];

    format(DialogString, sizeof DialogString, "%s%s%s%s%s", reg, reg2, reg3, reg4, reg5);

ShowPlayerDialog(playerid, 71, DIALOG_STYLE_MSGBOX, "{F81414}Introducere in server...", DialogString, "Ok", "Iesi");

for(new h = 201; h < sizeof(CarInfo); h++)

{

SetVehicleParamsForPlayer(h,playerid,0,CarInfo[h][cLock]);

}

ClearCooking(playerid);

ClearGroceries(playerid);

ClearMarriage(playerid);

SetPlayerColor(playerid,COLOR_GRAD2);

GetPlayerName(playerid, plname, sizeof(plname));

format(string, sizeof(string), "%s.ini", plname);

if(fexist(string))

{

gPlayerAccount[playerid] = 1;

        SendClientMessage(playerid, COLOR_GREEN,": Se incarca, asteapta...");

}

else

{

gPlayerAccount[playerid] = 0;

        SendClientMessage(playerid, COLOR_GREEN,": Se incarca, asteapta...");

}

return 1;

}[/pawn]

Link to comment
Share on other sites

[pawn]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);

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

if ( UserFile )

{

    new PassData[256];

    new 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 ];

    new 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] = strval( val ); }

    if( strcmp( key , "AdminLevel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAdmin] = strval( val ); }

    if( strcmp( key , "PremiumAccount" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPremium] = strval( val ); }

    if( strcmp( key , "HelperLevel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHelper] = strval( val ); }

        if( strcmp( key , "DonateRank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDonateRank] = strval( val ); }

        if( strcmp( key , "UpgradePoints" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][gPupgrade] = strval( val ); }

        if( strcmp( key , "ConnectedTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pConnectTime] = strval( val ); }

        if( strcmp( key , "Registered" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pReg] = strval( val ); }

        if( strcmp( key , "Sex" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSex] = strval( val ); }

        if( strcmp( key , "Age" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid]


= strval( val ); }

        if( strcmp( key , "Origin" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pOrigin] = strval( val ); }

        if( strcmp( key , "CK" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCK] = strval( val ); }

          if( strcmp( key , "Origin" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pOrigin] = strval( val ); }

          if( strcmp( key , "Fightstyles" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFstyles] = strval( val ); }

        if( strcmp( key , "Muted" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMuted] = strval( val ); }

        if( strcmp( key , "CanSayTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMuteTime] = strval( val ); }

        if( strcmp( key , "Respect" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pExp] = strval( val ); }

        if( strcmp( key , "Lighter" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLighter] = strval( val ); }

        if( strcmp( key , "Dependent" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDependent] = strval( val ); }

        if( strcmp( key , "Cigarettes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCigarettes] = strval( val ); }

        if( strcmp( key , "Money" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCash] = strval( val ); }

        if( strcmp( key , "Bank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAccount] = strval( val ); }

        if( strcmp( key , "Crimes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrimes] = strval( val ); }

        if( strcmp( key , "Kills" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pKills] = strval( val ); }

        if( strcmp( key , "Deaths" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDeaths] = strval( val ); }

        if( strcmp( key , "Arrested" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pArrested] = strval( val ); }

        if( strcmp( key , "WantedDeaths" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWantedDeaths] = strval( val ); }

        if( strcmp( key , "Phonebook" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPhoneBook] = strval( val ); }

        if( strcmp( key , "LottoNr" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLottoNr] = strval( val ); }

        if( strcmp( key , "Fishes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishes] = strval( val ); }

        if( strcmp( key , "BiggestFish" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBiggestFish] = strval( val ); }

        if( strcmp( key , "Job" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJob] = strval( val ); }

        if( strcmp( key , "Paycheck" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPayCheck] = strval( val ); }

        if( strcmp( key , "HeadValue" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHeadValue] = strval( val ); }

        if( strcmp( key , "Jailed" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJailed] = strval( val ); }

        if( strcmp( key , "Room1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRentroom1] = strval( val ); }

        if( strcmp( key , "Room2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRentroom2] = strval( val ); }

        if( strcmp( key , "Room3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRentroom4] = strval( val ); }

        if( strcmp( key , "Room4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRentroom6] = strval( val ); }

        if( strcmp( key , "Room5" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRentroom7] = strval( val ); }

        if( strcmp( key , "Room6" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRentroom10] = strval( val ); }

        if( strcmp( key , "Room7" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRentroom11] = strval( val ); }

        if( strcmp( key , "Room8" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRentroom12] = strval( val ); }

        if( strcmp( key , "JailTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJailTime] = strval( val ); }

        if( strcmp( key , "SafeMats" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBoxMats] = strval( val ); }

        if( strcmp( key , "Tutorial" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTut] = strval( val ); }

        if( strcmp( key , "SafeDrugs" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBoxDrugs] = strval( val ); }

        if( strcmp( key , "Materials" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMats] = strval( val ); }

        if( strcmp( key , "Drugs" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrugs] = strval( val ); }

        if( strcmp( key , "Leader" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLeader] = strval( val ); }

        if( strcmp( key , "Member" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMember] = strval( val ); }

        if( strcmp( key , "FMember" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFMember] = strval( val ); }

        if( strcmp( key , "Rank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRank] = strval( val ); }

        if( strcmp( key , "Char" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pChar] = strval( val ); }

        if( strcmp( key , "ContractTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pContractTime] = strval( val ); }

        if( strcmp( key , "DetSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDetSkill] = strval( val ); }

        if( strcmp( key , "SexSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSexSkill] = strval( val ); }

        if( strcmp( key , "BoxSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBoxSkill] = strval( val ); }

        if( strcmp( key , "LawSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLawSkill] = strval( val ); }

        if( strcmp( key , "MechSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMechSkill] = strval( val ); }

        if( strcmp( key , "JackSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJackSkill] = strval( val ); }

        if( strcmp( key , "CarSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarSkill] = strval( val ); }

        if( strcmp( key , "NewsSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNewsSkill] = strval( val ); }

        if( strcmp( key , "DrugsSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrugsSkill] = strval( val ); }

        if( strcmp( key , "CookSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCookSkill] = strval( val ); }

        if( strcmp( key , "FishSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishSkill] = strval( 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] = strval( val ); }

        if( strcmp( key , "Local" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLocal] = strval( val ); }

        if( strcmp( key , "Team" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTeam] = strval( val ); }

        if( strcmp( key , "Model" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pModel] = strval( val ); }

        if( strcmp( key , "PhoneNr" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPnumber] = strval( val ); }

        if( strcmp( key , "House" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPhousekey] = strval( val ); }

        if( strcmp( key , "Bizz" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPbiskey] = strval( 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 , "Car1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPcarkey1] = strval( val ); }

        if( strcmp( key , "Car2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPcarkey2] = strval( val ); }

        if( strcmp( key , "Car3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPcarkey3] = strval( 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] = strval( val ); }

                    if( strcmp( key , "FlyLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFlyLic] = strval( val ); }

if( strcmp( key , "BoatLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBoatLic] = strval( val ); }

        if( strcmp( key , "FishLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishLic] = strval( val ); }

        if( strcmp( key , "GunLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGunLic] = strval( val ); }

        if( strcmp( key , "Gun1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun1] = strval( val ); }

        if( strcmp( key , "Gun2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun2] = strval( val ); }

        if( strcmp( key , "Gun3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun3] = strval( val ); }

        if( strcmp( key , "Gun4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun4] = strval( val ); }

        if( strcmp( key , "Ammo1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo1] = strval( val ); }

        if( strcmp( key , "Ammo2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo2] = strval( val ); }

        if( strcmp( key , "Ammo3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo3] = strval( val ); }

        if( strcmp( key , "Ammo4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo4] = strval( val ); }

        if( strcmp( key , "CarTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarTime] = strval( val ); }

        if( strcmp( key , "PayDay" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPayDay] = strval( val ); }

        if( strcmp( key , "PayDayHad" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPayDayHad] = strval( val ); }

        if( strcmp( key , "CDPlayer" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCDPlayer] = strval( val ); }

        if( strcmp( key , "Wins" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWins] = strval( val ); }

        if( strcmp( key , "Loses" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLoses] = strval( val ); }

        if( strcmp( key , "AlcoholPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAlcoholPerk] = strval( val ); }

        if( strcmp( key , "DrugPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrugPerk] = strval( val ); }

        if( strcmp( key , "MiserPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMiserPerk] = strval( val ); }

        if( strcmp( key , "PainPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPainPerk] = strval( val ); }

        if( strcmp( key , "TraderPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTraderPerk] = strval( val ); }

        if( strcmp( key , "Warnings" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWarns] = strval( val ); }

        if( strcmp( key , "AdminWarnings" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAWarns] = strval( val ); }

        if( strcmp( key , "ModWarnings" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMWarns] = strval( val ); }

        if( strcmp( key , "Mission" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMissionNr] = strval( val ); }

        if( strcmp( key , "Warnings" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWarns] = strval( val ); }

        if( strcmp( key , "AdminWarnings" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAWarns] = strval( val ); }

        if( strcmp( key , "ModWarnings" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMWarns] = strval( val ); }

        if( strcmp( key , "Adjustable" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAdjustable] = strval( val ); }

        if( strcmp( key , "Fuel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFuel] = strval( val ); }

        if( strcmp( key , "Married" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMarried] = strval( val ); }

        if( strcmp( key , "MarriedTo" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pMarriedTo], val, 0, strlen(val)-1, 255); }

        if( strcmp( key , "Crack" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrack] = strval( val ); }

        if( strcmp( key , "Passport" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPassport] = strvalEx( val ); }

        if( strcmp( key , "Buletin" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBuletin] = strval( val ); }

        if( strcmp( key , "SpawnPD" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPDspawn] = strvalEx( val ); }

        if( strcmp( key , "SpawnFBI" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFBIspawn] = strvalEx( val ); }

        if( strcmp( key , "SpawnNG" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNGspawn] = strvalEx( val ); }

        if( strcmp( key , "SpawnNF" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNFspawn] = strvalEx( val ); }

        if( strcmp( key , "SpawnTJM" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTJMspawn] = strvalEx( val ); }

        if( strcmp( key , "SpawnPr" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPrspawn] = strvalEx( val ); }

if( strcmp( key , "Locked" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLocked] = strval( val ); }

    if( strcmp( key , "SpawnHA" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHAspawn] = strvalEx( val ); }

        if( strcmp( key , "SpawnNR" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMCspawn] = strvalEx( val ); }

        if( strcmp( key , "SpawnESB" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pESBspawn] = strvalEx( val ); }

        if( strcmp( key , "SpawnWSC" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWSCspawn] = strvalEx( val ); }

        if( strcmp( key , "SpawnNS" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNSspawn] = strvalEx( val ); }

        if( strcmp( key , "SpawnSS" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSSspawn] = strvalEx( val ); }

        if( strcmp( key , "SpawnBK" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBKspawn] = strvalEx( val ); }*/

        if( strcmp( key , "Level" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLevel] = strval( val ); }

    if( strcmp( key , "AdminLevel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAdmin] = strval( val ); }

    if( strcmp( key , "PremiumAccount" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPremium] = strval( val ); }

    if( strcmp( key , "HelperLevel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHelper] = strval( val ); }

        if( strcmp( key , "DonateRank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDonateRank] = strval( val ); }

        if( strcmp( key , "UpgradePoints" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][gPupgrade] = strval( val ); }

        if( strcmp( key , "ConnectedTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pConnectTime] = strval( val ); }

        if( strcmp( key , "Registered" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pReg] = strval( val ); }

        if( strcmp( key , "Sex" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSex] = strval( val ); }

        if( strcmp( key , "Age" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid]


= strval( val ); }

        if( strcmp( key , "Origin" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pOrigin] = strval( val ); }

        if( strcmp( key , "CK" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCK] = strval( val ); }

          if( strcmp( key , "Origin" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pOrigin] = strval( val ); }

          if( strcmp( key , "Fightstyles" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFstyles] = strval( val ); }

        if( strcmp( key , "Muted" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMuted] = strval( val ); }

        if( strcmp( key , "Respect" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pExp] = strval( val ); }

        if( strcmp( key , "Lighter" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLighter] = strval( val ); }

        if( strcmp( key , "Dependent" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDependent] = strval( val ); }

        if( strcmp( key , "Cigarettes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCigarettes] = strval( val ); }

        if( strcmp( key , "Money" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCash] = strval( val ); }

        if( strcmp( key , "Bank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAccount] = strval( val ); }

        if( strcmp( key , "Crimes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrimes] = strval( val ); }

        if( strcmp( key , "Kills" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pKills] = strval( val ); }

        if( strcmp( key , "Deaths" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDeaths] = strval( val ); }

        if( strcmp( key , "Arrested" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pArrested] = strval( val ); }

        if( strcmp( key , "WantedDeaths" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWantedDeaths] = strval( val ); }

        if( strcmp( key , "Phonebook" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPhoneBook] = strval( val ); }

        if( strcmp( key , "LottoNr" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLottoNr] = strval( val ); }

        if( strcmp( key , "Fishes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishes] = strval( val ); }

        if( strcmp( key , "BiggestFish" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBiggestFish] = strval( val ); }

        if( strcmp( key , "Job" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJob] = strval( val ); }

        if( strcmp( key , "Paycheck" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPayCheck] = strval( val ); }

        if( strcmp( key , "HeadValue" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHeadValue] = strval( val ); }

        if( strcmp( key , "Jailed" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJailed] = strval( val ); }

        if( strcmp( key , "JailTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJailTime] = strval( val ); }

        if( strcmp( key , "SafeMats" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBoxMats] = strval( val ); }

        if( strcmp( key , "Tutorial" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTut] = strval( val ); }

        if( strcmp( key , "SafeDrugs" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBoxDrugs] = strval( val ); }

        if( strcmp( key , "Materials" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMats] = strval( val ); }

        if( strcmp( key , "Drugs" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrugs] = strval( val ); }

        if( strcmp( key , "Leader" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLeader] = strval( val ); }

        if( strcmp( key , "Member" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMember] = strval( val ); }

        if( strcmp( key , "FMember" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFMember] = strval( val ); }

        if( strcmp( key , "Rank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRank] = strval( val ); }

        if( strcmp( key , "Char" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pChar] = strval( val ); }

        if( strcmp( key , "ContractTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pContractTime] = strval( val ); }

        if( strcmp( key , "DetSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDetSkill] = strval( val ); }

        if( strcmp( key , "SexSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSexSkill] = strval( val ); }

        if( strcmp( key , "BoxSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBoxSkill] = strval( val ); }

        if( strcmp( key , "LawSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLawSkill] = strval( val ); }

        if( strcmp( key , "MechSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMechSkill] = strval( val ); }

        if( strcmp( key , "JackSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJackSkill] = strval( val ); }

        if( strcmp( key , "CarSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarSkill] = strval( val ); }

        if( strcmp( key , "NewsSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNewsSkill] = strval( val ); }

        if( strcmp( key , "DrugsSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrugsSkill] = strval( val ); }

        if( strcmp( key , "CookSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCookSkill] = strval( val ); }

        if( strcmp( key , "FishSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishSkill] = strval( 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] = strval( val ); }

        if( strcmp( key , "Local" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLocal] = strval( val ); }

        if( strcmp( key , "Team" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTeam] = strval( val ); }

        if( strcmp( key , "Model" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pModel] = strval( val ); }

        if( strcmp( key , "PhoneNr" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPnumber] = strval( val ); }

        if( strcmp( key , "House" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPhousekey] = strval( val ); }

        if( strcmp( key , "Bizz" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPbiskey] = strval( 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 , "Car1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPcarkey1] = strval( val ); }

        if( strcmp( key , "Car2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPcarkey2] = strval( val ); }

        if( strcmp( key , "Car3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPcarkey3] = strval( 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] = strval( val ); }

                    if( strcmp( key , "FlyLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFlyLic] = strval( val ); }

if( strcmp( key , "BoatLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBoatLic] = strval( val ); }

        if( strcmp( key , "FishLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishLic] = strval( val ); }

        if( strcmp( key , "GunLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGunLic] = strval( val ); }

        if( strcmp( key , "Gun1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun1] = strval( val ); }

        if( strcmp( key , "Gun2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun2] = strval( val ); }

        if( strcmp( key , "Gun3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun3] = strval( val ); }

        if( strcmp( key , "Gun4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun4] = strval( val ); }

        if( strcmp( key , "Ammo1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo1] = strval( val ); }

        if( strcmp( key , "Ammo2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo2] = strval( val ); }

        if( strcmp( key , "Ammo3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo3] = strval( val ); }

        if( strcmp( key , "Ammo4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo4] = strval( val ); }

        if( strcmp( key , "CarTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarTime] = strval( val ); }

        if( strcmp( key , "PayDay" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPayDay] = strval( val ); }

        if( strcmp( key , "PayDayHad" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPayDayHad] = strval( val ); }

        if( strcmp( key , "CDPlayer" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCDPlayer] = strval( val ); }

        if( strcmp( key , "Wins" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWins] = strval( val ); }

        if( strcmp( key , "Loses" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLoses] = strval( val ); }

        if( strcmp( key , "AlcoholPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAlcoholPerk] = strval( val ); }

        if( strcmp( key , "DrugPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrugPerk] = strval( val ); }

        if( strcmp( key , "MiserPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMiserPerk] = strval( val ); }

        if( strcmp( key , "PainPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPainPerk] = strval( val ); }

        if( strcmp( key , "TraderPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTraderPerk] = strval( val ); }

        if( strcmp( key , "Warnings" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWarns] = strval( val ); }

        if( strcmp( key , "AdminWarnings" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAWarns] = strval( val ); }

        if( strcmp( key , "ModWarnings" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMWarns] = strval( val ); }

        if( strcmp( key , "Mission" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMissionNr] = strval( val ); }

        if( strcmp( key , "Warnings" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWarns] = strval( val ); }

        if( strcmp( key , "AdminWarnings" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAWarns] = strval( val ); }

        if( strcmp( key , "ModWarnings" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMWarns] = strval( val ); }

        if( strcmp( key , "Adjustable" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAdjustable] = strval( val ); }

        if( strcmp( key , "Fuel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFuel] = strval( val ); }

        if( strcmp( key , "Married" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMarried] = strval( val ); }

        if( strcmp( key , "MarriedTo" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pMarriedTo], val, 0, strlen(val)-1, 255); }

        if( strcmp( key , "Crack" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrack] = strval( val ); }

        if( strcmp( key , "Passport" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPassport] = strvalEx( val ); }

        if( strcmp( key , "Buletin" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBuletin] = strval( val ); }

        if( strcmp( key , "SpawnPD" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPDspawn] = strvalEx( val ); }

        if( strcmp( key , "SpawnFBI" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFBIspawn] = strvalEx( val ); }

        if( strcmp( key , "SpawnNG" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNGspawn] = strvalEx( val ); }

        if( strcmp( key , "SpawnNF" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNFspawn] = strvalEx( val ); }

        if( strcmp( key , "SpawnTJM" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTJMspawn] = strvalEx( val ); }

        if( strcmp( key , "SpawnPr" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPrspawn] = strvalEx( val ); }

if( strcmp( key , "Locked" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLocked] = strval( val ); }

    if( strcmp( key , "SpawnHA" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHAspawn] = strvalEx( val ); }

        if( strcmp( key , "SpawnNR" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMCspawn] = strvalEx( val ); }

        if( strcmp( key , "SpawnESB" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pESBspawn] = strvalEx( val ); }

        if( strcmp( key , "SpawnWSC" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWSCspawn] = strvalEx( val ); }

        if( strcmp( key , "SpawnNS" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNSspawn] = strvalEx( val ); }

        if( strcmp( key , "SpawnSS" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSSspawn] = strvalEx( val ); }

        if( strcmp( key , "SpawnBK" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBKspawn] = strvalEx( val ); }

                }//end while

                fclose(UserFile);//close the file after everything has been read in the while

}

else

{

new loginstring[128];

new loginname[64];

GetPlayerName(playerid,loginname,sizeof(loginname));

format(loginstring,sizeof(loginstring),"Parola Gresita.\nTe rugam introdu parola corecta.",loginname);

ShowPlayerDialog(playerid,12347,DIALOG_STYLE_INPUT,"Login",loginstring,"Login","Exit");

        fclose(UserFile);

        gPlayerLogTries[playerid] += 1;

        if(gPlayerLogTries[playerid] == 4) { Ban(playerid); }

        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] = 3;

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(8999);//minimum 1000  max 9999 //giving one at the start

PlayerInfo[playerid][pPnumber] = randphone;

PlayerInfo[playerid][pPhousekey] = 255;

PlayerInfo[playerid][pPbiskey] = 255;

PlayerInfo[playerid][pAccount] = 1000;

PlayerInfo[playerid][pReg] = 1;

GivePlayerMoney(playerid, 500);

SetPlayerWantedLevel(playerid,WantedLevel[playerid]);

SendClientMessage(playerid,COLOR_YELLOW,"Nu ai permis asa ca ti-am pus un checkpoint pe harta!Pentru a-l lua dute la el si scrie /exam");

SetPlayerCheckpoint(playerid,1412.0840,-1701.5978,13.5395,5.0);

}

if(PlayerInfo[playerid][pLocked] == 1) // Auto-kick

{

    SendClientMessage(playerid, COLOR_LIGHTRED, "Your account is Banned. Make a unban request on forum: nu fac reclama");

    Kick(playerid);

}

if(PlayerInfo[playerid][pLevel] == -999) //autoban

{

Ban(playerid);

}

else if(PlayerInfo[playerid][pCK] > 0)

{

    Kick(playerid);

}

SendClientMessage(playerid, COLOR_WHITE,"{03EFFC}~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");

        SendClientMessage(playerid, COLOR_WHITE,"      {04FB3C}*{0000FF}Welcome to nu fac reclama {04FB3C}*");

format(string2, sizeof(string2), "* {0BB5F4}Bun Venit {FF0013}%s",playername2);

SendClientMessage(playerid, COLOR_WHITE,string2);

printf("%s has logged in.",playername2);

        if (PlayerInfo[playerid][pPremium] > 0)

{

SendClientMessage(playerid, COLOR_WHITE,"* {6EF83C}Felicitari, esti logat cu un {FF0013}Account Premium."); // 3

}

else

{

            SendClientMessage(playerid, COLOR_WHITE,"* {6EF83C}Nu detii un {FF0013}Account Premium."); // 3

        }

if (PlayerInfo[playerid][pAdmin] > 0)

{

format(string2, sizeof(string2), "* {6EF83C}Esti logat ca {FF0013}Level %d Admin.",PlayerInfo[playerid][pAdmin]);

SendClientMessage(playerid, COLOR_WHITE,string2);

}

if (PlayerInfo[playerid][pHelper] > 0)

{

format(string2, sizeof(string2), "* {6EF83C}Esti logat ca {FF0013}Level %d Moderator.",PlayerInfo[playerid][pHelper]);

SendClientMessage(playerid, COLOR_WHITE,string2);

}

new string3[256];

format(string3, sizeof(string3), "* {6EF83C}Puncte experienta {FF0013}%d",PlayerInfo[playerid][pExp]); // 5

SendClientMessage(playerid, 0xFFFFFFFF,string2);

SendClientMessage(playerid, 0xFFFFFFFF,string3);

        SendClientMessage(playerid, COLOR_WHITE,"{03EFFC}~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");

if(PlayerInfo[playerid][pFstyles] == 1)

{

    SetPlayerFightingStyle (playerid, FIGHT_STYLE_BOXING);

}

if(PlayerInfo[playerid][pFstyles] == 2)

{

    SetPlayerFightingStyle(playerid, FIGHT_STYLE_KUNGFU);

}

if(PlayerInfo[playerid][pFstyles] == 3)

{

    SetPlayerFightingStyle(playerid, FIGHT_STYLE_KNEEHEAD);

}

if(PlayerInfo[playerid][pFstyles] == 4)

{

    SetPlayerFightingStyle(playerid, FIGHT_STYLE_GRABKICK);

}

if(PlayerInfo[playerid][pFstyles] == 5)

{

    SetPlayerFightingStyle(playerid, FIGHT_STYLE_ELBOW);

}

if(PlayerInfo[playerid][pFstyles] == 6)

{

    SetPlayerFightingStyle(playerid, FIGHT_STYLE_NORMAL);

}

if(PlayerInfo[playerid][pWstyles] == 1)

{

    SetPlayerWalkingStyle(playerid, WALK_DEFAULT);

}

if(PlayerInfo[playerid][pWstyles] == 2)

{

    SetPlayerWalkingStyle(playerid, WALK_NORMAL);

}

if(PlayerInfo[playerid][pWstyles] == 3)

{

    SetPlayerWalkingStyle(playerid, WALK_PED);

}

if(PlayerInfo[playerid][pWstyles] == 4)

{

    SetPlayerWalkingStyle(playerid, WALK_GANGSTA);

}

if(PlayerInfo[playerid][pWstyles] == 5)

{

    SetPlayerWalkingStyle(playerid, WALK_GANGSTA2);

}

if(PlayerInfo[playerid][pWstyles] == 6)

{

    SetPlayerWalkingStyle(playerid, WALK_OLD);

}

if(PlayerInfo[playerid][pWstyles] == 7)

{

    SetPlayerWalkingStyle(playerid, WALK_FAT_OLD);

}

if(PlayerInfo[playerid][pWstyles] == 8)

{

    SetPlayerWalkingStyle(playerid, WALK_FAT);

}

if(PlayerInfo[playerid][pWstyles] == 9)

{

    SetPlayerWalkingStyle(playerid, WALK_LADY);

}

if(PlayerInfo[playerid][pWstyles] == 10)

{

    SetPlayerWalkingStyle(playerid, WALK_LADY2);

}

if(PlayerInfo[playerid][pWstyles] == 11)

{

    SetPlayerWalkingStyle(playerid, WALK_WHORE);

}

if(PlayerInfo[playerid][pWstyles] == 12)

{

    SetPlayerWalkingStyle(playerid, WALK_WHORE2);

}

if(PlayerInfo[playerid][pWstyles] == 13)

{

    SetPlayerWalkingStyle(playerid, WALK_DRUNK);

}

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), "~y~Bine ai venit ~n~~w~~h~ %s", playername2);

DateProp(playerid);

GameTextForPlayer(playerid, tmp2, 300, 1);

if(PlayerInfo[playerid][pFMember] < 255)

{

    format(tmp2, sizeof(tmp2), "Family MOTD: %s.", FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyMOTD]);

    SendClientMessage(playerid, COLOR_YELLOW, tmp2);

}

for(new i = 0; i < MAX_PLAYERS; i++)

{

    if(IsPlayerConnected(i))

    {

        if(PlayerInfo[pMaskuse] == 1)

        {

            ShowPlayerNameTagForPlayer(playerid, i, false);

        }

    }

}

}

return 1;

}[/pawn]

Link to comment
Share on other sites

Puteai sa dai EDIT!

Pentru chestia asta ti-ai luat adio de la ajutor, sa nu mai vad alt post pe forum cu acelasi subiect de la tine.

In caz ca iti vine sa ma injuri citeste si asta.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.