Pls Help
#3

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.
Reply


Messages In This Thread
Vehicle Respawn - by nika11 - 16.07.2012, 20:20
Re: Pls Help - by nika11 - 17.07.2012, 16:38
Re: Pls Help - by GSRP - 17.07.2012, 16:47
Re: Pls Help - by nika11 - 18.07.2012, 11:03

Forum Jump:


Users browsing this thread: 1 Guest(s)