01.08.2012, 10:55
I will give you an example of code of vehicles exist on the server:
I come now to a folder and then Scriptfiles Cars folder.
I have a txt file on the server of existing vehicles, that is their ID.
Example:
car22.txt
Content:
CarID=22
CarName=Sandking
CarModel=495
CarOwned=0
CarOwner=none
CarLocked=0
Buyable=1
Price=80000
Nitro=0
Hyd=0
Wheel=0
pjob=0
carname1=Sandking
carplate=Sandking
Color1=-1
Color2=-1
PayTaxTime=30
Parkedx=0
Parkedy=0
Parkedz=0
Parkedangle=0
----
I searched the Addstaticvehicle now its in my mod.
And here is with others Sandking vehicles:
AddStaticVehicle(495,-302.93405151,1745.81860352,43.24757385,270.0000000 0,0,1); //Sandking
AddStaticVehicle(495,-302.93405151,1748.91125488,43.24757385,270.0000000 0,3,32); //Sandking
AddStaticVehicle(495,-302.93405151,1751.93750000,43.24757385,270.0000000 0,36,1); //Sandking
AddStaticVehicle(495,-302.93405151,1755.17309570,43.24757385,270.0000000 0,16,1); //Sandking
And now I'm trying to add new vehicles to server with the command Addstaticvehicle
AddStaticVehicle(451,-2048.4016,463.0262,34.8795,313.6857,0,0); // turismo
Another vehicle to serve successfully.
But, he apparently collided with the ID of the vehicle SandKing
when i enter the vehicle , i see "Wellcome to Turimso, Available for purchase at 300,000 dollars /buycar"
and his name Carplate is "SandKing" his price 300,000 instead of 500,000.
I should add the Torismo, and his have a txt file of its own .. That means a file with its standard for Price includes regular name.
how i do that?
PLS QUICKLY ANSWER !
I come now to a folder and then Scriptfiles Cars folder.
I have a txt file on the server of existing vehicles, that is their ID.
Example:
car22.txt
Content:
CarID=22
CarName=Sandking
CarModel=495
CarOwned=0
CarOwner=none
CarLocked=0
Buyable=1
Price=80000
Nitro=0
Hyd=0
Wheel=0
pjob=0
carname1=Sandking
carplate=Sandking
Color1=-1
Color2=-1
PayTaxTime=30
Parkedx=0
Parkedy=0
Parkedz=0
Parkedangle=0
----
I searched the Addstaticvehicle now its in my mod.
And here is with others Sandking vehicles:
AddStaticVehicle(495,-302.93405151,1745.81860352,43.24757385,270.0000000 0,0,1); //Sandking
AddStaticVehicle(495,-302.93405151,1748.91125488,43.24757385,270.0000000 0,3,32); //Sandking
AddStaticVehicle(495,-302.93405151,1751.93750000,43.24757385,270.0000000 0,36,1); //Sandking
AddStaticVehicle(495,-302.93405151,1755.17309570,43.24757385,270.0000000 0,16,1); //Sandking
And now I'm trying to add new vehicles to server with the command Addstaticvehicle
AddStaticVehicle(451,-2048.4016,463.0262,34.8795,313.6857,0,0); // turismo
Another vehicle to serve successfully.
But, he apparently collided with the ID of the vehicle SandKing
when i enter the vehicle , i see "Wellcome to Turimso, Available for purchase at 300,000 dollars /buycar"
and his name Carplate is "SandKing" his price 300,000 instead of 500,000.
I should add the Torismo, and his have a txt file of its own .. That means a file with its standard for Price includes regular name.
how i do that?
PLS QUICKLY ANSWER !