17.07.2012, 16:47
First, create an enum for car information and variables.
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.
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.