CLEO Help Help With Opcode

CLEO related

Exploder

Member
Joined
Apr 26, 2020
Messages
7
Reaction score
0
Location
China
So , like the title , how to use
Code:
0C45: samp create_3d_text id 1337 text "SAMPFUNCS" color 2@ position 3@ 4@ 5@ view_distance 6@ show_behind_walls 7@ attached_to_player -1 attached_to_vehicle -1
to create a 3dtext at a position I want? like create it at 383.45 -2090.80 7.84 text "Oops" color red
help me guys lol
 
Solution
ALT + 1.
PHP:
{$CLEO .cs}
{$USE bitwise}
{$USE sampfuncs}
0000:

WHILE TRUE
WAIT 0

IF AND
0AB0:   key_pressed 18 {ALT}
0AB0:   key_pressed 49 {1}
THEN
    0B12: 30@ = 30@ XOR 1        
    IF 0039:   30@ == 1
    THEN 0C45: samp create_3d_text id 1337 text "{FF0000}Oops" color -1 position 383.45 -2090.80 7.84 view_distance 30.0 show_behind_walls true attached_to_player -1 attached_to_vehicle -1
    ELSE 0B45: samp destroy_3d_text 1337    
    END
    WAIT 137
END

END
0A93: end_custom_thread
eVmf4Pw.png

dphome

Well-known member
Joined
Mar 21, 2020
Messages
475
Solutions
9
Reaction score
168
Location
Poland
ALT + 1.
PHP:
{$CLEO .cs}
{$USE bitwise}
{$USE sampfuncs}
0000:

WHILE TRUE
WAIT 0

IF AND
0AB0:   key_pressed 18 {ALT}
0AB0:   key_pressed 49 {1}
THEN
    0B12: 30@ = 30@ XOR 1        
    IF 0039:   30@ == 1
    THEN 0C45: samp create_3d_text id 1337 text "{FF0000}Oops" color -1 position 383.45 -2090.80 7.84 view_distance 30.0 show_behind_walls true attached_to_player -1 attached_to_vehicle -1
    ELSE 0B45: samp destroy_3d_text 1337    
    END
    WAIT 137
END

END
0A93: end_custom_thread
eVmf4Pw.png
 
Solution

Exploder

Member
Joined
Apr 26, 2020
Messages
7
Reaction score
0
Location
China
ALT + 1.
PHP:
{$CLEO .cs}
{$USE bitwise}
{$USE sampfuncs}
0000:

WHILE TRUE
WAIT 0

IF AND
0AB0:   key_pressed 18 {ALT}
0AB0:   key_pressed 49 {1}
THEN
    0B12: 30@ = 30@ XOR 1       
    IF 0039:   30@ == 1
    THEN 0C45: samp create_3d_text id 1337 text "{FF0000}Oops" color -1 position 383.45 -2090.80 7.84 view_distance 30.0 show_behind_walls true attached_to_player -1 attached_to_vehicle -1
    ELSE 0B45: samp destroy_3d_text 1337   
    END
    WAIT 137
END

END
0A93: end_custom_thread
eVmf4Pw.png
thx a lot
 
Top