CLEO Help Command bug cleo :(

CLEO related
Status
Not open for further replies.

ejexter

Well-known member
Joined
Feb 21, 2014
Messages
211
Reaction score
0
{$CLEO}

0662: ""
0B34: samp register_client_command "xheal" to_label @cmd1
0B34: samp register_client_command "xarm" to_label @cmd2
31@ = false
30@ = false

:heal
wait 0
if
31@ == true
jf @heal
056D: actor $PLAYER_ACTOR defined
Actor.Health($PLAYER_ACTOR) = 100
0AF8: samp add_message_to_chat "{00C4FF}XLITE: {FFFFFF}Heal completed." color 0xFFFFFF
0ACD: show_text_highpriority "HEALED" time 1500
31@ = false
SAMP.CmdRet
goto @heal

:arm
wait 0
if
30@ == true
jf @arm
056D: actor $PLAYER_ACTOR defined
Actor.Armour($PLAYER_ACTOR) = 100
0AF8: samp add_message_to_chat "{00C4FF}XLITE: {FFFFFF}Armour as been set." color 0xFFFFFF
0ACD: show_text_highpriority "ARMOURED" time 1500
30@ = false
SAMP.CmdRet
goto @arm

:cmd1
wait 0
31@ = true
SAMP.CmdRet
goto @heal

:cmd2
wait 0
30@ = true
SAMP.CmdRet
goto @arm
The command /xarm not work...
Somebody know why?  :eek:hgodwhy:
 

ThermaL

Expert
Joined
Oct 23, 2013
Messages
1,593
Reaction score
3
Code:
{$CLEO}

0B34: samp register_client_command "xheal" to_label @cmd1
0B34: samp register_client_command "xarm" to_label @cmd2
31@ = false
30@ = false

:heal
wait 0
if
31@ == true
jf @heal
Actor.Health($PLAYER_ACTOR) = 100
0AF8: samp add_message_to_chat "{00C4FF}XLITE: {FFFFFF}Heal completed." color 0xFFFFFF
0ACD: show_text_highpriority "HEALED" time 1500
31@ = false
SAMP.CmdRet
goto @heal

:arm
wait 0
if
30@ == true
jf @arm
Actor.AddArmour($PLAYER_ACTOR) = 100
0AF8: samp add_message_to_chat "{00C4FF}XLITE: {FFFFFF}Armour as been set." color 0xFFFFFF
0ACD: show_text_highpriority "ARMOURED" time 1500
30@ = false
SAMP.CmdRet
goto @arm

:cmd1
wait 0
31@ = true
SAMP.CmdRet
goto @heal

:cmd2
wait 0
30@ = true
SAMP.CmdRet
goto @arm

It's Actor.AddArmour, not Actor.Armour.
 

ejexter

Well-known member
Joined
Feb 21, 2014
Messages
211
Reaction score
0
TH3RM4L link said:
Code:
{$CLEO}

0B34: samp register_client_command "xheal" to_label @cmd1
0B34: samp register_client_command "xarm" to_label @cmd2
31@ = false
30@ = false

:heal
wait 0
if
31@ == true
jf @heal
Actor.Health($PLAYER_ACTOR) = 100
0AF8: samp add_message_to_chat "{00C4FF}XLITE: {FFFFFF}Heal completed." color 0xFFFFFF
0ACD: show_text_highpriority "HEALED" time 1500
31@ = false
SAMP.CmdRet
goto @heal

:arm
wait 0
if
30@ == true
jf @arm
Actor.AddArmour($PLAYER_ACTOR) = 100
0AF8: samp add_message_to_chat "{00C4FF}XLITE: {FFFFFF}Armour as been set." color 0xFFFFFF
0ACD: show_text_highpriority "ARMOURED" time 1500
30@ = false
SAMP.CmdRet
goto @arm

:cmd1
wait 0
31@ = true
SAMP.CmdRet
goto @heal

:cmd2
wait 0
30@ = true
SAMP.CmdRet
goto @arm

It's Actor.AddArmour, not Actor.Armour.

Actor.Health($PLAYER_ACTOR) = 100 Not work but:...
*Actor.AddArmour($PLAYER_ACTOR, 100) Works.
but the command "/xarm" is still not working  :yesyes:
 

ThermaL

Expert
Joined
Oct 23, 2013
Messages
1,593
Reaction score
3
Code:
{$CLEO}

0B34: samp register_client_command "xheal" to_label @HEAL
0B34: samp register_client_command "xarm" to_label @ARMOUR

:LOOP
wait 0
goto @LOOP

:HEAL
wait 0
Actor.Health($PLAYER_ACTOR) = 100
0AF8: samp add_message_to_chat "{00C4FF}XLITE: {FFFFFF}Heal completed." color 0xFFFFFF
print "HEALED" 1500
SAMP.CmdRet
goto @LOOP

:ARMOUR
wait 0
Actor.AddArmour($PLAYER_ACTOR) = 100
0AF8: samp add_message_to_chat "{00C4FF}XLITE: {FFFFFF}Armour has been set." color 0xFFFFFF
print "ARMOURED" 1500
SAMP.CmdRet
goto @ARMOUR
 

ejexter

Well-known member
Joined
Feb 21, 2014
Messages
211
Reaction score
0
TH3RM4L link said:
Code:
{$CLEO}

0B34: samp register_client_command "xheal" to_label @HEAL
0B34: samp register_client_command "xarm" to_label @ARMOUR

:LOOP
wait 0
goto @LOOP

:HEAL
wait 0
Actor.Health($PLAYER_ACTOR) = 100
0AF8: samp add_message_to_chat "{00C4FF}XLITE: {FFFFFF}Heal completed." color 0xFFFFFF
print "HEALED" 1500
SAMP.CmdRet
goto @LOOP

:ARMOUR
wait 0
Actor.AddArmour($PLAYER_ACTOR) = 100
0AF8: samp add_message_to_chat "{00C4FF}XLITE: {FFFFFF}Armour has been set." color 0xFFFFFF
print "ARMOURED" 1500
SAMP.CmdRet
goto @ARMOUR
Thanks, and how i add connect message?
 

MrChristmas

Expert
Joined
Jul 29, 2014
Messages
563
Reaction score
26
ejexter link said:
Thanks, and how i add connect message?

Code:
{$CLEO}

0000: NOP
wait 2000
0AA2: 26@ = load_library "SAMP.DLL" // IF and SET 



:TEXT 
wait 5000 //<<- how log it gonna wait before texst appears
0085: 27@ = 26@ // (int) 
27@ += 2173548 
0A8D: 29@ = read_memory 27@ size 4 virtual_protect 1 
0085: 28@ = 26@ // (int) 
28@ += 500976 
0AA6: call_method 28@ struct 29@ num_params 5 pop 0 0 16711680 0 "YOUR TEXT" 8 //<<- What it gonna say after you going the server  
0085: 27@ = 26@ // (int) 
27@ += 2173548 
0A8D: 29@ = read_memory 27@ size 4 virtual_protect 1
goto @MAIN
 

Hidend

Expert
Joined
Mar 4, 2013
Messages
628
Reaction score
42
Mr.Christmas link said:
Code:
{$CLEO}

0000: NOP
wait 2000
0AA2: 26@ = load_library "SAMP.DLL" // IF and SET 



:TEXT 
wait 5000 //<<- how log it gonna wait before texst appears
0085: 27@ = 26@ // (int) 
27@ += 2173548 
0A8D: 29@ = read_memory 27@ size 4 virtual_protect 1 
0085: 28@ = 26@ // (int) 
28@ += 500976 
0AA6: call_method 28@ struct 29@ num_params 5 pop 0 0 16711680 0 "YOUR TEXT" 8 //<<- What it gonna say after you going the server  
0085: 27@ = 26@ // (int) 
27@ += 2173548 
0A8D: 29@ = read_memory 27@ size 4 virtual_protect 1
goto @MAIN
y0, that need sampfuncs [member=23540]Mr.Christmas[/member] ?
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
271
Code:
for 0@ = 0 to 50 //show text 50 times
     wait 0
     0AF8: addMsgToChatWnd "TEXXXT" col 0xC0FF01
end     

Also add a wait(2-3sec) before {$CLEO} and every SAMPFUNCS opcode, else you'll crash.
 

ejexter

Well-known member
Joined
Feb 21, 2014
Messages
211
Reaction score
0
springfield link said:
Code:
for 0@ = 0 to 50 //show text 50 times
     wait 0
     0AF8: addMsgToChatWnd "TEXXXT" col 0xC0FF01
end     

Also add a wait(2-3sec) before {$CLEO} and every SAMPFUNCS opcode, else you'll crash.
Thanks  :somuchwin:
Have a code for this?
xgfdon.png
 

ThermaL

Expert
Joined
Oct 23, 2013
Messages
1,593
Reaction score
3
ejexter link said:
Thanks man  :urtheman:, and how to make /help 1-2-3?
Do it by yourself

TH3RM4L link said:
Code:
{$CLEO}

0B34: samp register_client_command "xheal" to_label @HEAL
0B34: samp register_client_command "xarm" to_label @ARMOUR

:LOOP
wait 0
goto @LOOP

:HEAL
wait 0
Actor.Health($PLAYER_ACTOR) = 100
0AF8: samp add_message_to_chat "{00C4FF}XLITE: {FFFFFF}Heal completed." color 0xFFFFFF
print "HEALED" 1500
SAMP.CmdRet
goto @LOOP

:ARMOUR
wait 0
Actor.AddArmour($PLAYER_ACTOR) = 100
0AF8: samp add_message_to_chat "{00C4FF}XLITE: {FFFFFF}Armour has been set." color 0xFFFFFF
print "ARMOURED" 1500
SAMP.CmdRet
goto @ARMOUR
Just look at this script and you should get it.
 
Status
Not open for further replies.
Top