Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <zcmd>
- #define svehdialog 6548
- new sobj[15],sobj1[27],sobj2[2];
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Loaded Special Vehicles by newbienoob ");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- CMD:sveh(playerid,params[])
- {
- ShowPlayerDialog(playerid,svehdialog,DIALOG_STYLE_LIST,"{2F70D0}Special Vehicles","{00FF00}DFT-30 \n{00FF00}RoadTrain \n{00FF00}Shamal","Spawn","Cancel");
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- new Float:x,Float:y,Float:z,Float:a;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- switch(dialogid)
- {
- case svehdialog:
- {
- if(response)
- {
- if(listitem == 0)
- {
- new sveh1 = CreateVehicle(578, x,y,z,a, -1, -1, -1);
- sobj[0] = CreateObject(3095, -0.06, -2.09, -0.76, 0.00, 0.00, 0.00);
- sobj[1] = CreateObject(970, 2.09, -6.50, 0.34, 0.00, 0.00, 0.00);
- sobj[2] = CreateObject(970, -4.50, 0.21, 0.34, 0.00, 0.00, 90.00);
- sobj[3] = CreateObject(970, 4.37, -2.90, 0.34, 0.00, 0.00, 90.00);
- sobj[4] = CreateObject(970, -4.50, -2.90, 0.34, 0.00, 0.00, 90.00);
- sobj[5] = CreateObject(970, 4.37, 0.21, 0.34, 0.00, 0.00, 90.00);
- sobj[6] = CreateObject(970, -2.46, 2.26, 0.34, 0.00, 0.00, 0.00);
- sobj[7] = CreateObject(970, 2.30, 2.26, 0.34, 0.00, 0.00, 0.00);
- sobj[8] = CreateObject(16151, 0.26, 1.19, 0.13, 0.00, 0.00, 90.00);
- sobj[9] = CreateObject(1281, -3.23, -3.63, 0.58, 0.00, 0.00, 0.00);
- sobj[10] = CreateObject(2639, 0.15, -6.08, 0.28, 0.00, 0.00, 0.00);
- sobj[11] = CreateObject(11665, 2.77, -3.43, 0.48, 0.00, 0.00, 0.00);
- sobj[12] = CreateObject(2010, 3.51, -6.28, -0.22, 0.00, 0.00, 0.00);
- sobj[13] = CreateObject(2010, -3.38, -6.24, -0.22, 0.00, 0.00, 0.00);
- sobj[14] = CreateObject(970, -2.37, -6.50, 0.34, 0.00, 0.00, 0.00);
- AttachObjectToVehicle(sobj[0],sveh1,-0.06, -2.09, -0.76,0,0,0);
- AttachObjectToVehicle(sobj[1],sveh1,2.09, -6.50, 0.34, 0,0,0);
- AttachObjectToVehicle(sobj[2],sveh1,-4.50, 0.21, 0.34, 0,0,90);
- AttachObjectToVehicle(sobj[3],sveh1,4.37, -2.90, 0.34, 0.00, 0.00, 90.00);
- AttachObjectToVehicle(sobj[4],sveh1,-4.50, -2.90, 0.34, 0.00, 0.00, 90.00);
- AttachObjectToVehicle(sobj[5],sveh1,4.37, 0.21, 0.34, 0.00, 0.00, 90.00);
- AttachObjectToVehicle(sobj[6],sveh1,-2.46, 2.26, 0.34, 0.00, 0.00, 0.00);
- AttachObjectToVehicle(sobj[7],sveh1,2.30, 2.26, 0.34, 0.00, 0.00, 0.00);
- AttachObjectToVehicle(sobj[8],sveh1,0.26, 1.19, 0.13, 0.00, 0.00, 90.00);
- AttachObjectToVehicle(sobj[9],sveh1,-3.23, -3.63, 0.58, 0.00, 0.00, 0.00);
- AttachObjectToVehicle(sobj[10],sveh1,0.15, -6.08, 0.28, 0.00, 0.00, 0.00);
- AttachObjectToVehicle(sobj[11],sveh1,2.77, -3.43, 0.48, 0.00, 0.00, 0.00);
- AttachObjectToVehicle(sobj[12],sveh1,3.51, -6.28, -0.22, 0.00, 0.00, 0.00);
- AttachObjectToVehicle(sobj[13],sveh1,-3.38, -6.24, -0.22, 0.00, 0.00, 0.00);
- AttachObjectToVehicle(sobj[14],sveh1,-2.37, -6.50, 0.34, 0.00, 0.00, 0.00);
- GameTextForPlayer(playerid,"~y~Special Vehicle~n~~b~DFT-300~n~~g~Spawned",3000,5);
- PutPlayerInVehicle(playerid,sveh1,0);
- return 1;
- }
- if(listitem == 1)
- {
- new sveh1 = CreateVehicle(515, x,y,z,a, -1, -1, -1);
- sobj1[0] = CreateObject(19462,0.00000000,-8.72000000,2.41000000,0.00000000,90.00000000,0.00000000);
- sobj1[1] = CreateObject(19462,-1.71000000,-8.72000000,0.66000000,0.00000000,0.00000000,0.00000000);
- sobj1[2] = CreateObject(19462,1.76000000,-8.72000000,0.66000000,0.00000000,0.00000000,0.00000000);
- sobj1[3] = CreateObject(19462,0.00000000,-8.72000000,-0.72000000,0.00000000,90.00000000,0.00000000);
- sobj1[4] = CreateObject(19443,0.65000000,-3.88000000,0.66000000,0.00000000,0.00000000,90.00000000);
- sobj1[5] = CreateObject(19443,-0.96000000,-3.88000000,0.66000000,0.00000000,0.00000000,90.00000000);
- sobj1[6] = CreateObject(19443,0.98000000,-3.88000000,0.66000000,0.00000000,0.00000000,90.00000000);
- sobj1[7] = CreateObject(19443,-1.01000000,-13.48000000,0.66000000,0.00000000,0.00000000,90.00000000);
- sobj1[8] = CreateObject(2008,-1.13000000,-4.49000000,-0.66000000,0.00000000,0.00000000,0.00000000);
- sobj1[9] = CreateObject(3392,-1.07000000,-7.80000000,-0.64000000,0.00000000,0.00000000,180.00000000);
- sobj1[10] = CreateObject(3393,-1.06000000,-11.35000000,-0.64000000,0.00000000,0.00000000,180.00000000);
- sobj1[11] = CreateObject(2700,-1.35000000,-7.27000000,1.68000000,0.00000000,0.00000000,0.00000000);
- sobj1[12] = CreateObject(2700,-1.35000000,-7.92000000,1.68000000,0.00000000,0.00000000,0.00000000);
- sobj1[13] = CreateObject(2700,-1.35000000,-8.56000000,1.68000000,0.00000000,0.00000000,0.00000000);
- sobj1[14] = CreateObject(2700,-1.35000000,-9.19000000,1.68000000,0.00000000,0.00000000,0.00000000);
- sobj1[15] = CreateObject(2700,-1.35000000,-9.81000000,1.68000000,0.00000000,0.00000000,0.00000000);
- sobj1[16] = CreateObject(2700,-1.35000000,-10.43000000,1.68000000,0.00000000,0.00000000,0.00000000);
- sobj1[17] = CreateObject(2700,-1.35000000,-11.05000000,1.68000000,0.00000000,0.00000000,0.00000000);
- sobj1[18] = CreateObject(1671,0.02000000,-7.56000000,-0.22000000,0.00000000,0.00000000,270.00000000);
- sobj1[19] = CreateObject(1671,0.01000000,-8.70000000,-0.22000000,0.00000000,0.00000000,270.00000000);
- sobj1[20] = CreateObject(1671,0.15000000,-11.00000000,-0.22000000,0.00000000,0.00000000,270.00000000);
- sobj1[21] = CreateObject(1671,0.22000000,-12.02000000,-0.22000000,0.00000000,0.00000000,270.00000000);
- sobj1[22] = CreateObject(1671,-0.13000000,-5.01000000,-0.22000000,0.00000000,0.00000000,180.00000000);
- sobj1[23] = CreateObject(1096,-1.70000000,-12.85000000,-1.54000000,0.00000000,0.00000000,180.00000000);
- sobj1[24] = CreateObject(1096,-1.42000000,-12.85000000,-1.54000000,0.00000000,0.00000000,180.00000000);
- sobj1[25] = CreateObject(1096,1.72000000,-12.85000000,-1.54000000,0.00000000,0.00000000,0.00000000);
- sobj1[26] = CreateObject(1096,1.44000000,-12.85000000,-1.54000000,0.00000000,0.00000000,0.00000000);
- AttachObjectToVehicle(sobj1[0],sveh1,0.00000000,-8.72000000,2.41000000,0.00000000,90.00000000,0.00000000);
- AttachObjectToVehicle(sobj1[1],sveh1,-1.71000000,-8.72000000,0.66000000,0.00000000,0.00000000,0.00000000);
- AttachObjectToVehicle(sobj1[2],sveh1,1.76000000,-8.72000000,0.66000000,0.00000000,0.00000000,0.00000000);
- AttachObjectToVehicle(sobj1[3],sveh1,0.00000000,-8.72000000,-0.72000000,0.00000000,90.00000000,0.00000000);
- AttachObjectToVehicle(sobj1[4],sveh1,0.65000000,-3.88000000,0.66000000,0.00000000,0.00000000,90.00000000);
- AttachObjectToVehicle(sobj1[5],sveh1,-0.96000000,-3.88000000,0.66000000,0.00000000,0.00000000,90.00000000);
- AttachObjectToVehicle(sobj1[6],sveh1,0.98000000,-3.88000000,0.66000000,0.00000000,0.00000000,90.00000000);
- AttachObjectToVehicle(sobj1[7],sveh1,-1.01000000,-13.48000000,0.66000000,0.00000000,0.00000000,90.00000000);
- AttachObjectToVehicle(sobj1[8],sveh1,-1.13000000,-4.49000000,-0.66000000,0.00000000,0.00000000,0.00000000);
- AttachObjectToVehicle(sobj1[9],sveh1,-1.07000000,-7.80000000,-0.64000000,0.00000000,0.00000000,180.00000000);
- AttachObjectToVehicle(sobj1[10],sveh1,-1.06000000,-11.35000000,-0.64000000,0.00000000,0.00000000,180.00000000);
- AttachObjectToVehicle(sobj1[11],sveh1,-1.35000000,-7.27000000,1.68000000,0.00000000,0.00000000,0.00000000);
- AttachObjectToVehicle(sobj1[12],sveh1,-1.35000000,-7.92000000,1.68000000,0.00000000,0.00000000,0.00000000);
- AttachObjectToVehicle(sobj1[13],sveh1,-1.35000000,-8.56000000,1.68000000,0.00000000,0.00000000,0.00000000);
- AttachObjectToVehicle(sobj1[14],sveh1,-1.35000000,-9.19000000,1.68000000,0.00000000,0.00000000,0.00000000);
- AttachObjectToVehicle(sobj1[15],sveh1,-1.35000000,-9.81000000,1.68000000,0.00000000,0.00000000,0.00000000);
- AttachObjectToVehicle(sobj1[16],sveh1,-1.35000000,-10.43000000,1.68000000,0.00000000,0.00000000,0.00000000);
- AttachObjectToVehicle(sobj1[17],sveh1,-1.35000000,-11.05000000,1.68000000,0.00000000,0.00000000,0.00000000);
- AttachObjectToVehicle(sobj1[18],sveh1,0.02000000,-7.56000000,-0.22000000,0.00000000,0.00000000,270.00000000);
- AttachObjectToVehicle(sobj1[19],sveh1,0.01000000,-8.70000000,-0.22000000,0.00000000,0.00000000,270.00000000);
- AttachObjectToVehicle(sobj1[20],sveh1,0.15000000,-11.00000000,-0.22000000,0.00000000,0.00000000,270.00000000);
- AttachObjectToVehicle(sobj1[21],sveh1,0.22000000,-12.02000000,-0.22000000,0.00000000,0.00000000,270.00000000);
- AttachObjectToVehicle(sobj1[22],sveh1,-0.13000000,-5.01000000,-0.22000000,0.00000000,0.00000000,180.00000000);
- AttachObjectToVehicle(sobj1[23],sveh1,-1.70000000,-12.85000000,-1.54000000,0.00000000,0.00000000,180.00000000);
- AttachObjectToVehicle(sobj1[24],sveh1,-1.42000000,-12.85000000,-1.54000000,0.00000000,0.00000000,180.00000000);
- AttachObjectToVehicle(sobj1[25],sveh1,1.72000000,-12.85000000,-1.54000000,0.00000000,0.00000000,0.00000000);
- AttachObjectToVehicle(sobj1[26],sveh1,1.44000000,-12.85000000,-1.54000000,0.00000000,0.00000000,0.00000000);
- GameTextForPlayer(playerid,"~y~Special Vehicle~n~~b~RoadTrain~n~~g~Spawned",3000,5);
- PutPlayerInVehicle(playerid,sveh1,0);
- return 1;
- }
- if(listitem == 2)
- {
- new sveh1 = CreateVehicle(519, x,y,z,a, -1, -1, -1);
- sobj2[0] = CreateObject(3095, 0.16, -11.86, 2.87, 0.00, 180.00, 0.00);
- sobj2[1] = CreateObject(3399, 0.11, -2.93, 0.80, 0.00, 0.00, 270.00);
- AttachObjectToVehicle(sobj2[0],sveh1,0.16, -11.86, 2.87, 0.00, 180.00, 0.00);
- AttachObjectToVehicle(sobj2[1],sveh1,0.11, -2.93, 0.80, 0.00, 0.00, 270.00);
- GameTextForPlayer(playerid,"~y~Special Vehicle~n~~b~Shamal~n~~g~Spawned",3000,5);
- PutPlayerInVehicle(playerid,sveh1,0);
- }
- return 1;
- }
- }
- }
- return 1;
- }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement