{$CLEO .cs}
0B34: samp register_client_command "AddText" to_label @activate
30@ = 0
:MAIN
wait 0
if
30@ == true
jf @MAIN
if
0B46: samp 3d_text 20@ defined
goto [member=5120]Error[/member]
Actor.StorePos($PLAYER_ACTOR, 4@, 5@, 6@)
0B44: 20@ = samp create_3d_text 2@ color 0xFFFF00FF position 4@ 5@ 6@ view_distance 50.0 show_behind_walls 1 attached_to_player -1 attached_to_vehicle -1
30@ = false
SAMP.CmdRet
goto @MAIN
:activate
wait 0
SAMP.IsCommandTyped(0@)
if
0AD4: 1@ = scan_string 0@ format "%d" 2@
jf @usage
if
0B46: samp 3d_text 20@ defined
jf [member=5120]Error[/member]
0AF8: samp add_message_to_chat "Info: The set tag in your position." color 0xFFFFFF
30@ = true
SAMP.CmdRet
goto @MAIN
:usage
wait 0
0AF8: samp add_message_to_chat "Usage: /AddText <Text>" color 0xFFFFFF
SAMP.CmdRet
goto @MAIN
:Error
0AF8: samp add_message_to_chat "Error: ..." color 0xFFFFFF
SAMP.CmdRet
goto @MAIN