Incognitos Streamer Plugin v2.5.1 problem
#1

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.
Reply
#2

Freeze the players right after teleporting them, and unfreeze them a few seconds later.
Reply
#3

You could also use Streamer_UpdateEx at the position where you map is before you teleport the player
Reply
#4

thx for ur answer.
Shall i use TogglePlayerControllable with a timer?

@ fredde: what do u mean?
and how to do that
Reply
#5

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...
Reply
#6

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
Reply
#7

pawn Код:
public SafeSetPlayerPos(playerid, Float:x, Float:y, Float:z)
{
    SetPlayerPos(playerid, x,y,z);
    Streamer_UpdateEx(playerid,x,y,z);
    return 1;
}
Reply
#8

do i have to set a new function to update the streamer?
Reply
#9

no just use that function for all setplayerpos's near objects
Reply
#10

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)