Wo ist der Download ? suche das Controll panel
Beiträge von Sunniboy
-
-
Hey, ich nutze ein GF Script dort ist das DTC Cars Autohaus drin nun das Autohaus ist halt Standart 08/15 mit dieser Live Ansicht dieses möchte ich Ändern es sollte Fahrzeuge am autohaus stehen wo man dann einfach /buycar machen kann aber wie Stelle ich das an ? bin in Scripten noch nicht ganz so weit
Code
Alles anzeigen// Brainfuck Quellcode if(newkeys == KEY_FIRE) { if(PlayerInfo[playerid][pJailed] == 1) { knastdm[playerid]++; TogglePlayerControllable(playerid,0); SendClientMessage(playerid, COLOR_RED, "Knast Deathmatch ist verboten!"); SetTimerEx("UnfreezePlayer",7000,0,"d",playerid); } } if(newkeys == 16 && InCargo[playerid]) { new Float:X, Float:Y, Float:Z; GetVehiclePos(InCargo[playerid], X, Y, Z); SetPlayerPos(playerid, X+4, Y, Z); SetPlayerInterior(playerid, 0); InCargo[playerid] = 0; } if(newkeys == 16 && InLevi[playerid]) { new Float:X, Float:Y, Float:Z; GetVehiclePos(InLevi[playerid], X, Y, Z); SetPlayerPos(playerid, X+4, Y, Z); SetPlayerInterior(playerid, 0); InLevi[playerid] = 0; } if(newkeys == 16 && InEnfo[playerid]) { new Float:X, Float:Y, Float:Z; GetVehiclePos(InEnfo[playerid], X, Y, Z); SetPlayerPos(playerid, X+4, Y, Z); SetPlayerInterior(playerid, 0); InEnfo[playerid] = 0; } if(dtc_AutohausCat[playerid] != 2000) { new autohaus = dtc_AutohausCat[playerid]; new AhCars; for(new ah = 0; ah < sizeof(dtcKaufliste);ah++) { if(dtcKaufliste[ah][dtc_Autohaus] == autohaus) { AhCars ++; } } if(newkeys == KEY_ANALOG_RIGHT || newkeys == KEY_LOOK_RIGHT || newkeys == KEY_FIRE) //right (4 Numpad/e) { new carid = dtc_AutohausCar[playerid] +1; if(carid >= AhCars) { carid = 0; } new car,preis,counter; for(new ah = 0; ah < sizeof(dtcKaufliste);ah++) { if(dtcKaufliste[ah][dtc_Autohaus] == autohaus) { if( counter == carid) { car = dtcKaufliste[ah][dtc_CarModel]; preis = dtcKaufliste[ah][dtc_CarPreis]; } counter ++; } } new c1 = random(120); new c2 = random(120); DestroyVehicle(dtc_AutohausSCar[playerid]); dtc_AutohausSCar[playerid] = CreateVehicle(car, DtcSonstiges[autohaus][1][0],DtcSonstiges[autohaus][1][1],DtcSonstiges[autohaus][1][2],DtcSonstiges[autohaus][1][3],c1,c2,-1); SetVehicleVirtualWorld(dtc_AutohausSCar[playerid],55+playerid); new string[246]; TextDrawHideForPlayer(playerid,CarKauf[playerid]); TextDrawDestroy(CarKauf[playerid]); format(string,sizeof(string),"~r~---------- AUTOHAUS ----------~n~~g~Fahrzeug: ~w~%s~n~~g~Preis: ~w~$%d~n~~b~Auswählen:~n~~w~ <Num 4<~b~&~w~>Num 6> ~n~~b~Kaufen:~w~ Enter ~n~~b~Abbrechen:~w~ Tab",CarName[car-400],preis); CarKauf[playerid] = TextDrawCreate(200,310,string); TextDrawAlignment(CarKauf[playerid],1); TextDrawUseBox(CarKauf[playerid],1); TextDrawBoxColor(CarKauf[playerid],0x000000FF); TextDrawBackgroundColor(CarKauf[playerid],COLOR_BLACK); TextDrawSetOutline(CarKauf[playerid],1); TextDrawFont(CarKauf[playerid], 2); //TextDrawSetProportional(CarKauf[playerid], 2); TextDrawTextSize(CarKauf[playerid],450,410); TextDrawShowForPlayer(playerid,CarKauf[playerid]); dtc_AutohausCar[playerid] = carid; } if(newkeys == KEY_ANALOG_LEFT || newkeys == KEY_LOOK_LEFT || newkeys == KEY_JUMP) //left (6 Numpad/q) { new carid = dtc_AutohausCar[playerid] -1; if(carid < 0) { carid = AhCars; } new car,preis,counter; for(new ah = 0; ah < sizeof(dtcKaufliste);ah++) { if(dtcKaufliste[ah][dtc_Autohaus] == autohaus) { if( counter == carid) { car = dtcKaufliste[ah][dtc_CarModel]; preis = dtcKaufliste[ah][dtc_CarPreis]; } counter ++; } } new c1 = random(120); new c2 = random(120); DestroyVehicle(dtc_AutohausSCar[playerid]); dtc_AutohausSCar[playerid] = CreateVehicle(car, DtcSonstiges[autohaus][1][0],DtcSonstiges[autohaus][1][1],DtcSonstiges[autohaus][1][2],DtcSonstiges[autohaus][1][3],c1,c2,-1); SetVehicleVirtualWorld(dtc_AutohausSCar[playerid],55+playerid); new string[246]; TextDrawHideForPlayer(playerid,CarKauf[playerid]); TextDrawDestroy(CarKauf[playerid]); format(string,sizeof(string),"~r~---------- AUTOHAUS ----------~n~~g~Fahrzeug: ~w~%s~n~~g~Preis: ~w~$%d~n~~b~Auswählen:~n~~w~ <Num 4<~b~&~w~>Num 6> ~n~~b~Kaufen:~w~ Enter ~n~~b~Abbrechen:~w~ Tab",CarName[car-400],preis); CarKauf[playerid] = TextDrawCreate(200,310,string); TextDrawAlignment(CarKauf[playerid],1); TextDrawUseBox(CarKauf[playerid],1); TextDrawBoxColor(CarKauf[playerid],0x000000FF); TextDrawSetOutline(CarKauf[playerid],1); TextDrawBackgroundColor(CarKauf[playerid],COLOR_BLACK); TextDrawFont(CarKauf[playerid], 2); //TextDrawSetProportional(CarKauf[playerid], 2); TextDrawTextSize(CarKauf[playerid],450,410); TextDrawShowForPlayer(playerid,CarKauf[playerid]); dtc_AutohausCar[playerid] = carid; } if(newkeys == 16)//Enter { new carid = dtc_AutohausCar[playerid]; new car,preis,counter; for(new ah = 0; ah < sizeof(dtcKaufliste);ah++) { if(dtcKaufliste[ah][dtc_Autohaus] == autohaus) { if( counter == carid) { car = dtcKaufliste[ah][dtc_CarModel]; preis = dtcKaufliste[ah][dtc_CarPreis]; } counter ++; } } if(GetPlayerMoney(playerid) < preis) { SendClientMessage(playerid,COLOR_GREY,"Du hast nicht genug Geld um dieses Fahrzeug zu kaufen!"); return 1; } DestroyVehicle(dtc_AutohausSCar[playerid]); SetPlayerPos(playerid, DtcSonstiges[autohaus][4][0],DtcSonstiges[autohaus][4][1],DtcSonstiges[autohaus][4][2]); SetPlayerFacingAngle(playerid,DtcSonstiges[autohaus][4][3]); dtc_AutohausCar[playerid] = 0; dtc_AutohausCat[playerid] = 2000; SetPlayerVirtualWorld(playerid,0); TextDrawHideForPlayer(playerid,CarKauf[playerid]); TextDrawDestroy(CarKauf[playerid]); TogglePlayerControllable(playerid,1); SetCameraBehindPlayer(playerid); OnPlayerBuyCar(playerid,car,preis,autohaus); //ResetPlayer } if(newkeys == KEY_ACTION) //Tab { //ResetPlayer DestroyVehicle(dtc_AutohausSCar[playerid]); SetPlayerPos(playerid, DtcSonstiges[autohaus][4][0],DtcSonstiges[autohaus][4][1],DtcSonstiges[autohaus][4][2]); SetPlayerFacingAngle(playerid,DtcSonstiges[autohaus][4][3]); dtc_AutohausCar[playerid] = 0; dtc_AutohausCat[playerid] = 2000; SetPlayerVirtualWorld(playerid,0); TextDrawHideForPlayer(playerid,CarKauf[playerid]); TextDrawDestroy(CarKauf[playerid]); TogglePlayerControllable(playerid,1); SetCameraBehindPlayer(playerid); } } return 1; } // Brainfuck Quellcode Nr 2 Function OnPlayerBuyCar(playerid,Model,Preis,Autohaus)//CARSYS { if(IsPlayerConnected(playerid) && !Dtc_PlayerHaveCar[playerid][Dtc_PlayerKey[playerid]]) { CallRemoteFunction("M_GivePlayerMoney","id",playerid,-Preis); if(Autohaus == 0) { AddToBizzTill(0,Preis/2); } else if(Autohaus == 2) { AddToBizzTill(0,Preis); } else if(Autohaus == 3) { AddToBizzTill(0,Preis/2); } else if(Autohaus == 4) { AddToBizzTill(0,Preis/10); } SendClientMessage(playerid, COLOR_LIGHTBLUE, "*Du hast dir ein Auto gekauft."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "*Gehe zu der KFZ Stelle und hole dir ein Kennzeichen."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "*Du kannst es mit /carlock aufschliessen!"); SetParkPlatz(playerid,Autohaus); new name[MAX_PLAYER_NAME], str[128]; GetPlayerName(playerid, name, sizeof name); format(str, sizeof str, "/Autos/%s%d.dtcar", name,Dtc_PlayerKey[playerid]); new File: hFile = fopen(str, io_write); if (hFile) { new var[32]; format(var, 32, "CarId=0\n");fwrite(hFile, var); format(var, 32, "CarModel=%d\n",Model);fwrite(hFile, var); format(var, 32, "CarPos_x=%.3f\n",PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarPos_x]);fwrite(hFile, var); format(var, 32, "CarPos_y=%.3f\n",PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarPos_y]);fwrite(hFile, var); format(var, 32, "CarPos_z=%.3f\n",PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarPos_z]);fwrite(hFile, var); format(var, 32, "CarRotate=%.3f\n",PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarRotate]);fwrite(hFile, var); format(var, 32, "CarNitro=0\n");fwrite(hFile, var); format(var, 32, "CarHyd=0\n");fwrite(hFile, var); format(var, 32, "CarWheel=0\n");fwrite(hFile, var); format(var, 32, "CarAusp=0\n");fwrite(hFile, var); format(var, 32, "CarSideL=0\n");fwrite(hFile, var); format(var, 32, "CarSideR=0\n");fwrite(hFile, var); format(var, 32, "CarFB=0\n");fwrite(hFile, var); format(var, 32, "CarRB=0\n");fwrite(hFile, var); format(var, 32, "CarSpoiler=0\n");fwrite(hFile, var); format(var, 32, "CarRoof=0\n");fwrite(hFile, var); format(var, 32, "CarHood=0\n");fwrite(hFile, var); format(var, 32, "CarVents=0\n");fwrite(hFile, var); format(var, 32, "CarLamps=0\n");fwrite(hFile, var); format(var, 32, "CarPJ=-1\n");fwrite(hFile, var); format(var, 32, "CarC1=-1\n");fwrite(hFile, var); format(var, 32, "CarC2=-1\n");fwrite(hFile, var); format(var, 32, "Preis=%d\n",Preis);fwrite(hFile, var); format(var, 32, "Plate=XXX\n");fwrite(hFile, var); fclose(hFile); } OnPlayerCarLogin(playerid); } }