Advertisement
gta6287

Special Vehicles

Jun 13th, 2012
488
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 10.44 KB | None | 0 0
  1.  
  2. #include <a_samp>
  3. #include <zcmd>
  4. #define svehdialog 6548
  5.  
  6. new sobj[15],sobj1[27],sobj2[2];
  7.  
  8. #if defined FILTERSCRIPT
  9.  
  10. public OnFilterScriptInit()
  11. {
  12.     print("\n--------------------------------------");
  13.     print(" Loaded Special Vehicles by newbienoob ");
  14.     print("--------------------------------------\n");
  15.  
  16.  
  17.     return 1;
  18. }
  19.  
  20. public OnFilterScriptExit()
  21. {
  22.     return 1;
  23. }
  24.  
  25. #else
  26.  
  27.  
  28. CMD:sveh(playerid,params[])
  29. {
  30.     ShowPlayerDialog(playerid,svehdialog,DIALOG_STYLE_LIST,"{2F70D0}Special Vehicles","{00FF00}DFT-30 \n{00FF00}RoadTrain \n{00FF00}Shamal","Spawn","Cancel");
  31.     return 1;
  32. }
  33.  
  34.  
  35.  
  36. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  37. {
  38.     new Float:x,Float:y,Float:z,Float:a;
  39.     GetPlayerPos(playerid,x,y,z);
  40.     GetPlayerFacingAngle(playerid,a);
  41.     switch(dialogid)
  42.     {
  43.         case svehdialog:
  44.         {
  45.             if(response)
  46.                 {
  47.                     if(listitem == 0)
  48.                     {
  49.                         new sveh1 = CreateVehicle(578, x,y,z,a, -1, -1, -1);
  50.                         sobj[0] = CreateObject(3095, -0.06, -2.09, -0.76,   0.00, 0.00, 0.00);
  51.                         sobj[1] = CreateObject(970, 2.09, -6.50, 0.34,   0.00, 0.00, 0.00);
  52.                         sobj[2] = CreateObject(970, -4.50, 0.21, 0.34,   0.00, 0.00, 90.00);
  53.                         sobj[3] = CreateObject(970, 4.37, -2.90, 0.34,   0.00, 0.00, 90.00);
  54.                         sobj[4] = CreateObject(970, -4.50, -2.90, 0.34,   0.00, 0.00, 90.00);
  55.                         sobj[5] = CreateObject(970, 4.37, 0.21, 0.34,   0.00, 0.00, 90.00);
  56.                         sobj[6] = CreateObject(970, -2.46, 2.26, 0.34,   0.00, 0.00, 0.00);
  57.                         sobj[7] = CreateObject(970, 2.30, 2.26, 0.34,   0.00, 0.00, 0.00);
  58.                         sobj[8] = CreateObject(16151, 0.26, 1.19, 0.13,   0.00, 0.00, 90.00);
  59.                         sobj[9] = CreateObject(1281, -3.23, -3.63, 0.58,   0.00, 0.00, 0.00);
  60.                         sobj[10] = CreateObject(2639, 0.15, -6.08, 0.28,   0.00, 0.00, 0.00);
  61.                         sobj[11] = CreateObject(11665, 2.77, -3.43, 0.48,   0.00, 0.00, 0.00);
  62.                         sobj[12] = CreateObject(2010, 3.51, -6.28, -0.22,   0.00, 0.00, 0.00);
  63.                         sobj[13] = CreateObject(2010, -3.38, -6.24, -0.22,   0.00, 0.00, 0.00);
  64.                         sobj[14] = CreateObject(970, -2.37, -6.50, 0.34,   0.00, 0.00, 0.00);
  65.                         AttachObjectToVehicle(sobj[0],sveh1,-0.06, -2.09, -0.76,0,0,0);
  66.                         AttachObjectToVehicle(sobj[1],sveh1,2.09, -6.50, 0.34, 0,0,0);
  67.                         AttachObjectToVehicle(sobj[2],sveh1,-4.50, 0.21, 0.34, 0,0,90);
  68.                         AttachObjectToVehicle(sobj[3],sveh1,4.37, -2.90, 0.34,   0.00, 0.00, 90.00);
  69.                         AttachObjectToVehicle(sobj[4],sveh1,-4.50, -2.90, 0.34,   0.00, 0.00, 90.00);
  70.                         AttachObjectToVehicle(sobj[5],sveh1,4.37, 0.21, 0.34,   0.00, 0.00, 90.00);
  71.                         AttachObjectToVehicle(sobj[6],sveh1,-2.46, 2.26, 0.34,   0.00, 0.00, 0.00);
  72.                         AttachObjectToVehicle(sobj[7],sveh1,2.30, 2.26, 0.34,   0.00, 0.00, 0.00);
  73.                         AttachObjectToVehicle(sobj[8],sveh1,0.26, 1.19, 0.13,   0.00, 0.00, 90.00);
  74.                         AttachObjectToVehicle(sobj[9],sveh1,-3.23, -3.63, 0.58,   0.00, 0.00, 0.00);
  75.                         AttachObjectToVehicle(sobj[10],sveh1,0.15, -6.08, 0.28,   0.00, 0.00, 0.00);
  76.                         AttachObjectToVehicle(sobj[11],sveh1,2.77, -3.43, 0.48,   0.00, 0.00, 0.00);
  77.                         AttachObjectToVehicle(sobj[12],sveh1,3.51, -6.28, -0.22,   0.00, 0.00, 0.00);
  78.                         AttachObjectToVehicle(sobj[13],sveh1,-3.38, -6.24, -0.22,   0.00, 0.00, 0.00);
  79.                         AttachObjectToVehicle(sobj[14],sveh1,-2.37, -6.50, 0.34,   0.00, 0.00, 0.00);
  80.                         GameTextForPlayer(playerid,"~y~Special Vehicle~n~~b~DFT-300~n~~g~Spawned",3000,5);
  81.                         PutPlayerInVehicle(playerid,sveh1,0);
  82.                         return 1;
  83.                     }
  84.                     if(listitem == 1)
  85.                     {
  86.                         new sveh1 = CreateVehicle(515, x,y,z,a, -1, -1, -1);
  87.                         sobj1[0] = CreateObject(19462,0.00000000,-8.72000000,2.41000000,0.00000000,90.00000000,0.00000000);
  88.                         sobj1[1] = CreateObject(19462,-1.71000000,-8.72000000,0.66000000,0.00000000,0.00000000,0.00000000);
  89.                         sobj1[2] = CreateObject(19462,1.76000000,-8.72000000,0.66000000,0.00000000,0.00000000,0.00000000);
  90.                         sobj1[3] = CreateObject(19462,0.00000000,-8.72000000,-0.72000000,0.00000000,90.00000000,0.00000000);
  91.                         sobj1[4] = CreateObject(19443,0.65000000,-3.88000000,0.66000000,0.00000000,0.00000000,90.00000000);
  92.                         sobj1[5] = CreateObject(19443,-0.96000000,-3.88000000,0.66000000,0.00000000,0.00000000,90.00000000);
  93.                         sobj1[6] = CreateObject(19443,0.98000000,-3.88000000,0.66000000,0.00000000,0.00000000,90.00000000);
  94.                         sobj1[7] = CreateObject(19443,-1.01000000,-13.48000000,0.66000000,0.00000000,0.00000000,90.00000000);
  95.                         sobj1[8] = CreateObject(2008,-1.13000000,-4.49000000,-0.66000000,0.00000000,0.00000000,0.00000000);
  96.                         sobj1[9] = CreateObject(3392,-1.07000000,-7.80000000,-0.64000000,0.00000000,0.00000000,180.00000000);
  97.                         sobj1[10] = CreateObject(3393,-1.06000000,-11.35000000,-0.64000000,0.00000000,0.00000000,180.00000000);
  98.                         sobj1[11] = CreateObject(2700,-1.35000000,-7.27000000,1.68000000,0.00000000,0.00000000,0.00000000);
  99.                         sobj1[12] = CreateObject(2700,-1.35000000,-7.92000000,1.68000000,0.00000000,0.00000000,0.00000000);
  100.                         sobj1[13] = CreateObject(2700,-1.35000000,-8.56000000,1.68000000,0.00000000,0.00000000,0.00000000);
  101.                         sobj1[14] = CreateObject(2700,-1.35000000,-9.19000000,1.68000000,0.00000000,0.00000000,0.00000000);
  102.                         sobj1[15] = CreateObject(2700,-1.35000000,-9.81000000,1.68000000,0.00000000,0.00000000,0.00000000);
  103.                         sobj1[16] = CreateObject(2700,-1.35000000,-10.43000000,1.68000000,0.00000000,0.00000000,0.00000000);
  104.                         sobj1[17] = CreateObject(2700,-1.35000000,-11.05000000,1.68000000,0.00000000,0.00000000,0.00000000);
  105.                         sobj1[18] = CreateObject(1671,0.02000000,-7.56000000,-0.22000000,0.00000000,0.00000000,270.00000000);
  106.                         sobj1[19] = CreateObject(1671,0.01000000,-8.70000000,-0.22000000,0.00000000,0.00000000,270.00000000);
  107.                         sobj1[20] = CreateObject(1671,0.15000000,-11.00000000,-0.22000000,0.00000000,0.00000000,270.00000000);
  108.                         sobj1[21] = CreateObject(1671,0.22000000,-12.02000000,-0.22000000,0.00000000,0.00000000,270.00000000);
  109.                         sobj1[22] = CreateObject(1671,-0.13000000,-5.01000000,-0.22000000,0.00000000,0.00000000,180.00000000);
  110.                         sobj1[23] = CreateObject(1096,-1.70000000,-12.85000000,-1.54000000,0.00000000,0.00000000,180.00000000);
  111.                         sobj1[24] = CreateObject(1096,-1.42000000,-12.85000000,-1.54000000,0.00000000,0.00000000,180.00000000);
  112.                         sobj1[25] = CreateObject(1096,1.72000000,-12.85000000,-1.54000000,0.00000000,0.00000000,0.00000000);
  113.                         sobj1[26] = CreateObject(1096,1.44000000,-12.85000000,-1.54000000,0.00000000,0.00000000,0.00000000);
  114.                         AttachObjectToVehicle(sobj1[0],sveh1,0.00000000,-8.72000000,2.41000000,0.00000000,90.00000000,0.00000000);
  115.                         AttachObjectToVehicle(sobj1[1],sveh1,-1.71000000,-8.72000000,0.66000000,0.00000000,0.00000000,0.00000000);
  116.                         AttachObjectToVehicle(sobj1[2],sveh1,1.76000000,-8.72000000,0.66000000,0.00000000,0.00000000,0.00000000);
  117.                         AttachObjectToVehicle(sobj1[3],sveh1,0.00000000,-8.72000000,-0.72000000,0.00000000,90.00000000,0.00000000);
  118.                         AttachObjectToVehicle(sobj1[4],sveh1,0.65000000,-3.88000000,0.66000000,0.00000000,0.00000000,90.00000000);
  119.                         AttachObjectToVehicle(sobj1[5],sveh1,-0.96000000,-3.88000000,0.66000000,0.00000000,0.00000000,90.00000000);
  120.                         AttachObjectToVehicle(sobj1[6],sveh1,0.98000000,-3.88000000,0.66000000,0.00000000,0.00000000,90.00000000);
  121.                         AttachObjectToVehicle(sobj1[7],sveh1,-1.01000000,-13.48000000,0.66000000,0.00000000,0.00000000,90.00000000);
  122.                         AttachObjectToVehicle(sobj1[8],sveh1,-1.13000000,-4.49000000,-0.66000000,0.00000000,0.00000000,0.00000000);
  123.                         AttachObjectToVehicle(sobj1[9],sveh1,-1.07000000,-7.80000000,-0.64000000,0.00000000,0.00000000,180.00000000);
  124.                         AttachObjectToVehicle(sobj1[10],sveh1,-1.06000000,-11.35000000,-0.64000000,0.00000000,0.00000000,180.00000000);
  125.                         AttachObjectToVehicle(sobj1[11],sveh1,-1.35000000,-7.27000000,1.68000000,0.00000000,0.00000000,0.00000000);
  126.                         AttachObjectToVehicle(sobj1[12],sveh1,-1.35000000,-7.92000000,1.68000000,0.00000000,0.00000000,0.00000000);
  127.                         AttachObjectToVehicle(sobj1[13],sveh1,-1.35000000,-8.56000000,1.68000000,0.00000000,0.00000000,0.00000000);
  128.                         AttachObjectToVehicle(sobj1[14],sveh1,-1.35000000,-9.19000000,1.68000000,0.00000000,0.00000000,0.00000000);
  129.                         AttachObjectToVehicle(sobj1[15],sveh1,-1.35000000,-9.81000000,1.68000000,0.00000000,0.00000000,0.00000000);
  130.                         AttachObjectToVehicle(sobj1[16],sveh1,-1.35000000,-10.43000000,1.68000000,0.00000000,0.00000000,0.00000000);
  131.                         AttachObjectToVehicle(sobj1[17],sveh1,-1.35000000,-11.05000000,1.68000000,0.00000000,0.00000000,0.00000000);
  132.                         AttachObjectToVehicle(sobj1[18],sveh1,0.02000000,-7.56000000,-0.22000000,0.00000000,0.00000000,270.00000000);
  133.                         AttachObjectToVehicle(sobj1[19],sveh1,0.01000000,-8.70000000,-0.22000000,0.00000000,0.00000000,270.00000000);
  134.                         AttachObjectToVehicle(sobj1[20],sveh1,0.15000000,-11.00000000,-0.22000000,0.00000000,0.00000000,270.00000000);
  135.                         AttachObjectToVehicle(sobj1[21],sveh1,0.22000000,-12.02000000,-0.22000000,0.00000000,0.00000000,270.00000000);
  136.                         AttachObjectToVehicle(sobj1[22],sveh1,-0.13000000,-5.01000000,-0.22000000,0.00000000,0.00000000,180.00000000);
  137.                         AttachObjectToVehicle(sobj1[23],sveh1,-1.70000000,-12.85000000,-1.54000000,0.00000000,0.00000000,180.00000000);
  138.                         AttachObjectToVehicle(sobj1[24],sveh1,-1.42000000,-12.85000000,-1.54000000,0.00000000,0.00000000,180.00000000);
  139.                         AttachObjectToVehicle(sobj1[25],sveh1,1.72000000,-12.85000000,-1.54000000,0.00000000,0.00000000,0.00000000);
  140.                         AttachObjectToVehicle(sobj1[26],sveh1,1.44000000,-12.85000000,-1.54000000,0.00000000,0.00000000,0.00000000);
  141.                         GameTextForPlayer(playerid,"~y~Special Vehicle~n~~b~RoadTrain~n~~g~Spawned",3000,5);
  142.                         PutPlayerInVehicle(playerid,sveh1,0);
  143.                         return 1;
  144.                     }
  145.                     if(listitem == 2)
  146.                     {
  147.                         new sveh1 = CreateVehicle(519, x,y,z,a, -1, -1, -1);
  148.                         sobj2[0] = CreateObject(3095, 0.16, -11.86, 2.87,   0.00, 180.00, 0.00);
  149.                         sobj2[1] = CreateObject(3399, 0.11, -2.93, 0.80,   0.00, 0.00, 270.00);
  150.                         AttachObjectToVehicle(sobj2[0],sveh1,0.16, -11.86, 2.87,   0.00, 180.00, 0.00);
  151.                         AttachObjectToVehicle(sobj2[1],sveh1,0.11, -2.93, 0.80,   0.00, 0.00, 270.00);
  152.                         GameTextForPlayer(playerid,"~y~Special Vehicle~n~~b~Shamal~n~~g~Spawned",3000,5);
  153.                         PutPlayerInVehicle(playerid,sveh1,0);
  154.                     }
  155.                     return 1;
  156.                 }
  157.             }
  158.         }
  159.     return 1;
  160. }
  161.  
  162. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement