How to destroy Text3D without a handle. - 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: How to destroy Text3D without a handle. (
/showthread.php?tid=559406)
How to destroy Text3D without a handle. -
ikey07 - 23.01.2015
Alright, so I need some advice, how to make a loop to go through all visible streamed Text3D labels by using:
Streamer_IsItemVisible()
for objects its pretty straight forward:
pawn Код:
for(new i; i < 1000; i++)
{
new id = Streamer_GetItemStreamerID(playerid,0,i);
if(Streamer_IsItemVisible(playerid,0,id))
{
//..
}
}
How to make the same for Text3D, in basic I need to destroy all visible Text3D labels for 1 player permanently.
Streamer_DestroyAllVsibleItems(playerid,5); destroys them, but on next update aka player move, labels are back.