Need little help - 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: Need little help (
/showthread.php?tid=254514)
Need little help -
Cenation - 11.05.2011
How can i make if player Modify his/her car on next spawn(or he dissconnect) he get his modified car back
how?
Re: Need little help -
Biesmen - 11.05.2011
You'll have to store the vehicle data(
https://sampwiki.blast.hk/wiki/AddVehicleComponent, and GetVehicleComponentType) in a file/database. If the player connects, spawn the vehicle and use AddVehicleComponent.
Re: Need little help -
Cenation - 11.05.2011
ok thankz
Re: Need little help -
Cenation - 11.05.2011
* BUMP *
i cant understand it

please can any give me script?
Re: Need little help -
Sasino97 - 11.05.2011
Well its a bit long, I'll try to explain what you have to do:
Explaination:
Код:
On gamemode exit:
{
Store all vehicle's x, y, z, rotation;
Store all vehicle's damage;
Store all vehicle's components;
Store all vehicle's color;
[...]
Write the info to a file.
Write the info to a file.
Write the info to a file.
[...]
}
On gamemode init:
{
create the vehicle (...)
create the vehicle (...)
[...]
loop("vehicleid"; from 0; to MAX_VEHICLES)
{
Read the file and get the saved X, Y and Z
if((Get"vehicleid"'s x, y, z) != 0) //So if the vehicle is valid
{
Read the other info(...)
Set the info(...)
}
}
}
Re: Need little help -
Cenation - 12.05.2011
ok thankz i will try it