[POMOC]stvaraju se 2 HC auta---

Započeo Sh44Rawy <3, Maj 26, 2012, 18:24:27 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:Techland
Detaljan opis problema:Stvaraju se 2 HC
Dio skripte: //
Neke slike/video za lakse dobivanje pomoci(neobavezno): //
Offensive RolePlay

Offensive Gaming Forum Super Moderator | www.offensive-samp.com | sh44Rawy

BUMP

pomagajte pls.neznam sta cu vise..sve sam pokusavo..jedino mi ostaje da izbrisem kucna vozila
Offensive RolePlay

Offensive Gaming Forum Super Moderator | www.offensive-samp.com | sh44Rawy

Citat: jx-servers - _IcE_ poslato Maj 28, 2012, 22:06:43 POSLE PODNE
daj onplayerconnect i onplayerdosconnect

OnPlayerConnect :

//------------------------------------------------------------------------------------------------------

public OnPlayerConnect(playerid)
{
FirstRaceWinner = 999;
SecondRaceWinner = 999;
ThirdRaceWinner = 999;
new Admin3DText;
Delete3DTextLabel(Text3D:Admin3DText);
new GS3DText;
Delete3DTextLabel(Text3D:GS3DText);

Speedo[playerid] = TextDrawCreate(592.000000, 417.000000, "255");
TextDrawBackgroundColor(Speedo[playerid], 255);
TextDrawFont(Speedo[playerid], 3);
TextDrawLetterSize(Speedo[playerid], 0.709999, 2.399998);
TextDrawColor(Speedo[playerid], -1);
TextDrawSetOutline(Speedo[playerid], 0);
TextDrawSetProportional(Speedo[playerid], 1);
TextDrawSetShadow(Speedo[playerid], 1);

KMH1 = TextDrawCreate(590.000000, 438.000000, "K");
TextDrawBackgroundColor(KMH1, 255);
TextDrawFont(KMH1, 1);
TextDrawLetterSize(KMH1, 0.500000, 1.000000);
TextDrawColor(KMH1, -1);
TextDrawSetOutline(KMH1, 0);
TextDrawSetProportional(KMH1, 1);
TextDrawSetShadow(KMH1, 1);

KMH2 = TextDrawCreate(604.000000, 438.000000, "M");
TextDrawBackgroundColor(KMH2, 255);
TextDrawFont(KMH2, 1);
TextDrawLetterSize(KMH2, 0.449999, 1.000000);
TextDrawColor(KMH2, -1);
TextDrawSetOutline(KMH2, 0);
TextDrawSetProportional(KMH2, 1);
TextDrawSetShadow(KMH2, 1);

KMH3 = TextDrawCreate(622.000000, 438.000000, "H");
TextDrawBackgroundColor(KMH3, 255);
TextDrawFont(KMH3, 1);
TextDrawLetterSize(KMH3, 0.500000, 1.000000);
TextDrawColor(KMH3, -1);
TextDrawSetOutline(KMH3, 0);
TextDrawSetProportional(KMH3, 1);
TextDrawSetShadow(KMH3, 1);

    ShiftInfo[playerid] = (ShiftInfo[playerid] == false) ? (true) : (true);
    ShiftTimer[playerid] = SetTimerEx("ShiftFunction", 200, true, "e", playerid);

TextDrawShowForPlayer(playerid, Text:textcl5);
    gPlayerUsingLoopingAnim[playerid] = 0;
gPlayerAnimLibsPreloaded[playerid] = 0;
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid,0);

/*TextDrawShowForPlayer(playerid,);
TextDrawShowForPlayer(playerid,Textdraw1);
TextDrawShowForPlayer(playerid,Textdraw2);
TextDrawShowForPlayer(playerid,Textdraw3);
TextDrawShowForPlayer(playerid,Textdraw4);
TextDrawShowForPlayer(playerid,Textdraw5);
TextDrawShowForPlayer(playerid,Textdraw6);
TextDrawShowForPlayer(playerid,Textdraw7);
TextDrawShowForPlayer(playerid,Textdraw8);*/

    new plname[MAX_PLAYER_NAME];
    new string[256];
    GetPlayerName(playerid, plname, sizeof(plname));
    format(string, sizeof(string), "%s", plname);
    SetVehicleNumberPlate(Carlist[playerid][Carid], string);
   
if(Security != 0)
{
    SendClientMessage(playerid, COLOR_YELLOW, "Host has broken one of the Agreement rules, action has been taken.");
    Kick(playerid);
    return 1;
}
    new namestring = strfind(plname, "_", true);
if(namestring == -1)
{
SendClientMessage(playerid, COLOR_YELLOW2, "Imigracioni Odsek: Vase ime nije prihvatljivo.");
SendClientMessage(playerid, COLOR_YELLOW2, "Podsetnik: Vase ime mora biti u formatu Ime_Prezime.");
Kick(playerid);
return 1;
}
gActivePlayers[playerid]++;
numplayers++;
SelectChar[playerid] = 0; HidePM[playerid] = 0; PhoneOnline[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;
CP[playerid] = 0; RCP[playerid] = 0; Robbed[playerid] = 0; SpawnChange[playerid] = 1;
CarOffer[playerid] = 999; CarPrice[playerid] = 0; CarID[playerid] = 0; CarCalls[playerid] = 0;
RobbedTime[playerid] = 0; MoneyMessage[playerid] = 0; Condom[playerid] = 0; Rope[playerid] = 0; Povez[playerid] = 0;
STDPlayer[playerid] = 0; SexOffer[playerid] = 999; SexPrice[playerid] = 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] = 1;
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;
WantedPoints[playerid] = 0; GoChase[playerid] = 999; GetChased[playerid] = 999; PlacedNews[playerid] = 0;
OnDuty[playerid] = 0; WantedLevel[playerid] = 0; tactical[playerid] = 0; swat[playerid] = 0; TestFishes[playerid] = 0;
BoxWaitTime[playerid] = 0; SchoolSpawn[playerid] = 0; ChangePos2[playerid][1] = 0;
SafeTime[playerid] = 60; TransportDuty[playerid] = 0; PlayerTied[playerid] = 0; PlayerBlind[playerid] = 0; PlayerFreezed[playerid] = 0; IgracKrade[playerid] = 0;
BusCallTime[playerid] = 0; TaxiCallTime[playerid] = 0; MedicCallTime[playerid] = 0; MechanicCallTime[playerid] = 0;
BusrouteEast[playerid][0] = 0; BusrouteWest[playerid][0] = 0; BusShowLocation[playerid][0] = 0; BusShowLocationC[playerid] = 0;
FindTimePoints[playerid] = 0; FindTime[playerid] = 0; JobDuty[playerid] = 0;
Mobile[playerid] = 255; BoxOffer[playerid] = 999; PlayerBoxing[playerid] = 0;
Spectate[playerid] = 255; PlayerDrunk[playerid] = 0; PlayerDrunkTime[playerid] = 0;
Unspec[playerid][sLocal] = 255; FishCount[playerid] = 0;
WritingPaper[playerid] = 0; WritingPaperNumber[playerid] = 999; WritingLine[playerid] = 0; BringingPaper[playerid] = 0; GotPaper[playerid] = 0;
PaperOffer[playerid] = 999;
ConsumingMoney[playerid] = 0;
ScriptMoney[playerid] = 0; ScriptMoneyUpdated[playerid] = 0;
for (new c=0; c<13; c++) ScriptWeapons[playerid][c] = 0;
ScriptWeaponsUpdated[playerid] = 0;
    gLastCar[playerid] = 0; FirstSpawn[playerid] = 1;
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;
MatsHolding[playerid] = 0; TutTime[playerid] = 0;
gPlayerMission[playerid] = 0; TaxiAccepted[playerid] = 999; BusAccepted[playerid] = 999;
PlayerInfo[playerid][pCash] = dollah; NoFuel[playerid] = 0;
HireCar[playerid] = 299; GangCar[playerid] = 512; 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;
GivePlayerCash(playerid,PlayerInfo[playerid][pCash]); tactical[playerid] = 0; swat[playerid] = 0;
PizzaCallTime[playerid] = 0; bPizza[playerid] = 0; sPizza[playerid] = 0; gEngine[playerid] = 0; FarmerVar[playerid] = 0; FarmerPickup[playerid][0] = 0; SmugglerWork[playerid] = 0; SmuggledDrugs[playerid] = 0; JustDied[playerid] = 0; KnockedDown[playerid] = 0; UnidentifedCall[playerid] = 0;
LicenseOffer[playerid] = 999; LicensePrice[playerid] = 0; LicenseType[playerid] = 0; UsingDrugs[playerid] = 0; AfterTutorial[playerid] = 0;
OwnableCarOffer[playerid] = 999; OwnableCarID[playerid] = 0; OwnableCarPrice[playerid] = 0; BlindFold[playerid] = 0; PlayerIsSweeping[playerid] = 0; PlayerIsCisti[playerid] = 0; AdminDuty[playerid] = 0; GameSageDuty[playerid] = 0; AdminSpec[playerid] = 0; IsSmoking[playerid] = 0; UsingSmokeAnim[playerid] = 0; ReduceTime[playerid] = 0;
CreatingGun[playerid] = 0; CreatingGunAmmo[playerid] = 0; CreatingGunPrice[playerid] = 0; IsPuttingMaterials[playerid] = 0; IsTakingGun[playerid] = 0; IgracPolaze[playerid] = 0;
InAFoodPlace[playerid] = 0;
PlayerInfo[playerid][pLevel] = 0;
PlayerInfo[playerid][pAdmin] = 0;
PlayerInfo[playerid][pDonateRank] = 0;
PlayerInfo[playerid][gPupgrade] = 0;
PlayerInfo[playerid][pConnectTime] = 0;
PlayerInfo[playerid][pReg] = 0;
PlayerInfo[playerid][pSpol] = 0;
PlayerInfo[playerid][pGodine] = 0;
PlayerInfo[playerid][pDrzava] = 0;
PlayerInfo[playerid][pExp] = 0;
PlayerInfo[playerid][pAccount] = 0;
PlayerInfo[playerid][pCrimes] = 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][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][pChar] = 0;
PlayerInfo[playerid][pContractTime] = 0;
PlayerInfo[playerid][pDetSkill] = 0;
PlayerInfo[playerid][pSpolSkill] = 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;
PlayerInfo[playerid][pDrugsSkill] = 0;
PlayerInfo[playerid][pCookSkill] = 0;
PlayerInfo[playerid][pFishSkill] = 0;
PlayerInfo[playerid][pSHealth] = 0.0;
PlayerInfo[playerid][pHealth] = 50.0;
PlayerInfo[playerid][pInt] = 0;
PlayerInfo[playerid][pLocal] = 255;
PlayerInfo[playerid][pTeam] = 3;
PlayerInfo[playerid][pModel] = 7;
new randphone = 1000 + random(9999);//minimum 1000  max 9999 //giving one at the start
PlayerInfo[playerid][pPnumber] = randphone;
PlayerInfo[playerid][pPcarkey] = 999;
PlayerInfo[playerid][pPcarkey2] = 999;
PlayerInfo[playerid][pPcarkey3] = 999;
PlayerInfo[playerid][pPhousekey] = 255;
PlayerInfo[playerid][pPstankey] = 255;
PlayerInfo[playerid][pPvikendicakey] = 255;
PlayerInfo[playerid][pGangKey] = 255;
PlayerInfo[playerid][pPbiskey] = 255;
PlayerInfo[playerid][pCarLic] = 0;
PlayerInfo[playerid][pFlyLic] = 0;
PlayerInfo[playerid][pBoatLic] = 0;
PlayerInfo[playerid][pFishLic] = 0;
PlayerInfo[playerid][pGunLic] = 0;
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][pWatch] = 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][pFuel] = 0;
PlayerInfo[playerid][pVirWorld] = 0;
PlayerInfo[playerid][pRequestingBackup] = 0;
PlayerInfo[playerid][pRoadblock] = 0;
PlayerInfo[playerid][pFishTool] = 0;
strmid(PlayerInfo[playerid][pNote1], "None", 0, strlen("None"), 255);
PlayerInfo[playerid][pNote1s] = 0;
strmid(PlayerInfo[playerid][pNote2], "None", 0, strlen("None"), 255);
PlayerInfo[playerid][pNote2s] = 0;
strmid(PlayerInfo[playerid][pNote3], "None", 0, strlen("None"), 255);
PlayerInfo[playerid][pNote3s] = 0;
strmid(PlayerInfo[playerid][pNote4], "None", 0, strlen("None"), 255);
PlayerInfo[playerid][pNote4s] = 0;
strmid(PlayerInfo[playerid][pNote5], "None", 0, strlen("None"), 255);
PlayerInfo[playerid][pNote5s] = 0;
PlayerInfo[playerid][pInvWeapon] = 0;
PlayerInfo[playerid][pInvAmmo] = 0;
PlayerInfo[playerid][pLighter] = 0;
PlayerInfo[playerid][pCigarettes] = 0;
PlayerInfo[playerid][pMask] = 0;
PlayerInfo[playerid][pMaskuse] = 0;
PlayerInfo[playerid][pHideNumber] = 0;
PlayerInfo[playerid][pSpeaker] = 0;
PlayerInfo[playerid][pLocked] = 0;
PlayerInfo[playerid][pGameSage] = 0;
PlayerInfo[playerid][pPinKod] = 0;
PlayerInfo[playerid][pKredit] = 0;
PlayerInfo[playerid][pNaocale] = 0;
PlayerInfo[playerid][pMuteTime] = 0;
PlayerInfo[playerid][pKapa] = 0;
PlayerInfo[playerid][pKosa] = 0;
PlayerInfo[playerid][pSpawnChange] = 1;
SetPVarInt(playerid, "Ratuje", 0);
//PlayerInfo[playerid][pSQLID] = 0;
ClearCrime(playerid);
ClearFishes(playerid);
ClearCooking(playerid);
ClearGroceries(playerid);
ClearMarriage(playerid);
ResetPlayerCash(playerid);


OnPlayerDisconnect :

//------------------------------------------------------------------------------------------------------
public OnPlayerDisconnect(playerid, reason)
{
/*TextDrawDestroy(GearInfo[playerid]);*/
TextDrawDestroy(Speedo[playerid]);
TextDrawDestroy(KMH1);
TextDrawDestroy(KMH2);
TextDrawDestroy(KMH3);
/*HideGeneral(playerid);
Loop(x, 6) TextDrawHideForPlayer(playerid, Gear[x]);*/

    ShiftInfo[playerid] = (ShiftInfo[playerid] == false) ? (true) : (true);
    KillTimer(ShiftTimer[playerid]);
new Admin3DText;
Delete3DTextLabel(Text3D:Admin3DText);
new GS3DText;
Delete3DTextLabel(Text3D:GS3DText);
   
    new dateiname[MAX_PLAYER_NAME+4];
new playername[MAX_PLAYER_NAME];
new var[128];
   
gActivePlayers[playerid]--;
numplayers--;
if(reason == 0)
{
for(new slot = 0; slot != 12; slot++)
    {
new wep, ammo;
        GetPlayerWeaponData(playerid, slot, wep, ammo);
        if(wep != 0 && ammo != 0)
        {
            if(PlayerInfo[playerid][pGun1] == 0) { PlayerInfo[playerid][pGun1] = wep; PlayerInfo[playerid][pAmmo1] = ammo; }
            else if(PlayerInfo[playerid][pGun2] == 0) { PlayerInfo[playerid][pGun2] = wep; PlayerInfo[playerid][pAmmo2] = ammo; }
            else if(PlayerInfo[playerid][pGun3] == 0) { PlayerInfo[playerid][pGun3] = wep; PlayerInfo[playerid][pAmmo3] = ammo; }
            else if(PlayerInfo[playerid][pGun4] == 0) { PlayerInfo[playerid][pGun4] = wep; PlayerInfo[playerid][pAmmo4] = ammo; }
        }
    }
}
SacuvajIgraca(playerid);
foreach (Player, i)
{
        if(TaxiAccepted[i] < 999)
        {
        if(TaxiAccepted[i] == playerid)
        {
            TaxiAccepted[i] = 999;
            GameTextForPlayer(i, "~w~Pozivaoc taxija~n~~r~Je napustio igru", 5000, 1);
            TaxiCallTime[i] = 0;
            DisablePlayerCheckpoint(i);
        }
        }
        else if(BusAccepted[i] < 999)
        {
        if(BusAccepted[i] == playerid)
        {
            BusAccepted[i] = 999;
            GameTextForPlayer(i, "~w~Pozivaoc busa~n~~r~Je napustio igru", 5000, 1);
            BusCallTime[i] = 0;
            DisablePlayerCheckpoint(i);
        }
        }
}
GetPlayerName(playerid, playername, sizeof(playername));
format(dateiname, sizeof(dateiname), "Vozila/%s.ini", playername);
new File: CarFile = fopen(dateiname, io_write);
    format(var, 256, "AH_Typ=%i\n", Carlist[playerid][Typ]); fwrite(CarFile, var);
    format(var, 256, "AH_X=%f\n", Carlist[playerid][X3]); fwrite(CarFile, var);
format(var, 256, "AH_Y=%f\n", Carlist[playerid][Y3]); fwrite(CarFile, var);
format(var, 256, "AH_Z=%f\n", Carlist[playerid][Z3]); fwrite(CarFile, var);
format(var, 256, "AH_Rot=%f\n", Carlist[playerid][Rotation]); fwrite(CarFile, var);
format(var, 256, "AH_Status=%i\n", Carlist[playerid][Status]); fwrite(CarFile, var);
format(var, 256, "AH_Lock=%i\n", Carlist[playerid][Lock]); fwrite(CarFile, var);
format(var, 256, "AH_Paintjob=%i\n", Carlist[playerid][Paintjob]); fwrite(CarFile, var);
format(var, 256, "AH_Color1=%i\n", Carlist[playerid][Color1]); fwrite(CarFile, var);
format(var, 256, "AH_Color2=%i\n", Carlist[playerid][Color2]); fwrite(CarFile, var);
format(var, 256, "AH_mod1=%i\n", Carlist[playerid][mod1]); fwrite(CarFile, var);
format(var, 256, "AH_mod2=%i\n", Carlist[playerid][mod2]); fwrite(CarFile, var);
format(var, 256, "AH_mod3=%i\n", Carlist[playerid][mod3]); fwrite(CarFile, var);
format(var, 256, "AH_mod4=%i\n", Carlist[playerid][mod4]); fwrite(CarFile, var);
format(var, 256, "AH_mod5=%i\n", Carlist[playerid][mod5]); fwrite(CarFile, var);
format(var, 256, "AH_mod6=%i\n", Carlist[playerid][mod6]); fwrite(CarFile, var);
format(var, 256, "AH_mod7=%i\n", Carlist[playerid][mod7]); fwrite(CarFile, var);
format(var, 256, "AH_mod8=%i\n", Carlist[playerid][mod8]); fwrite(CarFile, var);
format(var, 256, "AH_mod9=%i\n", Carlist[playerid][mod9]); fwrite(CarFile, var);
format(var, 256, "AH_mod10=%i\n", Carlist[playerid][mod10]); fwrite(CarFile, var);
format(var, 256, "AH_mod11=%i\n", Carlist[playerid][mod11]); fwrite(CarFile, var);
format(var, 256, "AH_mod12=%i\n", Carlist[playerid][mod12]); fwrite(CarFile, var);
format(var, 256, "AH_mod13=%i\n", Carlist[playerid][mod13]); fwrite(CarFile, var);
format(var, 256, "AH_mod14=%i\n", Carlist[playerid][mod14]); fwrite(CarFile, var);
format(var, 256, "AH_mod15=%i\n", Carlist[playerid][mod15]); fwrite(CarFile, var);
format(var, 256, "AH_mod16=%i\n", Carlist[playerid][mod16]); fwrite(CarFile, var);
format(var, 256, "AH_mod17=%i\n", Carlist[playerid][mod17]); fwrite(CarFile, var);
format(var, 256, "AH_Vlasnik=%s\n", Carlist[playerid][Vlasnik]); fwrite(CarFile, var);
    fclose(CarFile);
    if(Carlist[playerid][Carid]!=-1)
{
SetVehicleParamsForAll(Carlist[playerid][Carid],0,0);
DestroyVehicle(Carlist[playerid][Carid]);
Carlist[playerid][Carid]=-1;
}

format(dateiname, sizeof(dateiname), "Motori/%s.ini", playername);
new File: BikeFile = fopen(dateiname, io_write);
    format(var, 256, "BH_bTyp=%i\n", Bikelist[playerid][bTyp]); fwrite(BikeFile, var);
    format(var, 256, "BH_X=%f\n", Bikelist[playerid][mX]); fwrite(BikeFile, var);
format(var, 256, "BH_Y=%f\n", Bikelist[playerid][mY]); fwrite(BikeFile, var);
format(var, 256, "BH_Z=%f\n", Bikelist[playerid][mZ]); fwrite(BikeFile, var);
format(var, 256, "BH_Rot=%f\n", Bikelist[playerid][mRotation]); fwrite(BikeFile, var);
format(var, 256, "BH_Status=%i\n", Bikelist[playerid][Status]); fwrite(BikeFile, var);
format(var, 256, "BH_Lock=%i\n", Bikelist[playerid][Lock]); fwrite(BikeFile, var);
format(var, 256, "BH_Paintjob=%i\n", Bikelist[playerid][Paintjob]); fwrite(BikeFile, var);
format(var, 256, "BH_Color1=%i\n", Bikelist[playerid][Color1]); fwrite(BikeFile, var);
format(var, 256, "BH_Color2=%i\n", Bikelist[playerid][Color2]); fwrite(BikeFile, var);
format(var, 256, "BH_mod1=%i\n", Bikelist[playerid][mod1]); fwrite(BikeFile, var);
format(var, 256, "BH_mod2=%i\n", Bikelist[playerid][mod2]); fwrite(BikeFile, var);
format(var, 256, "BH_mod3=%i\n", Bikelist[playerid][mod3]); fwrite(BikeFile, var);
format(var, 256, "BH_mod4=%i\n", Bikelist[playerid][mod4]); fwrite(BikeFile, var);
format(var, 256, "BH_mod5=%i\n", Bikelist[playerid][mod5]); fwrite(BikeFile, var);
format(var, 256, "BH_mod6=%i\n", Bikelist[playerid][mod6]); fwrite(BikeFile, var);
format(var, 256, "BH_mod7=%i\n", Bikelist[playerid][mod7]); fwrite(BikeFile, var);
format(var, 256, "BH_mod8=%i\n", Bikelist[playerid][mod8]); fwrite(BikeFile, var);
format(var, 256, "BH_mod9=%i\n", Bikelist[playerid][mod9]); fwrite(BikeFile, var);
format(var, 256, "BH_mod10=%i\n", Bikelist[playerid][mod10]); fwrite(BikeFile, var);
format(var, 256, "BH_mod11=%i\n", Bikelist[playerid][mod11]); fwrite(BikeFile, var);
format(var, 256, "BH_mod12=%i\n", Bikelist[playerid][mod12]); fwrite(BikeFile, var);
format(var, 256, "BH_mod13=%i\n", Bikelist[playerid][mod13]); fwrite(BikeFile, var);
format(var, 256, "BH_mod14=%i\n", Bikelist[playerid][mod14]); fwrite(BikeFile, var);
format(var, 256, "BH_mod15=%i\n", Bikelist[playerid][mod15]); fwrite(BikeFile, var);
format(var, 256, "BH_mod16=%i\n", Bikelist[playerid][mod16]); fwrite(BikeFile, var);
format(var, 256, "BH_mod17=%i\n", Bikelist[playerid][mod17]); fwrite(BikeFile, var);
    fclose(BikeFile);
    if(Bikelist[playerid][Carid]!=-1)
{
SetBikeParamsForAll(Bikelist[playerid][Carid],0,0);
DestroyVehicle(Bikelist[playerid][Carid]);
Bikelist[playerid][Carid]=-1;
}

format(dateiname, sizeof(dateiname), "Bicikla/%s.ini", playername);
new File: BiciklaFile = fopen(dateiname, io_write);
    format(var, 256, "BI_biTyp=%i\n", Biciklalist[playerid][biTyp]); fwrite(BiciklaFile, var);
    format(var, 256, "BI_X=%f\n", Biciklalist[playerid][mX]); fwrite(BiciklaFile, var);
format(var, 256, "BI_Y=%f\n", Biciklalist[playerid][mY]); fwrite(BiciklaFile, var);
format(var, 256, "BI_Z=%f\n", Biciklalist[playerid][mZ]); fwrite(BiciklaFile, var);
format(var, 256, "BI_Rot=%f\n", Biciklalist[playerid][mRotation]); fwrite(BiciklaFile, var);
format(var, 256, "BI_Status=%i\n", Biciklalist[playerid][Status]); fwrite(BiciklaFile, var);
format(var, 256, "BI_Lock=%i\n", Biciklalist[playerid][Lock]); fwrite(BiciklaFile, var);
format(var, 256, "BI_Color1=%i\n", Biciklalist[playerid][Color1]); fwrite(BiciklaFile, var);
format(var, 256, "BI_Color2=%i\n", Biciklalist[playerid][Color2]); fwrite(BiciklaFile, var);
format(var, 256, "BH_mod1=%i\n", Biciklalist[playerid][mod1]); fwrite(BiciklaFile, var);
format(var, 256, "BH_mod2=%i\n", Biciklalist[playerid][mod2]); fwrite(BiciklaFile, var);
format(var, 256, "BH_mod3=%i\n", Biciklalist[playerid][mod3]); fwrite(BiciklaFile, var);
format(var, 256, "BH_mod4=%i\n", Biciklalist[playerid][mod4]); fwrite(BiciklaFile, var);
format(var, 256, "BH_mod5=%i\n", Biciklalist[playerid][mod5]); fwrite(BiciklaFile, var);
format(var, 256, "BH_mod6=%i\n", Biciklalist[playerid][mod6]); fwrite(BiciklaFile, var);
format(var, 256, "BH_mod7=%i\n", Biciklalist[playerid][mod7]); fwrite(BiciklaFile, var);
format(var, 256, "BH_mod8=%i\n", Biciklalist[playerid][mod8]); fwrite(BiciklaFile, var);
format(var, 256, "BH_mod9=%i\n", Biciklalist[playerid][mod9]); fwrite(BiciklaFile, var);
format(var, 256, "BH_mod10=%i\n", Biciklalist[playerid][mod10]); fwrite(BiciklaFile, var);
format(var, 256, "BH_mod11=%i\n", Biciklalist[playerid][mod11]); fwrite(BiciklaFile, var);
format(var, 256, "BH_mod12=%i\n", Biciklalist[playerid][mod12]); fwrite(BiciklaFile, var);
format(var, 256, "BH_mod13=%i\n", Biciklalist[playerid][mod13]); fwrite(BiciklaFile, var);
format(var, 256, "BH_mod14=%i\n", Biciklalist[playerid][mod14]); fwrite(BiciklaFile, var);
format(var, 256, "BH_mod15=%i\n", Biciklalist[playerid][mod15]); fwrite(BiciklaFile, var);
format(var, 256, "BH_mod16=%i\n", Biciklalist[playerid][mod16]); fwrite(BiciklaFile, var);
format(var, 256, "BH_mod17=%i\n", Biciklalist[playerid][mod17]); fwrite(BiciklaFile, var);
    fclose(BiciklaFile);
    if(Biciklalist[playerid][Carid]!=-1)
{
SetBikeParamsForAll(Biciklalist[playerid][Carid],0,0);
DestroyVehicle(Biciklalist[playerid][Carid]);
Biciklalist[playerid][Carid]=-1;
}

format(dateiname, sizeof(dateiname), "Plovila/%s.ini", playername);
new File: BoatFile = fopen(dateiname, io_write);
    format(var, 256, "BrodH_BoatTyp=%i\n", Boatlist[playerid][BoatTyp]); fwrite(BoatFile, var);
    format(var, 256, "BrodH_X=%f\n", Boatlist[playerid][X3]); fwrite(BoatFile, var);
format(var, 256, "BrodH_Y=%f\n", Boatlist[playerid][Y3]); fwrite(BoatFile, var);
format(var, 256, "BrodH_Z=%f\n", Boatlist[playerid][Z3]); fwrite(BoatFile, var);
format(var, 256, "BrodH_Rot=%f\n", Boatlist[playerid][Rotation]); fwrite(BoatFile, var);
format(var, 256, "BrodH_Status=%i\n", Boatlist[playerid][Status]); fwrite(BoatFile, var);
format(var, 256, "BrodH_Lock=%i\n", Boatlist[playerid][Lock]); fwrite(BoatFile, var);
format(var, 256, "BrodH_Paintjob=%i\n", Boatlist[playerid][Paintjob]); fwrite(BoatFile, var);
format(var, 256, "BrodH_Color1=%i\n", Boatlist[playerid][Color1]); fwrite(BoatFile, var);
format(var, 256, "BrodH_Color2=%i\n", Boatlist[playerid][Color2]); fwrite(BoatFile, var);
format(var, 256, "BrodH_mod1=%i\n", Boatlist[playerid][mod1]); fwrite(BoatFile, var);
format(var, 256, "BrodH_mod2=%i\n", Boatlist[playerid][mod2]); fwrite(BoatFile, var);
format(var, 256, "BrodH_mod3=%i\n", Boatlist[playerid][mod3]); fwrite(BoatFile, var);
format(var, 256, "BrodH_mod4=%i\n", Boatlist[playerid][mod4]); fwrite(BoatFile, var);
format(var, 256, "BrodH_mod5=%i\n", Boatlist[playerid][mod5]); fwrite(BoatFile, var);
format(var, 256, "BrodH_mod6=%i\n", Boatlist[playerid][mod6]); fwrite(BoatFile, var);
format(var, 256, "BrodH_mod7=%i\n", Boatlist[playerid][mod7]); fwrite(BoatFile, var);
format(var, 256, "BrodH_mod8=%i\n", Boatlist[playerid][mod8]); fwrite(BoatFile, var);
format(var, 256, "BrodH_mod9=%i\n", Boatlist[playerid][mod9]); fwrite(BoatFile, var);
format(var, 256, "BrodH_mod10=%i\n", Boatlist[playerid][mod10]); fwrite(BoatFile, var);
format(var, 256, "BrodH_mod11=%i\n", Boatlist[playerid][mod11]); fwrite(BoatFile, var);
format(var, 256, "BrodH_mod12=%i\n", Boatlist[playerid][mod12]); fwrite(BoatFile, var);
format(var, 256, "BrodH_mod13=%i\n", Boatlist[playerid][mod13]); fwrite(BoatFile, var);
format(var, 256, "BrodH_mod14=%i\n", Boatlist[playerid][mod14]); fwrite(BoatFile, var);
format(var, 256, "BrodH_mod15=%i\n", Boatlist[playerid][mod15]); fwrite(BoatFile, var);
format(var, 256, "BrodH_mod16=%i\n", Boatlist[playerid][mod16]); fwrite(BoatFile, var);
format(var, 256, "BrodH_mod17=%i\n", Boatlist[playerid][mod17]); fwrite(BoatFile, var);
    fclose(BoatFile);
    if(Boatlist[playerid][Carid]!=-1)
{
SetBoatParamsForAll(Boatlist[playerid][Carid],0,0);
DestroyVehicle(Boatlist[playerid][Carid]);
Boatlist[playerid][Carid]=-1;
}

format(dateiname, sizeof(dateiname), "Letjelice/%s.i", playername);
new File: PlaneFile = fopen(dateiname, io_write);
    format(var, 256, "PLANE_planeTyp=%i\n", Planelist[playerid][planeTyp]); fwrite(PlaneFile, var);
    format(var, 256, "PLANE_X=%f\n", Planelist[playerid][X3]); fwrite(PlaneFile, var);
format(var, 256, "PLANE_Y=%f\n", Planelist[playerid][Y3]); fwrite(PlaneFile, var);
format(var, 256, "PLANE_Z=%f\n", Planelist[playerid][Z3]); fwrite(PlaneFile, var);
format(var, 256, "PLANE_Rot=%f\n", Planelist[playerid][Rotation]); fwrite(PlaneFile, var);
format(var, 256, "PLANE_Status=%i\n", Planelist[playerid][Status]); fwrite(PlaneFile, var);
format(var, 256, "PLANE_Lock=%i\n", Planelist[playerid][Lock]); fwrite(PlaneFile, var);
format(var, 256, "PLANE_Paintjob=%i\n", Planelist[playerid][Paintjob]); fwrite(PlaneFile, var);
format(var, 256, "PLANE_Color1=%i\n", Planelist[playerid][Color1]); fwrite(PlaneFile, var);
format(var, 256, "PLANE_Color2=%i\n", Planelist[playerid][Color2]); fwrite(PlaneFile, var);
format(var, 256, "PLANE_mod1=%i\n", Planelist[playerid][mod1]); fwrite(PlaneFile, var);
format(var, 256, "PLANE_mod2=%i\n", Planelist[playerid][mod2]); fwrite(PlaneFile, var);
format(var, 256, "PLANE_mod3=%i\n", Planelist[playerid][mod3]); fwrite(PlaneFile, var);
format(var, 256, "PLANE_mod4=%i\n", Planelist[playerid][mod4]); fwrite(PlaneFile, var);
format(var, 256, "PLANE_mod5=%i\n", Planelist[playerid][mod5]); fwrite(PlaneFile, var);
format(var, 256, "PLANE_mod6=%i\n", Planelist[playerid][mod6]); fwrite(PlaneFile, var);
format(var, 256, "PLANE_mod7=%i\n", Planelist[playerid][mod7]); fwrite(PlaneFile, var);
format(var, 256, "PLANE_mod8=%i\n", Planelist[playerid][mod8]); fwrite(PlaneFile, var);
format(var, 256, "PLANE_mod9=%i\n", Planelist[playerid][mod9]); fwrite(PlaneFile, var);
format(var, 256, "PLANE_mod10=%i\n", Planelist[playerid][mod10]); fwrite(PlaneFile, var);
format(var, 256, "PLANE_mod11=%i\n", Planelist[playerid][mod11]); fwrite(PlaneFile, var);
format(var, 256, "PLANE_mod12=%i\n", Planelist[playerid][mod12]); fwrite(PlaneFile, var);
format(var, 256, "PLANE_mod13=%i\n", Planelist[playerid][mod13]); fwrite(PlaneFile, var);
format(var, 256, "PLANE_mod14=%i\n", Planelist[playerid][mod14]); fwrite(PlaneFile, var);
format(var, 256, "PLANE_mod15=%i\n", Planelist[playerid][mod15]); fwrite(PlaneFile, var);
format(var, 256, "PLANE_mod16=%i\n", Planelist[playerid][mod16]); fwrite(PlaneFile, var);
format(var, 256, "PLANE_mod17=%i\n", Planelist[playerid][mod17]); fwrite(PlaneFile, var);
    fclose(PlaneFile);
    if(Planelist[playerid][Carid]!=-1)
{
SetPlaneParamsForAll(Planelist[playerid][Carid],0,0);
DestroyVehicle(Planelist[playerid][Carid]);
Planelist[playerid][Carid]=-1;
}

if (Spectating[playerid][0]!=-1)
    {
        SetVehicleParamsForAll(Buylist[Spectating[playerid][0]][Carid],0,0);
        Spectating[playerid][0]=-1;
}
if (bSpectating[playerid][0]!=-1)
    {
        SetBikeParamsForAll(BikeBuylist[Spectating[playerid][0]][Carid],0,0);
        bSpectating[playerid][0]=-1;
}
if (biciklaSpectating[playerid][0]!=-1)
    {
        SetBikeParamsForAll(BiciklaBuylist[Spectating[playerid][0]][Carid],0,0);
        bSpectating[playerid][0]=-1;
}
if (BrodSpectating[playerid][0]!=-1)
    {
        SetBoatParamsForAll(BoatBuylist[BrodSpectating[playerid][0]][Carid],0,0);
        BrodSpectating[playerid][0]=-1;
}
if (planeSpectating[playerid][0]!=-1)
    {
        SetPlaneParamsForAll(planeBuylist[planeSpectating[playerid][0]][Carid],0,0);
        planeSpectating[playerid][0]=-1;
}
VehicleSave(playerid);
MotoSave(playerid);
BiciklaSave(playerid);
PlSave(playerid);
LetjeliceSave(playerid);
/*if(GettingCK[playerid] < 999)
{
    if(IsPlayerConnected(GettingCK[playerid]))
    {
        SendClientMessage(GettingCK[playerid], COLOR_YELLOW, "Your Character Kill has left the server, try again later.");
        OnCK[GettingCK[playerid]] = 999;
    }
}*/
if (GetPlayerVehicleID(playerid) == 189) SetVehicleToRespawn(189);
SacuvajIgraca(playerid);
Offensive RolePlay

Offensive Gaming Forum Super Moderator | www.offensive-samp.com | sh44Rawy