how to destroy neons at vehicle death? not working..., also how to make destroyvehicle unoccupied..
#3

do i have to do ongamemodeinitlastcarid at ALL the cars in ongamemode init? or just the last one?
EDIT: i now have this, but how to check if there is NOONE in teh car?
pawn Код:
public OnVehicleSpawn(vehicleid)
{
    if(vehicleid > OnGameModeInitLastCarID)
    {
        for (new i = 0; i != MAX_PLAYERS; ++i)
        {
            if(vehicleid != newcar[i])
            {
                DestroyVehicle(vehicleid);
                return 1;
            }
        }
    }
    return 1;
}
or does it automatically checks that?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)