Car Respawn. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Car Respawn. (
/showthread.php?tid=395972)
Car Respawn. -
Biess - 28.11.2012
Hello there.
Can someone make me a Automatic Car Respawner for cars that have been driven?
I use ZCMD
Re: Car Respawn. -
ReVo_ - 28.11.2012
new bool:iVUsed[MAX_VEHICLES] = {false, ...};
OnPlayerStateChange
if (newstate == PLAYER_STATE_DRIVER)
iVUsed[GetPlayerVehicleID(playerid)] = true;
In the command:
for (new i = 0; i < MAX_VEHICLES; i++)
if (iVUsed[i])
SetVehicleToRespawn(i), iVUsed[i] = false;