SA-MP Forums Archive
How i can convert - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How i can convert (/showthread.php?tid=361794)



How i can convert - God'Z War - 22.07.2012

Hi Guys,
any one say Know how to convert this code to Scritpfile

pawn Код:
AddStaticVehicle(420,2483.50195300,-1653.00598100,13.20846300,84.32843700,-1,-1); //Taxi
    AddStaticVehicle(420,2329.87158200,-1741.16137600,13.32373600,84.32843700,-1,-1); //Taxi
    AddStaticVehicle(420,2254.36499000,-1801.09814400,13.32627300,84.32843700,-1,-1); //Taxi
    AddStaticVehicle(420,2388.76489200,-1886.92651300,13.24068800,84.32843700,-1,-1); //Taxi
    AddStaticVehicle(420,2483.63598600,-1951.71252400,13.21911200,84.32843700,-1,-1); //Taxi
    AddStaticVehicle(420,2723.84033200,-1959.90234300,13.32460400,84.32843700,-1,-1); //Taxi
    AddStaticVehicle(420,2658.83740200,-1996.98962400,13.33446800,84.32843700,-1,-1); //Taxi
    AddStaticVehicle(420,2808.21704100,-1952.14941400,12.69899100,84.32843700,-1,-1); //Taxi
    AddStaticVehicle(420,2856.92456000,-1624.46667400,10.86419500,84.32843700,-1,-1); //Taxi
    AddStaticVehicle(420,2832.85107400,-1158.18981900,24.75402200,84.32843700,-1,-1); //Taxi
    AddStaticVehicle(420,2633.92675700,-1078.42797800,69.40417400,84.32843700,-1,-1); //Taxi
    AddStaticVehicle(420,2589.50585900,-1262.95605400,46.56655800,84.32843700,-1,-1); //Taxi
    AddStaticVehicle(420,2409.59692300,-1227.66845700,24.02184600,86.13143100,-1,-1); //Taxi
    AddStaticVehicle(420,2391.17431600,-1495.88671800,23.61511000,86.13143100,-1,-1); //Taxi
    AddStaticVehicle(420,2472.07177700,-1555.32604900,23.78578300,86.13143100,-1,-1); //Taxi
    AddStaticVehicle(420,2106.69946200,-1780.74365200,13.16849800,86.13143100,-1,-1); //Taxi
    AddStaticVehicle(420,1895.30224600,-1937.49572700,13.23783300,86.13143100,-1,-1); //Taxi
    AddStaticVehicle(420,1776.42895500,-1922.52270500,13.16051500,86.13143100,-1,-1); //Taxi
    AddStaticVehicle(420,1809.57397400,-1643.28808500,13.31819000,86.13143100,-1,-1); //Taxi
    AddStaticVehicle(420,1703.18957500,-1608.93212800,13.33614900,86.13143100,-1,-1); //Taxi
    AddStaticVehicle(420,1519.58190900,-1679.76513600,13.32509700,86.13143100,-1,-1); //Taxi
    AddStaticVehicle(420,1382.00390600,-1764.84899900,13.32750200,86.13143100,-1,-1); //Taxi
    AddStaticVehicle(420,1578.34814400,-1879.48388600,13.32561300,86.13143100,-1,-1); //Taxi
    AddStaticVehicle(420,1278.98315400,-1826.08410600,13.16516700,92.59673300,-1,-1); //Taxi
    AddStaticVehicle(420,946.05041500,-1757.02990700,13.32686900,92.59673300,-1,-1); //Taxi
    AddStaticVehicle(420,621.35382000,-1611.70178200,16.27722900,92.59673300,-1,-1); //Taxi
    AddStaticVehicle(420,783.29779000,-1348.22387600,13.31300700,92.59673300,-1,-1); //Taxi
    AddStaticVehicle(420,1034.21569800,-1137.90405200,23.43592800,92.59673300,-1,-1); //Taxi
    AddStaticVehicle(420,1170.57226500,-1021.65551700,33.17673800,92.59673300,-1,-1); //Taxi
    AddStaticVehicle(420,982.50891100,-925.86169400,41.49312200,92.59673300,-1,-1); //Taxi
    AddStaticVehicle(420,1223.51745600,-905.14599600,42.67783300,92.59673300,-1,-1); //Taxi
    AddStaticVehicle(420,1463.73046800,-902.30328300,54.61523800,92.59673300,-1,-1); //Taxi
    AddStaticVehicle(420,2115.34155200,-1061.26928700,25.45872800,92.59673300,-1,-1); //Taxi



Re: How i can convert - Kindred - 22.07.2012

I honestly HOPE you are not serious.

What the hell do you want, use reasonable english!

Do you want to save the coordinates, color, and respawn shit so that when you open the file, you can simply load the vehicles from the file?


Re: How i can convert - kurzagfx - 22.07.2012

Sorry man im new to scripting but i dont understand the question be a bit more specific if you can i dont understand what you mean by "Can any one say how i can convert this code to Scritpfile"


Re: How i can convert - God'Z War - 22.07.2012

i want to add this code in Scriptfile is there code like

pawn Код:
420,2483.501953,-1653.005981,13.208463,84.328437,-1,-1
420,2329.871582,-1741.161376,13.323736,84.328437,-1,-1
420,2254.364990,-1801.098144,13.326273,84.328437,-1,-1
420,2388.764892,-1886.926513,13.240688,84.328437,-1,-1
420,2483.635986,-1951.712524,13.219112,84.328437,-1,-1
420,2723.840332,-1959.902343,13.324604,84.328437,-1,-1
420,2658.837402,-1996.989624,13.334468,84.328437,-1,-1
420,2808.217041,-1952.149414,12.698991,84.328437,-1,-1
420,2856.924560,-1624.466674,10.864195,84.328437,-1,-1
420,2832.851074,-1158.189819,24.754022,84.328437,-1,-1
420,2633.926757,-1078.427978,69.404174,84.328437,-1,-1
420,2589.505859,-1262.956054,46.566558,84.328437,-1,-1
420,2409.596923,-1227.668457,24.021846,86.131431,-1,-1
420,2391.174316,-1495.886718,23.615110,86.131431,-1,-1
420,2472.071777,-1555.326049,23.785783,86.131431,-1,-1



Re: How i can convert - [MM]RoXoR[FS] - 22.07.2012

http://www.jatochnietdan.com/tools/?tool=randomspawn


Re: How i can convert - Kindred - 22.07.2012

Quote:
Originally Posted by [MM]RoXoR[FS]
Посмотреть сообщение
Whats the use of that? Did you even BOTHER reading his post?

What it seems like he wants is to have a file with that code, and then load it via a function. So like this method:

You would check if the file is created, and if it is, it would loop through the max vehicles the file can have and create the vehicle based on the color and shit it is made to, so the file would be like this and he would load the custom shit:

Код:
Color=coloridhere
VehicleID=vehicleidhere