Beginner - How To: Create An Vehicle!
#1

[b]New To Pawno ? Need Help? Well, im here to teach you the basics of scripting!

So you want to create an vehicle? Here are the step by step basics:
NOTE: may differ on some gamemodes!

1) Open Pawno.
2) Start A New Script.

3) Pick An Vehicle ID From: wiki.sa-mp.com

4) Get Your Coordinates, goto the location and type "/save"
5) Goto your MAIN gta sa folder. then goto "savedpositions.txt"

6) Go back to Pawno, and type the following:
Код:
CreateVehicle( ID, X, Y, Z, A, COLOR 1, COLOR 2)
[b]
7) Example: (STRETCH LIMO)
Код:
public OnGameModeInit( )
{
  // Stretch Limo
  CreateVehicle(409, 4833.1763, 4654.0453, 32.2887, 82.2873, 3, 3, 60);
  return 1;
}
[b]I hope this has helped some of you new scripters!

More Beginner Lessons Coming Soon!
Reply
#2

Great tutorial for noobs, could you also create a Tutorials how to setup a gang + gangcars etc? Would be nice
Reply
#3

I think most scripters know this.. Even the newbie ones..

Anyways, good job...
Reply
#4

God -.-

Please, stop making topics with these USELESS tutorials!

Even Wiki is explaining it better !

Reply
#5

Quote:
Originally Posted by Rickyboy30
God -.-

Please, stop making topics with these USELESS tutorials!

Even Wiki is explaining it better !

Its NOT so USELESS , think when you was a newbie ... good tut but it should be really better if you show some scripts about gang vehicles + teams mybe some commands etc
Reply
#6

sure, ill post it in 1 hour, since im kina busy.
Reply
#7

Quote:
Originally Posted by Lajko1
Quote:
Originally Posted by Rickyboy30
God -.-

Please, stop making topics with these USELESS tutorials!

Even Wiki is explaining it better !

Its NOT so USELESS , think when you was a newbie ... good tut but it should be really better if you show some scripts about gang vehicles + teams mybe some commands etc
It's useless, to post them in separate topics. He would seem much better if he just made one big Newbie help guide.
Reply
#8

Quote:
Originally Posted by george_cahill
[b]New To Pawno ? Need Help? Well, im here to teach you the basics of scripting!

....
6) Go back to Pawno, and type the following:
Код:
CreateVehicle( ID, X, Y, Z, A, COLOR 1, COLOR 2)
[b]
7) Example: (STRETCH LIMO)
Код:
public OnGameModeInit( )
{
  // Stretch Limo
  CreateVehicle(409, 4833.1763, 4654.0453, 32.2887, 82.2873, 3, 3, 60);
  return 1;
}
[b]I hope this has helped some of you new scripters!

More Beginner Lessons Coming Soon!
You forgot an argument.

CreateVehicle(409, 4833.1763, 4654.0453, 32.2887, 82.2873, 3, 3, 60);
ID X Y Z A COL 1 COL 2 ??
Reply
#9

The last argument is respawn_delay (in seconds)
Reply
#10

Quote:
Originally Posted by retart441
Quote:
Originally Posted by Lajko1
Quote:
Originally Posted by Rickyboy30
God -.-

Please, stop making topics with these USELESS tutorials!

Even Wiki is explaining it better !

Its NOT so USELESS , think when you was a newbie ... good tut but it should be really better if you show some scripts about gang vehicles + teams mybe some commands etc
It's useless, to post them in separate topics. He would seem much better if he just made one big Newbie help guide.
+1

There is no point to this topic, I don't know if your trying to prove your a good coder or something but https://sampwiki.blast.hk/wiki/AddStaticVehicle is a short version of your tutorial
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)