Vehicle Respawn
#8

use this function

pawn Code:
stock VehicleOccupied(vehicleid)
{
    for(new i=0;i<MAX_PLAYERS;i++)
    {
        if(IsPlayerInVehicle(i,vehicleid)) return 1;
    }
    return 0;
}
then do something like this

pawn Code:
if(!VehicleOccupied(vehid))
{
//your code respawn here
}
you must define the vehid yourself
Reply


Messages In This Thread
Vehicle Respawn - by Tanush123 - 05.03.2012, 02:05
Re: Vehicle Respawn - by 2KY - 05.03.2012, 02:18
Re: Vehicle Respawn - by Tanush123 - 12.03.2012, 13:18
Re: Vehicle Respawn - by Tanush123 - 15.03.2012, 20:43
Re: Vehicle Respawn - by new121 - 15.03.2012, 20:53
Re: Vehicle Respawn - by Tanush123 - 15.03.2012, 23:02
Re: Vehicle Respawn - by Tanush123 - 23.03.2012, 03:07
Re: Vehicle Respawn - by Reklez - 23.03.2012, 03:09
Re: Vehicle Respawn - by new121 - 23.03.2012, 03:30

Forum Jump:


Users browsing this thread: 1 Guest(s)