RespawnAllCars
#1

pawn Код:
dcmd_rac(playerid,params[])
{
    #pragma unused params
    if(PlayerInfo[playerid][Level] >= 3 || IsPlayerAdmin(playerid))
    {
        for(new i = 0; i < MAX_VEHICLES; i++)
        {
            if(!IsVehicleOccupied(i)) return 0;
            SetVehicleToRespawn(i);
        }
    }
    return 1;
}
My IsVehicleOccupied stock
pawn Код:
stock IsVehicleOccupied(vehicleid)
{
    for(new i =0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerInVehicle(i,vehicleid))
        {
            return 1;
        }
    }
    return 0;
}
It returns 0 ingame. Any assistance please?

**Compiles fine.
Reply


Messages In This Thread
RespawnAllCars - by C00K13M0N$73R - 07.09.2012, 17:29
Re: RespawnAllCars - by Windrush - 07.09.2012, 18:09
Re: RespawnAllCars - by mobiliz - 07.09.2012, 18:12

Forum Jump:


Users browsing this thread: 2 Guest(s)