23.03.2012, 03:09
use this function
then do something like this
you must define the vehid yourself
pawn Code:
stock VehicleOccupied(vehicleid)
{
for(new i=0;i<MAX_PLAYERS;i++)
{
if(IsPlayerInVehicle(i,vehicleid)) return 1;
}
return 0;
}
pawn Code:
if(!VehicleOccupied(vehid))
{
//your code respawn here
}