Stream custom object in vehicle
#2

You have to set the player's interior and then change it back:

pawn Код:
stock FixInvisibleObjects(playerid, interval=500)
{
    new int = GetPlayerInterior(playerid);
    SetPlayerInterior(playerid, int+1);
    LinkVehicleToInterior(GetPlayerVehicleID(playerid), int+1);
    SetTimerEx("TIMER_FixInvisibleObjects", interval, 0, "ii", playerid, int);
    return 1;
}

forward TIMER_FixInvisibleObjects(playerid, int);
public TIMER_FixInvisibleObjects(playerid, int)
{
    SetPlayerInterior(playerid, int);
    if(GetPlayerState(playerid) == 2) LinkVehicleToInterior(GetPlayerVehicleID(playerid), int);
    return 1;
}
NOTE: Not tested.
Reply


Messages In This Thread
Stream custom object in vehicle - by Eloctro - 05.05.2012, 21:35
Re: Stream custom object in vehicle - by MP2 - 05.05.2012, 23:23
Re : Stream custom object in vehicle - by Eloctro - 06.05.2012, 11:04
Re : Stream custom object in vehicle - by Eloctro - 06.05.2012, 11:21
Re: Stream custom object in vehicle - by Lorenc_ - 06.05.2012, 11:29
Re: Stream custom object in vehicle - by MP2 - 06.05.2012, 11:44
Re : Stream custom object in vehicle - by Eloctro - 06.05.2012, 11:44
Re: Stream custom object in vehicle - by leong124 - 06.05.2012, 12:42

Forum Jump:


Users browsing this thread: 1 Guest(s)