SA-MP Forums Archive
3dtext label question. - 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: 3dtext label question. (/showthread.php?tid=381441)



3dtext label question. - DeeCaay - 29.09.2012

Is there a way to delete all labels in the server?


Re: 3dtext label question. - Mr.Anonymous - 29.09.2012

Need more information.


Re: 3dtext label question. - necrobg3 - 29.09.2012

So, to destroy a text label the way is this.

pawn Код:
new Text3D:label1;
Delete3DTextLabel(Text3D:label1);



Re: 3dtext label question. - Necro[ABK] - 29.09.2012

Код:

//deletes all player 3dtext labels
for(new i=0; i<MAX_PLAYERS; i++){
    for(new j=0; j<1024; j++){
        DeletePlayer3DTextLabel(i, j);
    }
}

//deletes all 3dtext labels
for(new i=0; i<1024; i++){
    Delete3DTextLabel(i);
}
not sure if you will get errors if you delete textlabels that dont exist but there ya go