SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Maps

Reply
 
Thread Tools Display Modes
Old 07/11/2019, 08:33 PM   #1
Botato
Banned
 
Join Date: Jun 2019
Location: Argentina
Posts: 2
Reputation: 12
Lightbulb Car Ramp (map unique)

I created "CarRamp" with textured objects, you can go at high speeds and hit another vehicle and you will see how it flies towards the shit, obviously I tried and it works very well, the vehicle you crashes receives damage, while the CarRamp receives Little damage. If you will wear the CarRamp, leave the corresponding credits.

Images





Code
You can wear the map as FS or simply take the code map.
Code:
/*Mapeo creado por: Borius*/
#include <a_samp>
#include <streamer>

new carvid;

public OnFilterScriptInit()
{ 
    new tmpobjid;

    carvid = CreateVehicle(411, 816.0759, -1389.0547, 13.6198, 358.889, 0 , 0, -1, 0);

    tmpobjid = CreateDynamicObject(19843,0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0);
    SetDynamicObjectMaterial(tmpobjid, 0, 16640, "a51", "sl_metalwalk", 0);
    AttachDynamicObjectToVehicle(tmpobjid, carvid, 0.470, 3.198, -0.405, 135.000, 0.000, 0.000);
    tmpobjid = CreateDynamicObject(19843,0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0);
    SetDynamicObjectMaterial(tmpobjid, 0, 16640, "a51", "sl_metalwalk", 0);
    AttachDynamicObjectToVehicle(tmpobjid, carvid, -0.500, 3.196, -0.410, 135.000, 0.000, 0.000);
    tmpobjid = CreateDynamicObject(19845,0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0);
    SetDynamicObjectMaterial(tmpobjid, 0, 16640, "a51", "sl_metalwalk", 0);
    AttachDynamicObjectToVehicle(tmpobjid, carvid, 0.960, 3.106, -0.541, 335.000, 90.000, 360.000);
    tmpobjid = CreateDynamicObject(19845,0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0);
    SetDynamicObjectMaterial(tmpobjid, 0, 16640, "a51", "sl_metalwalk", 0);
    AttachDynamicObjectToVehicle(tmpobjid, carvid, -1.020, 3.104, -0.545, 695.000, 90.000, 0.000);
    tmpobjid = CreateDynamicObject(19843,0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0);
    SetDynamicObjectMaterial(tmpobjid, 0, 16640, "a51", "sl_metalwalk", 0);
    AttachDynamicObjectToVehicle(tmpobjid, carvid, 0.470, 2.471, 0.253, 315.000, 0.000, 0.000);
    tmpobjid = CreateDynamicObject(19843,0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0);
    SetDynamicObjectMaterial(tmpobjid, 0, 16640, "a51", "sl_metalwalk", 0);
    AttachDynamicObjectToVehicle(tmpobjid, carvid, -0.500, 2.500, 0.285, 135.000, 0.000, 0.000);
    tmpobjid = CreateDynamicObject(19843,0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0);
    SetDynamicObjectMaterial(tmpobjid, 0, 16640, "a51", "sl_metalwalk", 0);
    AttachDynamicObjectToVehicle(tmpobjid, carvid, -1.101, 2.589, -0.250, 0.000, 90.000, 525.000);
    tmpobjid = CreateDynamicObject(19843,0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0);
    SetDynamicObjectMaterial(tmpobjid, 0, 16640, "a51", "sl_metalwalk", 0);
    AttachDynamicObjectToVehicle(tmpobjid, carvid, -1.235, 1.629, -0.250, 0.000, 90.000, 5.000);
    tmpobjid = CreateDynamicObject(19843,0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0);
    SetDynamicObjectMaterial(tmpobjid, 0, 16640, "a51", "sl_metalwalk", 0);
    AttachDynamicObjectToVehicle(tmpobjid, carvid, 1.086, 2.581, -0.269, 90.000, 90.000, 15.000);
    tmpobjid = CreateDynamicObject(19846,0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0);
    AttachDynamicObjectToVehicle(tmpobjid, carvid, -1.138, 2.597, -0.250, 90.000, 90.000, 165.000);
    tmpobjid = CreateDynamicObject(19846,0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0);
    AttachDynamicObjectToVehicle(tmpobjid, carvid, 1.162, 1.608, -0.280, 90.000, 80.000, 0.000);
    tmpobjid = CreateDynamicObject(19843,0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0);
    SetDynamicObjectMaterial(tmpobjid, 0, 18835, "mickytextures", "metal013", 0);
    AttachDynamicObjectToVehicle(tmpobjid, carvid, -0.501, 2.319, 0.054, -16.999, -1.100, 0.000);
    tmpobjid = CreateDynamicObject(18693,0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0);
    AttachDynamicObjectToVehicle(tmpobjid, carvid, -0.320, -0.921, -0.625, 85.000, 0.000, 0.000);
    tmpobjid = CreateDynamicObject(19846,0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0);
    AttachDynamicObjectToVehicle(tmpobjid, carvid, -1.275, 1.619, -0.260, 90.000, 90.000, 5.000);
    tmpobjid = CreateDynamicObject(19843,0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0);
    SetDynamicObjectMaterial(tmpobjid, 0, 18835, "mickytextures", "metal013", 0);
    AttachDynamicObjectToVehicle(tmpobjid, carvid, 0.465, 2.321, 0.072, 523.000, 180.699, 0.000);
    tmpobjid = CreateDynamicObject(18718,0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0);
    AttachDynamicObjectToVehicle(tmpobjid, carvid, -1.000, 3.071, -1.450, 0.000, 0.000, 0.000);
    tmpobjid = CreateDynamicObject(19843,0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0);
    SetDynamicObjectMaterial(tmpobjid, 0, 16640, "a51", "sl_metalwalk", 0);
    AttachDynamicObjectToVehicle(tmpobjid, carvid, 1.181, 1.617, -0.270, 0.000, 90.000, 1250.000);
    tmpobjid = CreateDynamicObject(19846,0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0);
    AttachDynamicObjectToVehicle(tmpobjid, carvid, 1.095, 2.663, -0.280, 90.000, 105.000, 0.000);
    tmpobjid = CreateDynamicObject(18693,0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0);
    AttachDynamicObjectToVehicle(tmpobjid, carvid, 0.330, -0.927, -0.624, 84.199, 0.000, 0.000);
    tmpobjid = CreateDynamicObject(19843,0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0);
    SetDynamicObjectMaterial(tmpobjid, 0, 18835, "mickytextures", "metal013", 0);
    AttachDynamicObjectToVehicle(tmpobjid, carvid, -0.490, 1.372, 0.159, 3.599, -0.299, 1.500);
    tmpobjid = CreateDynamicObject(19843,0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0);
    SetDynamicObjectMaterial(tmpobjid, 0, 18835, "mickytextures", "metal013", 0);
    AttachDynamicObjectToVehicle(tmpobjid, carvid, 0.470, 1.366, 0.213, -173.499, 0.599, -0.099);
    tmpobjid = CreateDynamicObject(19846,0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0);
    AttachDynamicObjectToVehicle(tmpobjid, carvid, 0.580, 2.130, 0.119, 90.000, 0.000, 0.000);
    tmpobjid = CreateDynamicObject(19846,0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0);
    AttachDynamicObjectToVehicle(tmpobjid, carvid, -0.620, 2.133, 0.124, 90.000, 0.000, 0.000);
    tmpobjid = CreateDynamicObject(19846,0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0);
    AttachDynamicObjectToVehicle(tmpobjid, carvid, 0.000, 2.130, 0.129, 90.000, 0.000, -0.199);
    tmpobjid = CreateDynamicObject(19846,0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0);
    AttachDynamicObjectToVehicle(tmpobjid, carvid, -1.040, 2.150, 0.179, 90.000, 0.000, 90.000);
    tmpobjid = CreateDynamicObject(19846,0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0);
    AttachDynamicObjectToVehicle(tmpobjid, carvid, 0.960, 2.111, 0.159, 90.000, 0.000, 90.000);
    tmpobjid = CreateDynamicObject(18718,0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0);
    AttachDynamicObjectToVehicle(tmpobjid, carvid, 0.980, 3.051, -1.429, 0.000, 0.000, 0.000);
} 

public OnFilterScriptExit()
{ 
    DestroyVehicle(carvid);
} 

public OnVehicleSpawn(vehicleid)
{ 
    if(vehicleid == carvid)
    { 
    } 
}
Credits: Borius

PD: If you notice spelling errors or I have expressed myself wrong, it is because my English is a bit bad (I am from Argentina)
Botato is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Map] Ramp SKY (Jump, Drop) to descend an immense ramp Cromartie Maps 0 02/03/2019 03:24 PM
[FilterScript] Unique LSPD gate and ramp by EzeeCube Barchy Filterscripts 5 20/03/2014 02:51 PM
/ramp Mr.Jvxmc Help Archive 3 27/10/2010 02:49 PM
ramp help Eazy_E214 Help Archive 2 23/08/2009 12:43 PM
All Ramp Id's? blackyy Help Archive 2 23/06/2009 04:57 PM


All times are GMT. The time now is 11:33 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.