SA-MP Forums Archive
Create3dTextLabel to All CheckPoints? - 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: Create3dTextLabel to All CheckPoints? (/showthread.php?tid=605573)



Create3dTextLabel to All CheckPoints? - PrednizoN - 21.04.2016

I want to created all cp to 3dtextlabel.How to make?

This code set in the midst cp to map icon;

Код:
SetPlayerMapIcon(playerid, i, Areas[i][cpX], Areas[i][cpY], Areas[i][cpZ], 19, -1, MAPICON_LOCAL);
existing defined;

Код:
 Areas[areaid][aName]);



Re: Create3dTextLabel to All CheckPoints? - Gammix - 21.04.2016

Create3DTextLabel


Re: Create3dTextLabel to All CheckPoints? - PrednizoN - 21.04.2016

Quote:
Originally Posted by Gammix
Посмотреть сообщение
No you dont understand me.

i need this code but my write value

Код:
format(tmp, sizeof(tmp), "{FF9900}Durum:{00FF00} Satılmadı (%d)\n{FF9900}Fiyat: {FFFFFF}$%d\n", houseid, house[houseid][cost]);
				house[houseid][label] = Create3DTextLabel(tmp, COLOR_3D_BRIGHTGREEN, house[houseid][OUT_X], house[houseid][OUT_Y], house[houseid][OUT_Z], 40.0, 0, 1);



Re: Create3dTextLabel to All CheckPoints? - PrednizoN - 22.04.2016

up++


Re: Create3dTextLabel to All CheckPoints? - colonel-top - 22.04.2016

PHP код:
#define MAX_HOUSE 100 // You can change value of MAX of House
for (new MAX_HOUSE i++)
{
    
format(tmpsizeof(tmp), "{FF9900}Durum:{00FF00} Sat?lmad? (%d)\n{FF9900}Fiyat: {FFFFFF}$%d\n"ihouse[i][cost]);
    
house[i][label] = Create3DTextLabel(tmpCOLOR_3D_BRIGHTGREENhouse[i][OUT_X], house[i][OUT_Y], house[i][OUT_Z], 40.001);

Use Loop then , and if you must load or read ini files for value in array [OUT_X] Y and Z

This just sample hint so adapt to your scripts then