27.07.2012, 19:29
Is that what I told you? Re-read my post carefully please.
Well change
to
and change
to
And notice that it will only destroy the old spawned vehicle if the player is in it (while spawning a new one).
Well change
pawn Код:
new pTempVeh[MAX_VEHICLES];
pawn Код:
new pTempVeh[MAX_PLAYERS];
pawn Код:
if(GetPlayerVehicleID(playerid) == Veh[playerid])
DestroyVehicle(Veh[playerid]);
Veh[playerid] = CreateVehicle(597, -1622.4440,651.8917,10.1875, 0.0000, -1, -1, 100);
PutPlayerInVehicle(playerid, Veh[playerid], 0);
pawn Код:
if(GetPlayerVehicleID(playerid) == pTempVeh[playerid])
DestroyVehicle(pTempVeh[playerid]);
pTempVeh[playerid] = CreateVehicle(597, -1622.4440,651.8917,10.1875, 0.0000, -1, -1, 100);
PutPlayerInVehicle(playerid, pTempVeh[playerid], 0);