CLEO Help Need help, thx

CLEO related
Status
Not open for further replies.

GoodMan

Active member
Joined
Jun 4, 2014
Messages
141
Reaction score
0
Hello dear ugbase members, so i've been working like 2 hours already and can't get it working because after joining the server when i enter to a vhicle my screen freezes and iu can't  do anything

here is the code:

Code:
{$CLEO .cs}

0000: NOP
Thread "EXIT_1_WITH_10"

:L_1
wait 0
if and
0226: 1@ = actor 0@ health
1@ == 10
else_jump @L_2
0B12: 0@ = 1@ XOR 1
0B28: samp disconnect_with_reason 1
//or also // 0C8F: samp process_chat_input "/quit"
wait 0
:L_2
jump @L_1

I don't need to explain detailed what it does because when i get hurt and my hp goes to 10 it should disconnect me but it doesn't work.. :(

what i did wrong??

thx
 

monday

Expert
Joined
Jun 23, 2014
Messages
1,125
Reaction score
149
//hi, you could check this one
:L_1
wait 0

0226: 1@ = actor $PLAYER_ACTOR health

if
002B: 10 >= 1@
then
0B28: samp disconnect_with_reason 1
end

//wait 10 //for performance but idk if it's necessary

jump @L_1
 

GoodMan

Active member
Joined
Jun 4, 2014
Messages
141
Reaction score
0
Indeed was quite close to the correct way!!!

Thanks for your kindness senior monday, thanks for sharing your knowdelge! :)))


Excuse me for double post but forgot to mention also the bug of radar and HUD dissapear due to this cleo.cs
(already tried removing all other mods and got clan gta and this one is the only one which causes this bug)

look this pic, i've put an activation key to this script and still so without enable it can occur this bug, quite wierd i haven't seen something like that b4
sa_mp_001.png


Code:
{$CLEO .cs}

0000: NOP
Thread "EXIT_1_WITH_10"

//hi, you could check this one
:L_1
wait 0
0ADC: "nodie"
jf @L_1
018C: play_sound 1057 at 0.0 0.0 0.0 
chatmsg "{8080ff}Anti-death {00ff00}ON" 16777215
0226: 1@ = actor $PLAYER_ACTOR health

if
002B: 10 >= 1@
then
0B28: samp disconnect_with_reason 1
end
wait 2000
//wait 10 //for performance but idk if it's necessary

jump @L_1
my code with activation key


LOL


I tested it always on the ugbase.eu server and YOU KNOW WHAT? SERVER IS BUGGEDDD!!!! that's why it wasn't working and my HUD kept dissapearing ::( i got trolled lever 100. xDDDD
 
Status
Not open for further replies.
Top