CLEO Help Getting player health

CLEO related
Status
Not open for further replies.

SpRoXx

Member
Joined
Oct 29, 2016
Messages
23
Reaction score
1
ay guys, now i finished with this code, it took me like 5 minutes it's not that hard but​
I want to do a code that if i have less than 98 % It automatic will set it to 99​
how do i use this one​

Code:
0B25: samp 2@ = get_player_health 1@ -> 0B25: samp 2@ = get_player_health $PLAYER_ACTOR
==============​
I didn't understand this fkin shit, How do i use variables ? fgs​
Code:
{$CLEO .cs}
thread 'Heal'

:H_01
wait 0
if 
0AFA:  is_samp_available
else_jump @H_01
printf "~G~LOADED" 2000
if and
0256:   player $PLAYER_CHAR defined 
0ADC:   test_cheat "heal"
jf @H_01
0223: set_actor $PLAYER_ACTOR health_to 200
print "~G~HEALED" time 2000
jump @H_01
and another question, ​
when i start samp, LOADED text is stuck 
Code:
printf "~G~LOADED" 2000
2000 = MS or Minutes​
 
Thanks for yr attention​
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,175
Solutions
6
Reaction score
899
Location
Lithuania
Good luck to learning more !

[shcode=cpp]
{$CLEO .cs}
0000:


REPEAT
   WAIT 0
UNTIL 0AFA:  SAMP_IS_READY

WHILE TRUE
WAIT 0
0226: 0@ = actor $PLAYER_ACTOR health
IF
0AFA:  SAMP_IS_READY
THEN
   printf "~G~LOADED" 2000
END

IF
0@ <= 98
THEN
0223: set_actor $PLAYER_ACTOR health_to 99 // 99 %
print "~G~HEALED" time 2000
END

END    


[/shcode]
 

SpRoXx

Member
Joined
Oct 29, 2016
Messages
23
Reaction score
1
Parazitas said:
Good luck to learning more !

[shcode=cpp]
{$CLEO .cs}
0000:


REPEAT
   WAIT 0
UNTIL 0AFA:  SAMP_IS_READY

WHILE TRUE
WAIT 0
0226: 0@ = actor $PLAYER_ACTOR health
IF
0AFA:  SAMP_IS_READY
THEN
   printf "~G~LOADED" 2000
END

IF
0@ <= 98
THEN
0223: set_actor $PLAYER_ACTOR health_to 99 // 99 %
print "~G~HEALED" time 2000
END

END    


[/shcode]
While true what does it means, it's a loop? , I found some of  blackhat tutorials, thanks bro i appreciate it
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,175
Solutions
6
Reaction score
899
Location
Lithuania
SpRoXx said:
Parazitas said:
Good luck to learning more !

[shcode=cpp]
{$CLEO .cs}
0000:


REPEAT
   WAIT 0
UNTIL 0AFA:  SAMP_IS_READY

WHILE TRUE
WAIT 0
0226: 0@ = actor $PLAYER_ACTOR health
IF
0AFA:  SAMP_IS_READY
THEN
   printf "~G~LOADED" 2000
END

IF
0@ <= 98
THEN
0223: set_actor $PLAYER_ACTOR health_to 99 // 99 %
print "~G~HEALED" time 2000
END

END    


[/shcode]
While true what does it means, it's a loop? , I found some of  blackhat tutorials, thanks bro i appreciate it

Yes it's loop , always checking.
 
Status
Not open for further replies.
Top