I need perfect respawn time
#1

Hi,
Short introduction
-Experiencing problem with car respawn delay
-All cars are standardised in my server
-I spawn all cars from my db in GameModeInit

*Using AddStaticVehicleEx with spawn_delay at -1 on every cars
Seems to work pretty good except for a Skimmer(460) that respawn after less then 10 sec...(only occasion found and there's just one skimmer in my server)

*Using AddStaticVehicle (I guess it uses default vehicles respawn delays)
After fast overall look, normal vehicle seem not to respawn fast, but skimmer keeps the same problem and trailer are respawning too...

I'd want a way to make all my vehicle never respawn to be able to handle it all...

Excuse bad spelling please I'm from Quebec.

Thanks for replies
Reply
#2

pawn Код:
new bool:vdead[MAX_VEHICLES];

public OnVehicleDeath(vehicleid,killerid)
{
    vdead[vehicleid] = true;
    return 1;
}

public OnVehicleSpawn(vehicleid)
{
    if(vdead[vehicleid] == true)
    [
        DestroyVehicle(vehicleid);
        vdead[vehicleid] = false;
    }
    return 1;
}
Reply
#3

What I meant is How do I make the Skimmer have the same spawn delay then others, this probem look weird to me..

thanks for answer
Reply
#4

DELETED, reason: wrong theardt
Reply
#5

You mean add the skimmer plain and make it respawn when it will destroy? If so, add a static vehicle in ongamemodeinit like

AddStaticVehicleEx(balbalbal)

or CreateVehicle and at the end is the respawn delay in ms.
Reply
#6

Quote:
Originally Posted by Anthony_prince
Посмотреть сообщение
add a static vehicle in ongamemodeinit like

AddStaticVehicleEx(balbalbal)
This is exactly like it's done,, all cars pass the "while" with the AddStaticVehicleEx(balbalbal)

thanks
Reply
#7

Bump
Reply
#8

Boats are not experiencing this problem,, i don't know if it applies
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)