#2

copy and paste this and then you only need a command with RespawnEmptyCars(); in it

Код:
RespawnEmptyCars();
public RespawnEmptyCars()
{
for(new i=0; i<MAX_VEHICLES; i++)
{
for(new pl = 0; pl<MAX_PLAYERS; pl++)
{
if(IsPlayerConnected(pl))
{
if(!IsVehicleInUse(i))//if(!IsPlayerInVehicle(pl, i))
{
SetVehicleToRespawn(i);
}
}
}
}
}
stock IsVehicleInUse(vehicleid)
{
    for(new i=0; i<GetMaxPlayers(); i++)
    {
        if(IsPlayerConnected(i))
        {
            if(GetPlayerVehicleID(i) == vehicleid)
            return true;
        }
    }
    return false;
}
Reply


Messages In This Thread
help - by dark_clown - 24.10.2010, 17:33
Re: help - by boelie - 24.10.2010, 17:36
Re: help - by dark_clown - 24.10.2010, 18:04
Re: help - by DeathOnaStick - 24.10.2010, 18:22

Forum Jump:


Users browsing this thread: 1 Guest(s)