[HOWTO]Create a Simple command with 3dtext
#1

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
Reply
#2

Nice
Reply
#3

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);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)