SA-MP Forums Archive
CreateDynamicCP randomly disappearing? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: CreateDynamicCP randomly disappearing? (/showthread.php?tid=644887)



CreateDynamicCP randomly disappearing? - Dan. - 15.11.2017

I have this weird problem, where only 1 checkpoint is shown at a time and the others disappear.

This is the code (in a loop OnGamemodeInit):

Код:
CreateDynamicCP(portalPositions[i][0], portalPositions[i][1], portalPositions[i][2], 1.5, -1, -1, -1, 400.0);
And the issue (GIF): https://gyazo.com/9b08ef52fff42d85358172feae0f8e8c

What am I missing here? Why are they flickering and not showing at the same time?


Re: CreateDynamicCP randomly disappearing? - ThePhenix - 16.11.2017

As far as I'm concerned a player can only see one checkpoint at a time using streamer. I don't know if you could use the function:

Код:
Streamer_SetVisibleItems(type, items, playerid = -1);
Perhaps, that function could increase the number of checkpoints a player can see at a time, I'm unsure if it would work though.


Re: CreateDynamicCP randomly disappearing? - Dan. - 16.11.2017

Quote:
Originally Posted by ThePhenix
Посмотреть сообщение
As far as I'm concerned a player can only see one checkpoint at a time using streamer. I don't know if you could use the function:

Код:
Streamer_SetVisibleItems(type, items, playerid = -1);
Perhaps, that function could increase the number of checkpoints a player can see at a time, I'm unsure if it would work though.
Youґre right, unfortunately that native cannot be used with CPs. I guess Iґll have to figure out another way. Thanks.