30.09.2010, 17:31
Hello, However there is a lesson here, but I will put
Lesson
3DTextLabel
Welcome to all visitors to the SA-MP.COM
I would like to teach you this lesson on how to use the 3DTextLabeliai's
I ask you-What's 3DTextLableli? In my opinion this is a good thing for SA MP'e, it may be best to clarify for yourself Well netemsiu rubber and get started.
Easy stuff about 3D https://sampwiki.blast.hk/wiki/Create3DTextLabel
1.Susirandame OnGameModeInit callback'ą, and put the
Explanation:
Write your text, select the text
Color-color to color the text in your
XYZ coordinates of the location will be 3DTextLabeli's
D-distance vision during which indicates 3DTekstas
Seeing through the S-I 0 I put this as a major world
Everything looks like this:
http://www.part.lt/perziura/b566c0c5...5ee1e88513.jpg
__________________________________________________ _________________________________________
Now, how do pardodysiu 3DTextLabelį separately kėkvienam player.
Find a OnPlayerConnect callback'ą, and write: [code] CreatePlayer3DTextLabel (player id, 3D text, color, x coord, y coord, z coord, distance vision, placed the player id masinos placed the idea, seeing through walls) [/ code]
Everything is pretty much the same
1.Reikės the player ID
2.Ћaidėjo ID which will be adhered to, and the machine ID
All we can do just by writing playerid
3.Vietoje placed the player ID and record ID adhered masinos INVALID_PLAYER_ID and "INVALID_VEHICLE_ID
It looks like the following code:
__________________________________________________ _________________________________________
Well now I will show how to make 3DTextLabeliu's on the player and the machine-and Attach3DTextLabelToPlayer Attach3DTextLabelToVehicle
Instead, the player ID, we write 0, because I want the text to the player.
now, after write-OnGameModeInit [code] new Text3D: Your text, [/ code] And apačioj:
Now as a player has advanced, the coordinates will change automatically
Yes, the machine is placed on 3DTextLabelį.
[code] Attach3DTextLabelToVehicle (Text3D: id Transp. Means id x coord, y coord, z coord) [/ code]
3DTextlabeli's will be attached to the machine:
[Code]
Public OnGameModeInit ()
(
Elegy CreateVehicle = (562, -1497.1793,587.8677,41.8775,304.3730,3,3,8000);
Create3DTextLabel text = ('Your text' RED -1979.6682, 137.5554, 27.6875, 80, 0, 1);
Attach3DTextLabelToVehicle (Text3D Text, Elegy, -1530.2866, 482.1916, 11.0);
return 1;
) [/ Code]
Thanks
Ћilvėnas
Lesson
3DTextLabel
Welcome to all visitors to the SA-MP.COM
I would like to teach you this lesson on how to use the 3DTextLabeliai's
I ask you-What's 3DTextLableli? In my opinion this is a good thing for SA MP'e, it may be best to clarify for yourself Well netemsiu rubber and get started.
Easy stuff about 3D https://sampwiki.blast.hk/wiki/Create3DTextLabel
1.Susirandame OnGameModeInit callback'ą, and put the
Код:
Create3DTextLabel ("your text, color, x coord, y coord, z coord, distance vision, virtual world, seeing through walls)
Write your text, select the text
Color-color to color the text in your
XYZ coordinates of the location will be 3DTextLabeli's
D-distance vision during which indicates 3DTekstas
Seeing through the S-I 0 I put this as a major world
Everything looks like this:
Код:
public OnGameModeInit () ( Create3DTextLabel ("Your text", RED, -1979.6682, 137.5554, 27.6875, 80, 0, 1); return 1;
__________________________________________________ _________________________________________
Now, how do pardodysiu 3DTextLabelį separately kėkvienam player.
Find a OnPlayerConnect callback'ą, and write: [code] CreatePlayer3DTextLabel (player id, 3D text, color, x coord, y coord, z coord, distance vision, placed the player id masinos placed the idea, seeing through walls) [/ code]
Everything is pretty much the same
1.Reikės the player ID
2.Ћaidėjo ID which will be adhered to, and the machine ID
All we can do just by writing playerid
3.Vietoje placed the player ID and record ID adhered masinos INVALID_PLAYER_ID and "INVALID_VEHICLE_ID
It looks like the following code:
Код:
public OnPlayerConnect (playerid) ( CreatePlayer3DTextLabel (playerid, "Text", RED, -1979.6682, 137.5554, 27.6875, 11.0, 50, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1); return 1; )
Well now I will show how to make 3DTextLabeliu's on the player and the machine-and Attach3DTextLabelToPlayer Attach3DTextLabelToVehicle
Код:
Attach3DTextLabelToPlayer (Text3D: id, player id, x coord, y coord, z coord)
now, after write-OnGameModeInit [code] new Text3D: Your text, [/ code] And apačioj:
Код:
public OnGameModeInit () ( Attach3DTextLabelToPlayer (Text3D: Text, 0, -1979.6682, 137.5554, 11.0); return 1; )
Yes, the machine is placed on 3DTextLabelį.
[code] Attach3DTextLabelToVehicle (Text3D: id Transp. Means id x coord, y coord, z coord) [/ code]
3DTextlabeli's will be attached to the machine:
Код:
new Text3D: Text; Elegy new,
Public OnGameModeInit ()
(
Elegy CreateVehicle = (562, -1497.1793,587.8677,41.8775,304.3730,3,3,8000);
Create3DTextLabel text = ('Your text' RED -1979.6682, 137.5554, 27.6875, 80, 0, 1);
Attach3DTextLabelToVehicle (Text3D Text, Elegy, -1530.2866, 482.1916, 11.0);
return 1;
) [/ Code]
Thanks
Ћilvėnas