PDA

View Full Version : can you Streamer_Update(playerid); every 2 seconds?


[EDT]AmanSingh123
02/09/2011, 06:19 PM
Hi..

just thought that if you can Streamer_Update(playerid); or either Streamer_UpdateEx(playerid, Float:x, Float:y, Float:z); like every 2 or 3 seconds even if your in a vehicle... it might resolve the invisible object bug and you wont need to get out of your car and in everytime to load the objects.....

...so can anybody help me? and is this possible?

rbN.
02/09/2011, 06:21 PM
invisible object bug is fixable by setting the interior of you and your vehicle to an other one for a few seconds.. (like 3)..

Make a command for that, or if the normal map is not needed, you don't need a command :P

[EDT]AmanSingh123
02/09/2011, 06:26 PM
im not good with timer's so could you help me out?

i know ill be using SetPlayerInterior(playerid, 0) and LinkVehicleToInterior(vehicle1, 0); but i dont know how to make that happen like every 3 seconds and also by setting the players interior to a diffrent one every time wouldnt that make that player like flicker for other players?

rbN.
02/09/2011, 06:48 PM
It's kinda easy, didn't explain it well maybe D:

For a command, you only have to put his interior to another one ONCE.
If you don't need the normal SA map, you don't need to change back the interior after a few seconds. You don't need to change it, just put his interior to an other one..

[EDT]AmanSingh123
02/09/2011, 06:52 PM
but i want the sa map aswell.... and are you like saying to set his interior on the teleport command?..

[EDT]AmanSingh123
02/09/2011, 07:05 PM
well wouldnt i like do this? :-

top of script
forward objectreload();

ongamemodeinit
SetTimer("objectreload", 3000, false);

some where
public objectreload()
{
........
}



but i dont know how to put the interior thing in that public :/