Words on top of icons? - 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: Words on top of icons? (
/showthread.php?tid=363899)
Words on top of icons? -
ShawtyyMacJunior - 29.07.2012
Ive seen servers that have like for example /deposit or /withdraw as words on top of a money icon. how can i do that?
Re: Words on top of icons? -
milanosie - 29.07.2012
pawn Код:
native Create3DTextLabel(text[], color, Float:X, Float:Y, Float:Z, Float:DrawDistance, virtualworld, testLOS)
/*
text[] The initial text string.
color The text Color
x X-Coordinate
y Y-Coordinate
z Z-Coordinate
DrawDistance The distance from where you are able to see the 3D Text Label
VirtualWorld The virtual world in which you are able to see the 3D Text
testLOS 0/1 Test the line-of-sight so this text can't be seen through objects
Important Note: If text[] is empty, the server/clients next to the text might crash!
Note: Use color embedding for multiple colors in the text.
*/
Example
pawn Код:
public OnGameModeInit()
{
Create3DTextLabel("Peter is awesome", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0, 0);
return 1;
}