Stock function.
#9

pawn Код:
stock GetEmptySeat(vehicleid)
{
    new bool:taken[4], Model = GetVehicleModel(vehicleid);
    foreach(Player, i)
    {
        if(IsPlayerInVehicle(i, vehicleid))
        {
            for(new j = 0; j < VehicleSeats[Model-400]; j++)
            {
                if(GetPlayerVehicleSeat(i) == j) Taken[j] = true;
            }
            for(new k = 0; k < sizeof(Taken); k++)
            {
                if(Taken[k] == false) return 0;
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
Stock function. - by SpankMe2 - 18.01.2012, 22:05
Re: Stock function. - by Psymetrix - 18.01.2012, 22:18
Re: Stock function. - by SpankMe2 - 18.01.2012, 22:34
Re: Stock function. - by SpankMe2 - 18.01.2012, 22:38
Re: Stock function. - by SpankMe2 - 19.01.2012, 16:42
Re: Stock function. - by milanosie - 19.01.2012, 16:48
Re: Stock function. - by [ABK]Antonio - 19.01.2012, 17:55
Re: Stock function. - by SpankMe2 - 19.01.2012, 21:57
Respuesta: Stock function. - by OPremium - 19.01.2012, 22:10
Re: Stock function. - by Jefff - 19.01.2012, 22:37

Forum Jump:


Users browsing this thread: 1 Guest(s)