car respawn help
#1

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
Reply
#2

bump anyone?
Reply
#3

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);
}
Reply
#4

AddStaticVehicleEx

yes i use that and i have a vehicle folder that spawns all cars so yeah
Reply
#5

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;
}

}

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)