Respawning allcars
#2

Can you please show the function RespawnNearbyVehicles?

You can use this stock when you loop through all the vehicles to respawn them.

pawn Код:
stock IsVehicleOccupied(vehicleid)
{
    for(new i = 0; i < MAX_VEHICLES; i++)
    {
        if(IsPlayerInAnyVehicle(i))
        {
            if(GetPlayerVehicleID(i) == vehicleid) return 1;
            else return 0;
        }
    }
}
Reply


Messages In This Thread
Respawning allcars - by LonMihawk - 19.06.2013, 01:03
Re: Respawning allcars - by Kindred - 19.06.2013, 01:08

Forum Jump:


Users browsing this thread: 1 Guest(s)