05.03.2015, 06:45
Even though this should be under scripting help, the code to do such thing should be:
Code not tested, however adjust it to your needs.
pawn Код:
#include <a_samp>
#include <zcmd>
new PlayerVehicle[MAX_PLAYERS];
CMD:v(playerid, params[])
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
PlayerVehicle[playerid] = CreateVehicle(522, x, y, z, 0, 0, 0, -1);
return 1;
}
public OnPlayerConnect(playerid)
{
PlayerVehicle[playerid] = -1;
return 1;
}
public OnPlayerExitVehicle(playerid)
{
DestroyVehicle(PlayerVehicle[playerid]);
return 1;
}