SHARE
TWEET

Untitled

a guest Aug 12th, 2017 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <a_samp>
  2. #include <bfx_oStream>
  3.  
  4. #define Dialog_Carinfo 100
  5. #define Dialog_Carpreis 101
  6.  
  7. enum Heliverkaufinfo
  8. {
  9.     Autoname,
  10.     Float:id,
  11.     Float:Standortx,
  12.     Float:Standorty,
  13.     Float:Standortz,
  14.     Float:Preis
  15. }
  16.  
  17.  
  18. new CarsHeliverkauf[4][Heliverkaufinfo] = {
  19. {"Leviathan",417,1905.65893555,-2629.14648438,13.67187214,35000000},//350k
  20. {"Sparrow",469,1905.65893555,-2629.14648438,13.67187214,20000000},//200k
  21. {"Maverick",487,1905.65893555,-2629.14648438,13.67187214,45000000},//450k
  22. {"Raindance",563,1905.65893555,-2629.14648438,13.67187214,30000000}//300k
  23. };
  24.  
  25. enum Gebrauchtwageninfo
  26. {
  27.     Autoname,
  28.     Float:id,
  29.     Float:Standortx,
  30.     Float:Standorty,
  31.     Float:Standortz,
  32.     Float:Preis
  33. }
  34.  
  35. new CarsGebrauchtwagen[22][Gebrauchtwageninfo] = {
  36. {"Yosemite",554,828.88427734,-1207.45483398,17.17156219,2000000},//20k
  37. {"Fortune",526,864.47918701,-1256.97387695,14.66556072,2000000},//20k
  38. {"Feltzer",533,865.05364990,-1250.95227051,14.72100353,2000000},//20k
  39. {"Tampa",549,865.07122803,-1245.62182617,14.78321075,2000000},//20k
  40. {"Sabre",475,867.20214844,-1238.78515625,14.86438370,2000000},//20k
  41. {"Clover",542,865.95648193,-1262.36120605,14.56779194,2000000},//20k
  42. {"Manana",410,834.42846680,-1206.30041504,16.72655487,2000000},//20k
  43. {"Elegant",507,839.85656738,-1207.59533691,16.92656326,2000000},//20k
  44. {"Sunrise",550,859.07659912,-1206.98791504,16.89934349,2000000},//20k
  45. {"Merit",551,864.71112061,-1206.98876953,16.85656166,2000000},//20k
  46. {"Emperor",585,869.71466064,-1206.66906738,16.67348862,2000000},//20k
  47. {"Landstalker",400,893.46575928,-1207.11010742,17.11267281,2000000},//20k
  48. {"Perrenial",404,898.79620361,-1206.47595215,16.80656242,2000000},//20k
  49. {"Solair",458,903.46459961,-1206.46179199,16.94677162,2000000},//20k
  50. {"Regina",479,908.37274170,-1207.21777344,16.88114357,2000000},//20k
  51. {"Rancher",489,852.04724121,-1227.15844727,16.09794998,2000000},//20k
  52. {"Mesa",500,845.94946289,-1228.01550293,15.80280399,2000000},//20k
  53. {"Huntley",579,840.60205078,-1226.86120605,15.80479717,2000000},//20k
  54. {"Club",589,835.08807373,-1227.81738281,15.16796207,2000000},//20k
  55. {"Moonbeam",418,828.51196289,-1226.83728027,15.75685406,2000000},//20k
  56. {"Camper",483,823.06713867,-1218.85546875,16.95803261,2000000},//20k
  57. {"Faggio",462,825.00885010,-1214.00427246,16.64678192,2000000}//20k
  58. };
  59.  
  60. enum Sportcarinfo
  61. {
  62.     Autoname,
  63.     Float:id,
  64.     Float:Standortx,
  65.     Float:Standorty,
  66.     Float:Standortz,
  67.     Float:Preis
  68. }
  69.  
  70.  
  71. new CarsSportcar[12][Sportcarinfo] = {
  72. {"Infernus",411,-1657.53869629,1214.98132324,20.95624924,20000000},//200k
  73. {"Cheetah",415,-1664.65734863,1223.63574219,21.00577164,20000000},//200k
  74. {"Turismo",451,-1677.78063965,1208.75659180,20.91303444,20000000},//200k
  75. {"Banshee",429,-1649.64685059,1206.19421387,20.89866257,20000000},//200k
  76. {"Bullet",541,-1663.72277832,1205.23742676,20.85625076,20000000},//200k
  77. {"ZR-350",477,-1650.31372070,1209.07983398,13.52187538,20000000},//200k
  78. {"Comet",480,-1679.33496094,1209.81542969,13.52187538,20000000},//200k
  79. {"Super GT",506,-1664.81579590,1222.58044434,13.47020245,20000000},//200k
  80. {"Phoenix",603,-1656.42077637,1215.81494141,13.67455006,20000000},//200k
  81. {"Buffalo",402,-1668.07080078,1206.88171387,7.19464493,20000000},//200k
  82. {"Alpha",602,-1661.62353516,1216.16345215,7.15000010,20000000},//200k
  83. {"Euros",587,-1653.45324707,1213.70129395,7.05999994,20000000}//200k
  84. };
  85.  
  86. enum Tunecarsinfo
  87. {
  88.     Autoname,
  89.     Float:id,
  90.     Float:Standortx,
  91.     Float:Standorty,
  92.     Float:Standortz,
  93.     Float:Preis
  94. }
  95.  
  96. new CarsTunecars[10][Tunecarsinfo] = {
  97. {"Uranus",558,-2580.84619141,608.01556396,14.45661068,6000000},//60k
  98. {"Jester",559,-2548.42504883,613.90679932,14.50688267,6000000},//60k
  99. {"Sultan",560,-2559.00000000,612.07476807,14.55779457,6000000},//60k
  100. {"Elegy",562,-2588.61425781,602.34863281,14.51154423,6000000},//60k
  101. {"Flash",565,-2547.74658203,602.48773193,14.44474983,6000000},//60k
  102. {"Slamvan",535,-2583.73168945,607.45513916,20.17115021,6000000},//60k
  103. {"Savanna",567,-2545.80126953,609.30230713,20.30949211,6000000},//60k
  104. {"Remington",534,-2551.41552734,610.20654297,20.15402794,6000000},//60k
  105. {"Broadway",575,-2559.04345703,610.19042969,20.07114983,6000000},//60k
  106. {"Stratum",561,-2565.66308594,600.44738770,14.68199444,6000000}//60k
  107. };
  108.  
  109. enum Flugzeugverkaufinfo
  110. {
  111.     Autoname,
  112.     Float:id,
  113.     Float:Standortx,
  114.     Float:Standorty,
  115.     Float:Standortz,
  116.     Float:Preis
  117. }
  118.  
  119. new CarsFlugzeugverkauf[3][Flugzeugverkaufinfo] = {
  120. {"Beagle",511,-1451.08386230,-536.96307373,15.68777275,40000000},//400k
  121. {"Shamal",519,-1360.78930664,-496.45776367,15.17194748,40000000},//400k
  122. {"Dodo",593,-1427.59094238,-517.15344238,14.72205734,40000000}//400k
  123. };
  124.  
  125. enum Bootverkaufinfo
  126. {
  127.     Autoname,
  128.     Float:id,
  129.     Float:Standortx,
  130.     Float:Standorty,
  131.     Float:Standortz,
  132.     Float:Preis
  133. }
  134.  
  135.  
  136. new CarsBootverkauf[7][Bootverkaufinfo] = {
  137. {"Squalo",446,-2205.95800781,2421.42163086,0.00000000,10000000},//100k
  138. {"Speeder",452,-2234.58642578,2449.88378906,0.00000000,10000000},//100k
  139. {"Reefer",453,-2224.67553711,2400.57885742,0.00000000,10000000},//100k
  140. {"Tropic",454,-2251.95874023,2429.57470703,0.00000000,10000000},//100k
  141. {"Dinghy",473,-2232.73852539,2393.05468750,0.00000000,10000000},//100k
  142. {"Marquis",484,-2213.01318359,2411.22998047,0.00000000,10000000},//100k
  143. {"Jetmax",493,-2242.49707031,2442.58007812,0.00000000,10000000}//100k
  144. };
  145.  
  146. public OnGameModeInit()
  147. {
  148.     //bootverkauf
  149.     b_CreateObject(3940,-2246.27246094,2462.74365234,7.14353561,0.00000000,0.00000000,314.91992188);
  150.     b_CreateObject(3941,-2204.84497070,2392.54394531,7.14200211,0.00000000,0.00000000,134.70001221);
  151.     b_CreateObject(3939,-2216.60937500,2381.11010742,5.73363209,0.00000000,0.00000000,134.59875488);
  152.     //heliverkauf
  153.     b_CreateObject(3934,1905.70739746,-2629.29418945,12.54687500,0.00000000,0.00000000,270.52032471);
  154.     b_CreateObject(3934,1873.66931152,-2629.29418945,12.54687500,0.00000000,0.00000000,270.51635742);
  155.     b_CreateObject(3934,1838.55883789,-2629.29418945,12.54687500,0.00000000,0.00000000,270.51635742);
  156.     b_CreateObject(3934,1807.09240723,-2629.29418945,12.54687500,0.00000000,0.00000000,270.51635742);
  157.     //tunecars
  158.     b_CreateObject(11317,-2567.34399414,615.24267578,24.55750656,0.00000000,0.00000000,88.72958374);
  159.     b_CreateObject(7891,-2560.51611328,615.93402100,21.60268021,0.00000000,0.00000000,268.67443848);
  160.     b_CreateObject(7891,-2553.28247070,615.76617432,21.60901260,0.00000000,0.00000000,268.67065430);
  161.     b_CreateObject(7891,-2546.06640625,615.59692383,21.60268021,0.00000000,0.00000000,268.67065430);
  162.     b_CreateObject(7891,-2538.83959961,615.42303467,21.60268021,0.00000000,0.00000000,268.67065430);
  163.     b_CreateObject(7891,-2539.51879883,611.88629150,21.60268021,0.00000000,0.00000000,0.00000000);
  164.     b_CreateObject(3851,-2589.78979492,597.59094238,21.33115196,0.00000000,0.00000000,88.96179199);
  165.     b_CreateObject(3851,-2571.99218750,597.27368164,21.33115196,0.00000000,0.00000000,88.96179199);
  166.     b_CreateObject(3851,-2572.00195312,597.31756592,15.75281906,0.00000000,0.00000000,88.96179199);
  167.     b_CreateObject(3851,-2558.86425781,597.02697754,15.75281906,0.00000000,0.00000000,88.96179199);
  168.     b_CreateObject(3851,-2558.82055664,597.01458740,21.33115196,0.00000000,0.00000000,88.96179199);
  169.     b_CreateObject(3851,-2545.70654297,596.80767822,15.75799465,0.00000000,0.00000000,88.96179199);
  170.     b_CreateObject(3851,-2545.70532227,596.69586182,21.33115196,0.00000000,0.00000000,88.96179199);
  171.     b_CreateObject(3850,-2541.68725586,602.24725342,19.87705994,0.00000000,0.00000000,268.73242188);
  172.     b_CreateObject(3850,-2545.16430664,602.32702637,19.87705994,0.00000000,0.00000000,268.73107910);
  173.     b_CreateObject(3850,-2548.63232422,602.40203857,19.87705994,0.00000000,0.00000000,268.73107910);
  174.     b_CreateObject(3850,-2552.10253906,602.48303223,19.87705994,0.00000000,0.00000000,268.73107910);
  175.     b_CreateObject(3850,-2555.58056641,602.56494141,19.87705994,0.00000000,0.00000000,268.73107910);
  176.     b_CreateObject(3850,-2559.07031250,602.64184570,19.87705994,0.00000000,0.00000000,268.73107910);
  177.     b_CreateObject(3850,-2562.55151367,602.72784424,19.87705994,0.00000000,0.00000000,268.73107910);
  178.     b_CreateObject(3850,-2566.03442383,602.79736328,19.87705994,0.00000000,0.00000000,268.73107910);
  179.     b_CreateObject(3850,-2569.52148438,602.87481689,19.87705994,0.00000000,0.00000000,268.73107910);
  180.     b_CreateObject(3850,-2572.99047852,602.95593262,19.87705994,0.00000000,0.00000000,268.73107910);
  181.     b_CreateObject(3850,-2576.47656250,603.03125000,19.87705994,0.00000000,0.00000000,268.73107910);
  182.     b_CreateObject(3850,-2579.97290039,603.09265137,19.87705994,0.00000000,0.00000000,268.73107910);
  183.     b_CreateObject(3850,-2583.45288086,603.17883301,19.87705994,0.00000000,0.00000000,268.73107910);
  184.     b_CreateObject(3850,-2586.95043945,603.24090576,19.87705994,0.00000000,0.00000000,268.73107910);
  185.     b_CreateObject(3850,-2590.43627930,603.31555176,19.87705994,0.00000000,0.00000000,268.73107910);
  186.     b_CreateObject(3850,-2593.91918945,603.39654541,19.87705994,0.00000000,0.00000000,268.73107910);
  187.     b_CreateObject(3850,-2572.32641602,609.09838867,19.87705994,0.00000000,0.00000000,268.73107910);
  188.     b_CreateObject(3850,-2568.86035156,609.02185059,19.87685394,0.00000000,0.00000000,268.73107910);
  189.     b_CreateObject(3850,-2565.39697266,608.94500732,19.87685394,0.00000000,0.00000000,268.73107910);
  190.     b_CreateObject(3850,-2574.07470703,610.87322998,19.87705994,0.00000000,0.00000000,180.75140381);
  191.     b_CreateObject(3851,-2589.78686523,597.71459961,15.75281906,0.00000000,0.00000000,88.96179199);
  192.    
  193.    
  194.     /*for(new i = 0; i < sizeof CarsHeliverkauf; i++)
  195.     {
  196.         new Helitext[150];
  197.         new ostr[300];
  198.         format(ostr,sizeof(ostr),"%s\nPreis:%d",CarsHeliverkauf[i][Autoname],CarsHeliverkauf[i][Preis]);
  199.         Helitext[i] = Create3DTextLabel(ostr,0xBBBBBBFF,CarsHeliverkauf[i][Standortx],CarsHeliverkauf[i][Standorty],CarsHeliverkauf[i][Standortz]+0.75,30.0,0,0);
  200.     }
  201.     for(new i = 0; i < sizeof CarsGebrauchtwagen; i++)
  202.     {
  203.         new Gebrauchttext[150];
  204.         new ostr[300];
  205.         format(ostr,sizeof(ostr),"%s\nPreis:%d",CarsGebrauchtwagen[i][Autoname],CarsGebrauchtwagen[i][Preis]);
  206.         Gebrauchttext[i] = Create3DTextLabel(ostr,0xBBBBBBFF,CarsGebrauchtwagen[i][Standortx],CarsGebrauchtwagen[i][Standorty],CarsGebrauchtwagen[i][Standortz]+0.75,30.0,0,0);
  207.     }
  208.     for(new i = 0; i < sizeof CarsSportcar; i++)
  209.     {
  210.         new Sporttext[150];
  211.         new ostr[300];
  212.         format(ostr,sizeof(ostr),"%s\nPreis:%d",CarsSportcar[i][Autoname],CarsSportcar[i][Preis]);
  213.         Sporttext[i] = Create3DTextLabel(ostr,0xBBBBBBFF,CarsSportcar[i][Standortx],CarsSportcar[i][Standorty],CarsSportcar[i][Standortz]+0.75,30.0,0,0);
  214.     }
  215.     for(new i = 0; i < sizeof CarsTunecars; i++)
  216.     {
  217.         new Tunetext[150];
  218.         new ostr[300];
  219.         format(ostr,sizeof(ostr),"%s\nPreis:%d",CarsTunecars[i][Autoname],CarsTunecars[i][Preis]);
  220.         Tunetext[i] = Create3DTextLabel(ostr,0xBBBBBBFF,CarsTunecars[i][Standortx],CarsTunecars[i][Standorty],CarsTunecars[i][Standortz]+0.75,30.0,0,0);
  221.     }
  222.     for(new i = 0; i < sizeof CarsFlugzeugverkauf; i++)
  223.     {
  224.         new Flugtext[150];
  225.         new ostr[300];
  226.         format(ostr,sizeof(ostr),"%s\nPreis:%d",CarsFlugzeugverkauf[i][Autoname],CarsFlugzeugverkauf[i][Preis]);
  227.         Flugtext[i] = Create3DTextLabel(ostr,0xBBBBBBFF,CarsFlugzeugverkauf[i][Standortx],CarsFlugzeugverkauf[i][Standorty],CarsFlugzeugverkauf[i][Standortz]+0.75,30.0,0,0);
  228.     }
  229.     for(new i = 0; i < sizeof CarsBootverkauf; i++)
  230.     {
  231.         new Boottext[150];
  232.         new ostr[300];
  233.         format(ostr,sizeof(ostr),"%s\nPreis:%d",CarsBootverkauf[i][Autoname],CarsBootverkauf[i][Preis]);
  234.         Boottext[i] = Create3DTextLabel(ostr,0xBBBBBBFF,CarsBootverkauf[i][Standortx],CarsBootverkauf[i][Standorty],CarsBootverkauf[i][Standortz]+0.75,30.0,0,0);
  235.     }*/
  236.     return 1;
  237. }
  238.  
  239. /*public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  240. {
  241.     for(new i = 0; i < sizeof CarsHeliverkauf; i++)
  242.     {
  243.         ShowPlayerDialog(playerid,Dialog_Carinfo,DIALOG_STYLE_INPUT,"Autokauf","Info\nKaufen\nTestfahrt");
  244.     }
  245.     for(new i = 0; i < sizeof CarsGebrauchtwagen; i++)
  246.     {
  247.         ShowPlayerDialog(playerid,Dialog_Carinfo,DIALOG_STYLE_INPUT,"Autokauf","Info\nKaufen\nTestfahrt");
  248.     }
  249.     for(new i = 0; i < sizeof CarsSportcar; i++)
  250.     {
  251.         ShowPlayerDialog(playerid,Dialog_Carinfo,DIALOG_STYLE_INPUT,"Autokauf","Info\nKaufen\nTestfahrt");
  252.     }
  253.     for(new i = 0; i < sizeof CarsTunecars; i++)
  254.     {
  255.         ShowPlayerDialog(playerid,Dialog_Carinfo,DIALOG_STYLE_INPUT,"Autokauf","Info\nKaufen\nTestfahrt");
  256.     }
  257.     for(new i = 0; i < sizeof CarsFlugzeugverkauf; i++)
  258.     {
  259.         ShowPlayerDialog(playerid,Dialog_Carinfo,DIALOG_STYLE_INPUT,"Autokauf","Info\nKaufen\nTestfahrt");
  260.     }
  261.     for(new i = 0; i < sizeof CarsBootverkauf; i++)
  262.     {
  263.         ShowPlayerDialog(playerid,Dialog_Carinfo,DIALOG_STYLE_INPUT,"Autokauf","Info\nKaufen\nTestfahrt");
  264.     }
  265.     return 1;
  266. }*/
  267.  
  268. /*public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  269. {
  270.     if(dialogid == Dialog_Carinfo)
  271.     {
  272.         if(response)
  273.         {
  274.             if(listitem == 0)   //Info
  275.             {
  276.                 for(new i = 0; i < sizeof CarsHeliverkauf; i++)
  277.                 {
  278.                     new str[255];
  279.                     new sauto[255];
  280.                     sauto = CarsHeliverkauf[i][Autoname];
  281.                     new spreis[255];
  282.                     spreis = CarsHeliverkauf[i][Preis]/10;
  283.                     new skfzkosten[255];
  284.                     skfzkosten = CarsHeliverkauf[i][Preis]/10000;
  285.                     new stotalschaden[255];
  286.                     stotalschaden = CarsHeliverkauf[i][Preis]/1000;
  287.                     format(str,sizeof(str),"Auto:%s\nPreis:%d\nKFZ-Kosten:%d\nTotalschaden:%d",sauto,spreis,skfzkosten,stotalschaden);
  288.                     ShowPlayerDialog(playerid,Dialog_Carpreis,DIALOG_STYLE_MSGBOX,"Info",str,"Zurück","");
  289.                 }
  290.                 for(new i = 0; i < sizeof CarsGebrauchtwagen; i++)
  291.                 {
  292.                     new str[255];
  293.                     new sauto[255];
  294.                     sauto = CarsGebrauchtwagen[i][Autoname];
  295.                     new spreis[255];
  296.                     spreis = CarsGebrauchtwagen[i][Preis]/10;
  297.                     new skfzkosten[255];
  298.                     skfzkosten = CarsGebrauchtwagen[i][Preis]/10000;
  299.                     new stotalschaden[255];
  300.                     stotalschaden = CarsGebrauchtwagen[i][Preis]/1000;
  301.                     format(str,sizeof(str),"Auto:%s\nPreis:%d\nKFZ-Kosten:%d\nTotalschaden:%d",sauto,spreis,skfzkosten,stotalschaden);
  302.                     ShowPlayerDialog(playerid,Dialog_Carpreis,DIALOG_STYLE_MSGBOX,"Info",str,"Zurück","");
  303.                 }
  304.                 for(new i = 0; i < sizeof CarsHeliverkauf; i++)
  305.                 {
  306.                     new str[255];
  307.                     new sauto[255];
  308.                     sauto = CarsHeliverkauf[i][Autoname];
  309.                     new spreis[255];
  310.                     spreis = CarsHeliverkauf[i][Preis]/10;
  311.                     new skfzkosten[255];
  312.                     skfzkosten = CarsHeliverkauf[i][Preis]/10000;
  313.                     new stotalschaden[255];
  314.                     stotalschaden = CarsHeliverkauf[i][Preis]/1000;
  315.                     format(str,sizeof(str),"Auto:%s\nPreis:%d\nKFZ-Kosten:%d\nTotalschaden:%d",sauto,spreis,skfzkosten,stotalschaden);
  316.                     ShowPlayerDialog(playerid,Dialog_Carpreis,DIALOG_STYLE_MSGBOX,"Info",str,"Zurück","");
  317.                 }
  318.                 for(new i = 0; i < sizeof CarsSportcar; i++)
  319.                 {
  320.                     new str[255];
  321.                     new sauto[255];
  322.                     sauto = CarsSportcar[i][Autoname];
  323.                     new spreis[255];
  324.                     spreis = CarsSportcar[i][Preis]/10;
  325.                     new skfzkosten[255];
  326.                     skfzkosten = CarsSportcar[i][Preis]/10000;
  327.                     new stotalschaden[255];
  328.                     stotalschaden = CarsSportcar[i][Preis]/1000;
  329.                     format(str,sizeof(str),"Auto:%s\nPreis:%d\nKFZ-Kosten:%d\nTotalschaden:%d",sauto,spreis,skfzkosten,stotalschaden);
  330.                     ShowPlayerDialog(playerid,Dialog_Carpreis,DIALOG_STYLE_MSGBOX,"Info",str,"Zurück","");
  331.                 }
  332.                 for(new i = 0; i < sizeof CarsTunecars; i++)
  333.                 {
  334.                     new str[255];
  335.                     new sauto[255];
  336.                     sauto = CarsTunecars[i][Autoname];
  337.                     new spreis[255];
  338.                     spreis = CarsTunecars[i][Preis]/10;
  339.                     new skfzkosten[255];
  340.                     skfzkosten = CarsTunecars[i][Preis]/10000;
  341.                     new stotalschaden[255];
  342.                     stotalschaden = CarsTunecars[i][Preis]/1000;
  343.                     format(str,sizeof(str),"Auto:%s\nPreis:%d\nKFZ-Kosten:%d\nTotalschaden:%d",sauto,spreis,skfzkosten,stotalschaden);
  344.                     ShowPlayerDialog(playerid,Dialog_Carpreis,DIALOG_STYLE_MSGBOX,"Info",str,"Zurück","");
  345.                 }
  346.                 for(new i = 0; i < sizeof CarsFlugzeugverkauf; i++)
  347.                 {
  348.                     new str[255];
  349.                     new sauto[255];
  350.                     sauto = CarsFlugzeugverkauf[i][Autoname];
  351.                     new spreis[255];
  352.                     spreis = CarsFlugzeugverkauf[i][Preis]/10;
  353.                     new skfzkosten[255];
  354.                     skfzkosten = CarsFlugzeugverkauf[i][Preis]/10000;
  355.                     new stotalschaden[255];
  356.                     stotalschaden = CarsFlugzeugverkauf[i][Preis]/1000;
  357.                     format(str,sizeof(str),"Auto:%s\nPreis:%d\nKFZ-Kosten:%d\nTotalschaden:%d",sauto,spreis,skfzkosten,stotalschaden);
  358.                     ShowPlayerDialog(playerid,Dialog_Carpreis,DIALOG_STYLE_MSGBOX,"Info",str,"Zurück","");
  359.                 }
  360.                 for(new i = 0; i < sizeof CarsBootverkauf; i++)
  361.                 {
  362.                     new str[255];
  363.                     new sauto[255];
  364.                     sauto = CarsBootverkauf[i][Autoname];
  365.                     new spreis[255];
  366.                     spreis = CarsBootverkauf[i][Preis]/10;
  367.                     new skfzkosten[255];
  368.                     skfzkosten = CarsBootverkauf[i][Preis]/10000;
  369.                     new stotalschaden[255];
  370.                     stotalschaden = CarsBootverkauf[i][Preis]/1000;
  371.                     format(str,sizeof(str),"Auto:%s\nPreis:%d\nKFZ-Kosten:%d\nTotalschaden:%d",sauto,spreis,skfzkosten,stotalschaden);
  372.                     ShowPlayerDialog(playerid,Dialog_Carpreis,DIALOG_STYLE_MSGBOX,"Info",str,"Zurück","");
  373.                 }
  374.             }
  375.             if(listitem == 1)   //Kaufen
  376.             {
  377.                
  378.             }
  379.             if(listitem == 2)   //Testfahrt
  380.             {
  381.  
  382.             }
  383.         }
  384.     }
  385.     if(dialogid == Dialog_Carpreis)
  386.     {
  387.         if(response == 0)
  388.         {
  389.         }
  390.         if(response == 1)
  391.         {
  392.             for(new i = 0; i < sizeof CarsHeliverkauf; i++)
  393.             {
  394.                 ShowPlayerDialog(playerid,Dialog_Carinfo,DIALOG_STYLE_INPUT,"Autokauf",Info\nKaufen\nTestfahrt");
  395.             }
  396.             for(new i = 0; i < sizeof CarsGebrauchtwagen; i++)
  397.             {
  398.                 ShowPlayerDialog(playerid,Dialog_Carinfo,DIALOG_STYLE_INPUT,"Autokauf",Info\nKaufen\nTestfahrt");
  399.             }
  400.             for(new i = 0; i < sizeof CarsSportcar; i++)
  401.             {
  402.                 ShowPlayerDialog(playerid,Dialog_Carinfo,DIALOG_STYLE_INPUT,"Autokauf",Info\nKaufen\nTestfahrt");
  403.             }
  404.             for(new i = 0; i < sizeof CarsTunecars; i++)
  405.             {
  406.                 ShowPlayerDialog(playerid,Dialog_Carinfo,DIALOG_STYLE_INPUT,"Autokauf",Info\nKaufen\nTestfahrt");
  407.             }
  408.             for(new i = 0; i < sizeof CarsFlugzeugverkauf; i++)
  409.             {
  410.                 ShowPlayerDialog(playerid,Dialog_Carinfo,DIALOG_STYLE_INPUT,"Autokauf",Info\nKaufen\nTestfahrt");
  411.             }
  412.             for(new i = 0; i < sizeof CarsBootverkauf; i++)
  413.             {
  414.                 ShowPlayerDialog(playerid,Dialog_Carinfo,DIALOG_STYLE_INPUT,"Autokauf",Info\nKaufen\nTestfahrt");
  415.             }
  416.         }
  417.     }
  418.     return 1;
  419. }*/
RAW Paste Data
Top