if(listitem == 1)///Oceanic { if(PlayerInfo[playerid][Penz] >= 169000) { SendClientMessage{playerid,-1,\"Az Oceanic ára a bankszámládra lett terhelve!!Az Oceanic-t megtalálod az autó szalon mûhelyébe!\"); SendClientMessage(playerid,-1,\"Kaptál kulcsot a mûhelyhez,de csak egyszeri használatra!((Ajtó parancs:/szalon-nyit))\"); Vascso[playerid]++; GivePlayerMoney{playerid,-169000); new iStr[29]; format(iStr, sizeof(iStr), \"cfg-k/Kocsik/%d.ini\", proplev); if(INI_Open(iStr)) { CarInfo[proplev][cModel] = 467; strmid(CarInfo[proplev][cOwner], \"Valaki\", 0, strlen(\"Valaki\"), 999); new Float:X,Float:Y,Float:Z; GetPlayerPos(playerid,X,Y,Z); CarInfo[proplev][cLocationx] = X; CarInfo[proplev][cLocationy] = Y; CarInfo[proplev][cLocationz] = Z; CarInfo[proplev][cAngle] = 0; CarInfo[proplev][cColorOne] = 0; CarInfo[proplev][cColorTwo] = 0; CarInfo[proplev][cLicense] = 0; CarInfo[proplev][cOwned] = 0; CarInfo[proplev][cLock] = 0; CarInfo[proplev][cRendszamVane] = 1; CarInfo[proplev][cKerek] = 0; CarInfo[proplev][cPaintjob] = 0; CarInfo[proplev][cKinezet1] = 0; CarInfo[proplev][cKinezet2] = 0; CarInfo[proplev][cKinezet3] = 0; CarInfo[proplev][cKinezet4] = 0; CarInfo[proplev][cKinezet5] = 0; CarInfo[proplev][cKinezet6] = 0; CarInfo[proplev][cKinezet7] = 0; CarInfo[proplev][cKinezet8] = 0; CarInfo[proplev][cKinezet9] = 0; CarInfo[proplev][cKinezet10] = 0; CarInfo[proplev][cNitro] = 0; CarInfo[proplev][cHidraulika] = 0; CarInfo[proplev][cVan] = 1; INI_WriteInt(\"Model\", CarInfo[proplev][cModel]); INI_WriteFloat(\"Locationx\", CarInfo[proplev][cLocationx]); INI_WriteFloat(\"Locationy\", CarInfo[proplev][cLocationy]); INI_WriteFloat(\"Locationz\", CarInfo[proplev][cLocationz]); INI_WriteFloat(\"Angle\", CarInfo[proplev][cAngle]); INI_WriteInt(\"ColorOne\", CarInfo[proplev][cColorOne]); INI_WriteInt(\"ColorTwo\", CarInfo[proplev][cColorTwo]); INI_WriteString(\"Owner\", CarInfo[proplev][cOwner]); INI_WriteString(\"Description\", CarInfo[proplev][cDescription]); INI_WriteInt(\"License\", CarInfo[proplev][cLicense]); INI_WriteInt(\"Owned\", CarInfo[proplev][cOwned]); INI_WriteInt(\"Lock\", CarInfo[proplev][cLock]); INI_WriteString(\"Rendszam\", CarInfo[proplev][cRendszam]); INI_WriteInt(\"RendszamVane\", CarInfo[proplev][cRendszamVane]); INI_WriteInt(\"Kerek\", CarInfo[proplev][cKerek]); INI_WriteInt(\"Paintjob\", CarInfo[proplev][cPaintjob]); INI_WriteInt(\"Kinezet1\", CarInfo[proplev][cKinezet1]); INI_WriteInt(\"Kinezet2\", CarInfo[proplev][cKinezet2]); INI_WriteInt(\"Kinezet3\", CarInfo[proplev][cKinezet3]); INI_WriteInt(\"Kinezet4\", CarInfo[proplev][cKinezet4]); INI_WriteInt(\"Kinezet5\", CarInfo[proplev][cKinezet5]); INI_WriteInt(\"Kinezet6\", CarInfo[proplev][cKinezet6]); INI_WriteInt(\"Kinezet7\", CarInfo[proplev][cKinezet7]); INI_WriteInt(\"Kinezet8\", CarInfo[proplev][cKinezet8]); INI_WriteInt(\"Kinezet9\", CarInfo[proplev][cKinezet9]); INI_WriteInt(\"Kinezet10\", CarInfo[proplev][cKinezet10]); INI_WriteInt(\"Nitro\", CarInfo[proplev][cNitro]); INI_WriteInt(\"Hidraulika\", CarInfo[proplev][cHidraulika]); INI_WriteInt(\"Van\", CarInfo[proplev][cVan]); INI_Save(); INI_Close(); } SaveCarCoords(); DestroyVehicle(proplev); CreateVehicle(467,-803.2530,1523.0657,27.3170,CarInfo[proplev][cAngle],CarInfo[proplev][cColorOne],CarInfo[proplev][cColorTwo],-1); return 1; } else SendClientMessage(playerid,-1,\"Nincs elég pénzed erre a kocsira.\"); }
if(listitem == 1)///Oceanic { if(PlayerInfo[playerid][Penz] >= 169000) { SendClientMessage{playerid,-1,\"Az Oceanic ára a bankszámládra lett terhelve!!Az Oceanic-t megtalálod az autó szalon mûhelyébe!\"); SendClientMessage(playerid,-1,\"Kaptál kulcsot a mûhelyhez,de csak egyszeri használatra!((Ajtó parancs:/szalon-nyit))\"); Vascso[playerid]++; GivePlayerMoney{playerid,-169000); new iStr[29]; format(iStr, sizeof(iStr), \"cfg-k/Kocsik/%d.ini\", proplev); if(INI_Open(iStr)) { CarInfo[proplev][cModel] = 467; strmid(CarInfo[proplev][cOwner], \"Valaki\", 0, strlen(\"Valaki\"), 999); new Float:X,Float:Y,Float:Z; GetPlayerPos(playerid,X,Y,Z); CarInfo[proplev][cLocationx] = X; CarInfo[proplev][cLocationy] = Y; CarInfo[proplev][cLocationz] = Z; CarInfo[proplev][cAngle] = 0; CarInfo[proplev][cColorOne] = 0; CarInfo[proplev][cColorTwo] = 0; CarInfo[proplev][cLicense] = 0; CarInfo[proplev][cOwned] = 0; CarInfo[proplev][cLock] = 0; CarInfo[proplev][cRendszamVane] = 1; CarInfo[proplev][cKerek] = 0; CarInfo[proplev][cPaintjob] = 0; CarInfo[proplev][cKinezet1] = 0; CarInfo[proplev][cKinezet2] = 0; CarInfo[proplev][cKinezet3] = 0; CarInfo[proplev][cKinezet4] = 0; CarInfo[proplev][cKinezet5] = 0; CarInfo[proplev][cKinezet6] = 0; CarInfo[proplev][cKinezet7] = 0; CarInfo[proplev][cKinezet8] = 0; CarInfo[proplev][cKinezet9] = 0; CarInfo[proplev][cKinezet10] = 0; CarInfo[proplev][cNitro] = 0; CarInfo[proplev][cHidraulika] = 0; CarInfo[proplev][cVan] = 1; INI_WriteInt(\"Model\", CarInfo[proplev][cModel]); INI_WriteFloat(\"Locationx\", CarInfo[proplev][cLocationx]); INI_WriteFloat(\"Locationy\", CarInfo[proplev][cLocationy]); INI_WriteFloat(\"Locationz\", CarInfo[proplev][cLocationz]); INI_WriteFloat(\"Angle\", CarInfo[proplev][cAngle]); INI_WriteInt(\"ColorOne\", CarInfo[proplev][cColorOne]); INI_WriteInt(\"ColorTwo\", CarInfo[proplev][cColorTwo]); INI_WriteString(\"Owner\", CarInfo[proplev][cOwner]); INI_WriteString(\"Description\", CarInfo[proplev][cDescription]); INI_WriteInt(\"License\", CarInfo[proplev][cLicense]); INI_WriteInt(\"Owned\", CarInfo[proplev][cOwned]); INI_WriteInt(\"Lock\", CarInfo[proplev][cLock]); INI_WriteString(\"Rendszam\", CarInfo[proplev][cRendszam]); INI_WriteInt(\"RendszamVane\", CarInfo[proplev][cRendszamVane]); INI_WriteInt(\"Kerek\", CarInfo[proplev][cKerek]); INI_WriteInt(\"Paintjob\", CarInfo[proplev][cPaintjob]); INI_WriteInt(\"Kinezet1\", CarInfo[proplev][cKinezet1]); INI_WriteInt(\"Kinezet2\", CarInfo[proplev][cKinezet2]); INI_WriteInt(\"Kinezet3\", CarInfo[proplev][cKinezet3]); INI_WriteInt(\"Kinezet4\", CarInfo[proplev][cKinezet4]); INI_WriteInt(\"Kinezet5\", CarInfo[proplev][cKinezet5]); INI_WriteInt(\"Kinezet6\", CarInfo[proplev][cKinezet6]); INI_WriteInt(\"Kinezet7\", CarInfo[proplev][cKinezet7]); INI_WriteInt(\"Kinezet8\", CarInfo[proplev][cKinezet8]); INI_WriteInt(\"Kinezet9\", CarInfo[proplev][cKinezet9]); INI_WriteInt(\"Kinezet10\", CarInfo[proplev][cKinezet10]); INI_WriteInt(\"Nitro\", CarInfo[proplev][cNitro]); INI_WriteInt(\"Hidraulika\", CarInfo[proplev][cHidraulika]); INI_WriteInt(\"Van\", CarInfo[proplev][cVan]); INI_Save(); INI_Close(); } SaveCarCoords(); DestroyVehicle(proplev); CreateVehicle(467,-803.2530,1523.0657,27.3170,CarInfo[proplev][cAngle],CarInfo[proplev][cColorOne],CarInfo[proplev][cColorTwo],-1); return 1; } else SendClientMessage(playerid,-1,\"Nincs elég pénzed erre a kocsira.\"); } } }