11.01.2010, 17:19
Hello there this is my first tutorial
I didnt found this kind of tutorial anywhere so i said i will make my own...
Here we go...
first we need to add variable
then we need to add our car and give a "name" so the server will know which car to spawn tuned
This code will spawn a sultan near LV fight club.
now we need to add vehicle's components.You can find vehicle components at wiki samp.
This here will add our vehicle x10nitro
we finished our tuned car now,it will spawn our sultan with x10nitro.
Here is another example:
This example makes our sultan fully tuned!
I hope you like it !
I didnt found this kind of tutorial anywhere so i said i will make my own...
Here we go...
first we need to add variable
Код:
new mycar;
This code will spawn a sultan near LV fight club.
Код:
mycar= AddStaticVehicle(560,2120.3489,2184.1875,10.3771,2.0218,17,1);
This here will add our vehicle x10nitro
Код:
AddVehicleComponent(mycar, 1010);
Here is another example:
Код:
new mycar; OnGameModeInit(); mycar = AddStaticVehicle(560,2120.3489,2184.1875,10.3771,2.0218,17,1); //vehicle = Sultan AddVehicleComponent(mycar, 1010); AddVehicleComponent(mycar, 1026); AddVehicleComponent(mycar, 1027); AddVehicleComponent(mycar, 1028); AddVehicleComponent(mycar, 1029); AddVehicleComponent(mycar, 1030); AddVehicleComponent(mycar, 1031); AddVehicleComponent(mycar, 1032); AddVehicleComponent(mycar, 1033); AddVehicleComponent(mycar, 1138); AddVehicleComponent(mycar, 1139); AddVehicleComponent(mycar, 1140); AddVehicleComponent(mycar, 1141); AddVehicleComponent(mycar, 1169); AddVehicleComponent(mycar, 1170);
I hope you like it !