car respawn help - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: car respawn help (
/showthread.php?tid=253362)
car respawn help -
Coles - 06.05.2011
OK when i get out of my car that i got from the side of the road or spawned it, it will re spawn once i get in it and hop out and im out of the car for like 30 seconds
how can i make it so it does not re spawn them and how can i made a command that only admins can re spawn all cars
Re: car respawn help -
Coles - 06.05.2011
bump anyone?
Re: car respawn help -
Vince - 06.05.2011
Did you use AddStaticVehicleEx? If so, change the last parameter (most likely set to 30) to 1800 (half an hour) or so.
Use this to respawn vehicles:
pawn Код:
for(new v; v < MAX_VEHICLES; ++v)
{
SetVehicleToRespawn(v);
}
Re: car respawn help -
Coles - 06.05.2011
AddStaticVehicleEx
yes i use that and i have a vehicle folder that spawns all cars so yeah
Re: car respawn help -
Coles - 06.05.2011
well i just made this and changed time
Quote:
if(!strcmp(cmdtext, "/respawncar", true))
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)//< must be driver
{
SetVehicleToRespawn(GetPlayerVehicleID(playerid));
LinkVehicleToInterior(GetPlayerVehicleID(playerid) , 0);
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_GREY, "Vehicle Successfully Fuckin Respawned");
return 1;
}
}
|