Incognitos Streamer Plugin v2.5.1 problem -
BlackWolf120 - 17.12.2010
hi,
im using Incognitos Streamer Plugin v2.5.1.
Ive got a minigame server and after a certain time the round and the map changes.
The maps are all self mapped and not far away from the los santos city.
But nearly everytime it takes too long to stream the objects of a map.
So the first time the players spawn on the new map, they fall trought the map, because its not there yet.
But right after the map elemets appear. It just takes too long.
Can someone tell me how to solve this problem?
Shall i use another streamer or just configure the plugin somehow?
Pls help me
regards.
Re: Incognitos Streamer Plugin v2.5.1 problem -
bigcomfycouch - 17.12.2010
Freeze the players right after teleporting them, and unfreeze them a few seconds later.
Re: Incognitos Streamer Plugin v2.5.1 problem -
Fj0rtizFredde - 17.12.2010
You could also use Streamer_UpdateEx at the position where you map is before you teleport the player
Re: Incognitos Streamer Plugin v2.5.1 problem -
BlackWolf120 - 17.12.2010
thx for ur answer.
Shall i use TogglePlayerControllable with a timer?
@ fredde: what do u mean?
and how to do that
Re: Incognitos Streamer Plugin v2.5.1 problem -
Fj0rtizFredde - 17.12.2010
Quote:
Originally Posted by BlackWolf120
@ fredde: what do u mean?
and how to do that 
|
You put something like this:
pawn Код:
//Your teleport cmd or whatever you use:
Streamer_UpdateEx(playerid,X,Y,Z); //Change x,y,z to the coords you use when you teleport the player
SetPlayerPos(playerid,X,Y,Z);
//etc...
Re: Incognitos Streamer Plugin v2.5.1 problem -
BlackWolf120 - 17.12.2010
hi,
thx for the answer, but one question is left

Do i have to update the streamer for every player?
pawn Код:
//e.g.:
//player1
SetPlayerPos(x1,y1,z1);
Streamer_UpdateEx(playerid,x1,y1,z1);
//player2
SetPlayerPos(x2,y2,z2);
Streamer_UpdateEx(playerid,x2,y2,z2);
//player3
SetPlayerPos(x3,y3,z3);
Streamer_UpdateEx(playerid,x3,y3,z3);
regards.
//edit: can u use this function also with cars
Re: Incognitos Streamer Plugin v2.5.1 problem -
The_Gangstas - 17.12.2010
pawn Код:
public SafeSetPlayerPos(playerid, Float:x, Float:y, Float:z)
{
SetPlayerPos(playerid, x,y,z);
Streamer_UpdateEx(playerid,x,y,z);
return 1;
}
Re: Incognitos Streamer Plugin v2.5.1 problem -
BlackWolf120 - 17.12.2010
do i have to set a new function to update the streamer?
Re: Incognitos Streamer Plugin v2.5.1 problem -
The_Gangstas - 17.12.2010
no just use that function for all setplayerpos's near objects
Re: Incognitos Streamer Plugin v2.5.1 problem -
HyperZ - 19.12.2010
Quote:
Originally Posted by The_Gangstas
pawn Код:
public SafeSetPlayerPos(playerid, Float:x, Float:y, Float:z) { SetPlayerPos(playerid, x,y,z); Streamer_UpdateEx(playerid,x,y,z); return 1; }
|
How about this?
pawn Код:
stock SafeSetPlayerPos(playerid, Float:x, Float:y, Float:z)
{
SetPlayerPos(playerid, x,y,z);
Streamer_UpdateEx(playerid,x,y,z);
return 1;
}