How can I attach a 3D text to a pickup? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How can I attach a 3D text to a pickup? (
/showthread.php?tid=172525)
How can I attach a 3D text to a pickup? -
nuriel8833 - 30.08.2010
Is it possible?
Re: How can I attach a 3D text to a pickup? -
Yamoo - 30.08.2010
Yes it's possible, i will write an example out in my free time for you, if you would like.
Re: How can I attach a 3D text to a pickup? -
nuriel8833 - 30.08.2010
Quote:
Originally Posted by Yamoo
Yes it's possible, i will write an example out in my free time for you, if you would like.
|
Yes I would like one if you dont mind =)
Re: How can I attach a 3D text to a pickup? -
Yamoo - 30.08.2010
Here is a small example which you should get a drift from -
Код:
if(HouseInfo[h][hOwned] == 0)
{
Create3DTextLabel("[Property]",0x00AE00FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.75,20.0,0,1);
HouseInfo[h][hPickupID]=CreatePickup(1239, 1, HouseInfo[h]
}
Re: How can I attach a 3D text to a pickup? -
CAR - 30.08.2010
I made a function:
pawn Код:
stock CreatePickupWith3DText(model, type, Float:X, Float:Y, Float:Z, Virtualworld, text[], color)
{
CreatePickup(model, type, Float:X, Float:Y, Float:Z, Virtualworld);
Create3DTextLabel(text[], color, Float:X, Float:Y, Float:Z+0.75, 0, Virtualworld, 1);
return 1;
}
Re: How can I attach a 3D text to a pickup? -
nuriel8833 - 31.08.2010
Quote:
Originally Posted by Yamoo
Here is a small example which you should get a drift from -
Код:
if(HouseInfo[h][hOwned] == 0)
{
Create3DTextLabel("[Property]",0x00AE00FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.75,20.0,0,1);
HouseInfo[h][hPickupID]=CreatePickup(1239, 1, HouseInfo[h]
}
|
Thanks!
Quote:
Originally Posted by CAR
I made a function:
pawn Код:
stock CreatePickupWith3DText(model, type, Float:X, Float:Y, Float:Z, Virtualworld, text[], color) { CreatePickup(model, type, Float:X, Float:Y, Float:Z, Virtualworld); Create3DTextLabel(text[], color, Float:X, Float:Y, Float:Z+0.75, 0, Virtualworld, 1); return 1; }
|
Good function but I prefer to use the function that the person above you gave me.
Thank you all!!!