SA-MP Forums Archive
Vehicle 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: Vehicle respawn (/showthread.php?tid=391358)



Vehicle respawn - FalconWingsX - 10.11.2012

Hi,

I am trying to look a way to set my Police vehicles to Respawn, it uses an IsLeovehicle variable

Код:
    if(!strcmp(params, "sheriff", true))
    {
	if(IsLeoVehicle(vehid))
	SetVehicleToRespawn(IsLeoVehicle(vehid));
	format(string, sizeof(string), ">>> ADMIN OVERRIDE %s has respawned all Sheriffs department vehicles!");
	SendClientMessageToAll(COLOR_LIGHTRED, string);
	return 1;
	}