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:
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
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