[HOWTO]Create a Simple command with 3dtext - 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: [HOWTO]Create a Simple command with 3dtext (
/showthread.php?tid=139461)
[HOWTO]Create a Simple command with 3dtext -
campkz - 05.04.2010
Code:
-Ok Thanks !Vampire for the erm, 3d text.-
ok for example.
Code:
if(strcmp(cmd, "/COMMANDNAME", true) == 0)
{
Should be the starter of your command.
add this underneath the bracket // for thoes who don't know its a '}'
Code:
label1[playerid] = Create3DTextLabel("Testical",0x008080FF,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(label1[playerid], playerid, 0.0, 0.0, 0.7);
change 00x008080FF to a Hex Color.
and 'Testical' to anything u want it to say!
Credits:
60% Nightmare
40% me
Re: [HOWTO]Create a Simple command with 3dtext -
Lorenc_ - 11.04.2010
Nice
Re: [HOWTO]Create a Simple command with 3dtext -
Dark_Kostas - 11.04.2010
You forgot to say that you need a label1[MAX_PLAYERS] in the top of your script. Also its better to use PVars.
pawn Code:
SetPVarInt(playerid, "PlayerLabel", _:Create3DTextLabel("Test",0x008080FF,30.0,40.0,50.0,40.0,0));
Attach3DTextLabelToPlayer(Text3D:GetPVarInt(playerid, "PlayerLabel"), playerid, 0.0, 0.0, 0.7);