26.07.2012, 15:58
Create variable:
Put this under the car spawning command:
You have to put in the parameters for CreateVehicle function.
Haven't tested, but it should work.
pawn Code:
new pCars[MAX_PLAYERS];
pawn Code:
if (pCars[playerid] > 0) DestroyVehicle(pCars[playerid]);
PutPlayerInVehicle(playerid, CreateVehicle(modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, respawn_delay), 0);
pCars[playerid] = GetPlayerVehicleID(playerid);
Haven't tested, but it should work.