Pls 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)
+--- Thread: Pls Help (
/showthread.php?tid=360194)
Vehicle Respawn -
nika11 - 16.07.2012
i can't speak good english but i think you will understand
i have one problem i want to one or multiple vehicles will not respawn on respawn time and when server starts set vehicle position last position he was
can anyone help? :S
Re: Pls Help -
nika11 - 17.07.2012
up plas helpp :S
Re: Pls Help -
GSRP - 17.07.2012
First, create an enum for car information and variables.
pawn Код:
enum vInfo
{
Float: vPos_X,
Float: vPos_Y,
Float: vPos_Z,
Float: vRot_A
};
new VehicleInfo[MAX_VEHICLES][vInfo]; // Make sure to put #define MAX_VEHICLES 500 at the top of your script. You can change 500 to whatever you want.
Then you can create a command, called /park. You will have to make sure he is in an owned vehicle, make sure it's his vehicle, and then set the X, Y, Z, and A to the cars current position. A is the Angle. Then when he connects, you set his vehicle to load, by creating a function for loading player vehicles.
Re: Pls Help -
nika11 - 18.07.2012
i already have that cmd on ownable vehicles i want make cmd for faction vehciles, not cmd it mus only autosave pos :S