Help in cars - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help in cars (
/showthread.php?tid=77850)
Help in cars -
Taz86 - 15.05.2009
yo!
I want to make new cars in my server,
Im gonna do like this:
To go to the position and to /save than to take the line and make her like this:
CreateVehicle(411,2390.207,-1235.691,677.975,89.0,-1,-1,120); //Infernus
But i got questions.
411 means Car ID.
Than i got the coords from the /save
But i see -1,-1, This one is Colors?
And what is the 120 at the end?
And is that the right way to make cars?
Thanks
Re: Help in cars -
Gamer007 - 15.05.2009
-1 -1 colors 120 is respawn delay
Re: Help in cars -
Taz86 - 15.05.2009
That is the right way to make car?
Re: Help in cars -
Gamer007 - 15.05.2009
yes
Re: Help in cars -
Ignas1337 - 15.05.2009
heh, that's right. at first i didn't read the function and thought it was addstaticvehicle as it gives you in the savedpositions file (atleast as it has been giving)
you can either use CreateVehicle or AddStaticVehicleEx with respawn delay
Re: Help in cars -
Taz86 - 15.05.2009
yes now i set this car to buy
buy it doesnt show the name
or price its show 0
Why?
Re: Help in cars -
Ignas1337 - 15.05.2009
Quote:
Originally Posted by Taz86
yes now i set this car to buy
buy it doesnt show the name
or price its show 0
Why?
|
the hel do you mean? please explain more detailed, because I do not understand what you mean. if you want a car el/buy/whatnot script you shoud add a question properly, because people are not familair with the script and whatnot you have!
Re: Help in cars -
Taz86 - 15.05.2009
I mean after i create infenus at location
Now i want to set the car to buy
So i put the ids like that:
public IsAnOwnableCar(vehicleid)
{
if(vehicleid >= 1 && vehicleid <= 2) { return 1; }
return 0;
}
But its sayd at enter the car:
Name: (Empty)
Price: 0
/v To buy this car
Why its not show the name?
and how i can set the price?
Re: Help in cars -
Ignas1337 - 15.05.2009
It's hard to get a detailed view, you could paste the code soewhere, coudn't you? Cause if I could see it it would be more easy to see where the problem is
Re: Help in cars -
Taz86 - 15.05.2009
Can you come to my server and to see it?