27.07.2012, 18:32
How to make when player spawns another vehicle if there is old spawned the old to be destroyed
I have tryed to make it but it wont work:
Ideas ?
I have tryed to make it but it wont work:
pawn Код:
new Veh[512],id[MAX_PLAYERS],VehicleID;
VehicleID = id[playerid];
DestroyVehicle(Veh[VehicleID]);
Veh[VehicleID] = CreateVehicle(583, -1547.6190,-442.2964,9.0000, 0.0000, -1, -1, 100);
PutPlayerInVehicle(playerid, Veh[VehicleID], 0);