Beginner - How To: Create An Vehicle! -
Camacorn - 09.11.2009
[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!
Re: Beginner - How To: Create An Vehicle! -
ModernRP - 09.11.2009
Great tutorial for noobs, could you also create a Tutorials how to setup a gang + gangcars etc? Would be nice
Re: Beginner - How To: Create An Vehicle! - [03]Garsino - 09.11.2009
I think most scripters know this.. Even the newbie ones..
Anyways, good job...
Re: Beginner - How To: Create An Vehicle! -
Rickyboy30 - 09.11.2009
God -.-
Please, stop making topics with these USELESS tutorials!
Even Wiki is explaining it better !
Re: Beginner - How To: Create An Vehicle! -
Lajko1 - 09.11.2009
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
Re: Beginner - How To: Create An Vehicle! -
Camacorn - 09.11.2009
sure, ill post it in 1 hour, since im kina busy.
Re: Beginner - How To: Create An Vehicle! -
retart441 - 09.11.2009
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 ![Smiley](images/smilies/smile.png)
|
It's useless, to post them in separate topics. He would seem much better if he just made one big Newbie help guide.
Re: Beginner - How To: Create An Vehicle! -
westre - 09.11.2009
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 ??
Re: Beginner - How To: Create An Vehicle! -
LarzI - 09.11.2009
The last argument is respawn_delay (in seconds)
Re: Beginner - How To: Create An Vehicle! -
Eazy_Efolife - 09.11.2009
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 ![Smiley](images/smilies/smile.png)
|
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