CLEO Help Simple keybind script that randomly bans you (bug)???

CLEO related
Status
Not open for further replies.

Supermacy31

Active member
Joined
Mar 13, 2013
Messages
173
Reaction score
0
I have a cleo script that when I try to use it - it bans me from the game. But the server didn't ban me. If I have this CLEO script in a server, it makes a fake-ban or like it where it says "You've been banned from this server." But I know it's fake b/c. when I don't have the CLEO, I can connect easily. What's wrong with it?

Like why the fuck?

Code:
{$CLEO .cs}
0000:

:Main
wait 0
if and
0AAB: file_exists "CLEO\kbult.ini" 
056D: actor $PLAYER_ACTOR defined
jf @Main
if and 
0AB0: key_pressed 101
8B21: not samp is_chat_opened     
jump @KBind

:KBind
0AF9: samp say_msg "/stats"
0AF0: 0@ = get_int_from_ini_file "cleo\kbult.ini" section "kb" key "unislimit"
wait 0@
jump @Main

Anything wrong with it?

Here's the .ini file:
kbult.ini:

Code:
[kb]
unislimit=1000

It doesn't crash or anything. It just makes SA-MP say "You're banned from this server." Any idea why?

I tried it on different servers too. Same thing.
 

Supermacy31

Active member
Joined
Mar 13, 2013
Messages
173
Reaction score
0
WaTTi said:
beacuse you are flooding the server, check if the wait 0@ works.
I'm not flooding the server. I just checked and removed some of the stuff so that it's really simple. There are jumps and else if's that are protecting it from flooding the server. So why isn't it working and being bugged instead?

New code to verify (it still doesn't work, shows "You're banned from this server." on connect):

Code:
{$CLEO.cs}
0000:

:Main
wait 0
//if and
//0AAB: file_exists "CLEO\kbult.ini" 
if
056D: actor $PLAYER_ACTOR defined
jf @Main
if and 
0AB0: key_pressed 101
8B21: not samp is_chat_opened     
jump @KBind

:KBind
0AF9: samp say_msg "/stats"
//0AF0: 0@ = get_int_from_ini_file "cleo\kbult.ini" section "kb" key "unislimit"
//wait 0@
wait 1000
jump @Main

What's up with this bug?

*Note: Note that '//'s are comments.
 

monday

Expert
Joined
Jun 23, 2014
Messages
1,127
Solutions
1
Reaction score
158
idk if that's necessary but you could add "wait 0" after :KBind.

Edit: you could also comment out the opcode which sends the command and check what happens
 

Supermacy31

Active member
Joined
Mar 13, 2013
Messages
173
Reaction score
0
monday said:
idk if that's necessary but you could add "wait 0" after :KBind.

Edit: you could also comment out the opcode which sends the command and check what happens
OMG, I found the problem. It's SAMP say that's the problem. It's making the game (SA-MP) think that I'm banned when I'm not. Why is this happening? This is my current CLEO now:

Code:
{$CLEO .cs}
0000:

:Main
wait 0
//if and
//0AAB: file_exists "CLEO\kbult.ini" 
if
056D: actor $PLAYER_ACTOR defined
jf @Main
if and 
0AB0: key_pressed 101
8B21: not samp is_chat_opened     
jump @KBind

:KBind
wait 0 
//0AF9: samp say_msg "/stats"
//0AF0: 0@ = get_int_from_ini_file "cleo\kbult.ini" section "kb" key "unislimit"
//wait 0@
wait 1000
jump @Main

I commented out samp say_msg like you said and I can connect to server(s) now. What's wrong with it?

>> samp say_msg is the problem.
 

monday

Expert
Joined
Jun 23, 2014
Messages
1,127
Solutions
1
Reaction score
158
maybe the server has key check, or... try this at the begining of the script:

{$CLEO}
0000: NOP
repeat
wait 50
until 0AFA: is_samp_structures_available
 

Supermacy31

Active member
Joined
Mar 13, 2013
Messages
173
Reaction score
0
monday said:
maybe the server has key check, or... try this at the begining of the script:

{$CLEO}
0000: NOP
repeat
wait 50
until 0AFA: is_samp_structures_available
No, it literally has me banned on every server. Also, no server has key-checks because that's client-sided and no server wants to ban keybinds.

Here's my current CLEO script:

Code:
{$CLEO .cs}
0000:
repeat
wait 50
until 0AFA: is_samp_structures_available

:Main
wait 0
//if and
//0AAB: file_exists "CLEO\kbult.ini" 
if
056D: actor $PLAYER_ACTOR defined
jf @Main
if and 
0AB0: key_pressed 101
8B21: not samp is_chat_opened     
jump @KBind

:KBind
wait 0 
0AF9: samp say_msg "/stats"
//0AF0: 0@ = get_int_from_ini_file "cleo\kbult.ini" section "kb" key "unislimit"
//wait 0@
wait 1000
jump @Main
Can you do me a favor and test it on your computer and tell me if it works???
 

Attachments

  • KBinderTest.cs
    17.7 KB · Views: 20

Supermacy31

Active member
Joined
Mar 13, 2013
Messages
173
Reaction score
0
WaTTi said:
you have a updated sampfuncs lib?
Yes, everything in my cleo folder works but this. 

Can you test it on your computer for me and tell me if it works for you?

I attached it in my previous post on here!
 

monday

Expert
Joined
Jun 23, 2014
Messages
1,127
Solutions
1
Reaction score
158
Code:
{$CLEO .cs}
0000:

repeat
wait 50
until 0AFA: is_samp_structures_available


:Main
wait 0
//if and
//0AAB: file_exists "CLEO\kbult.ini" 
    if
    056D: actor $PLAYER_ACTOR defined
    jf @Main

    if and 
    0AB0: key_pressed 101
    8B21: not samp is_chat_opened 
    then    
    jump @KBind
    end   
jump @Main

:KBind
wait 0 
0AF9: samp say_msg "/stats"
//0AF0: 0@ = get_int_from_ini_file "cleo\kbult.ini" section "kb" key "unislimit"
//wait 0@
wait 1000
jump @Main

there was no instruction in case if the "if and 0AB0......" condition returned false, I hope it works
 

Supermacy31

Active member
Joined
Mar 13, 2013
Messages
173
Reaction score
0
monday said:
Code:
{$CLEO .cs}
0000:

repeat
wait 50
until 0AFA: is_samp_structures_available


:Main
wait 0
//if and
//0AAB: file_exists "CLEO\kbult.ini" 
    if
    056D: actor $PLAYER_ACTOR defined
    jf @Main

    if and 
    0AB0: key_pressed 101
    8B21: not samp is_chat_opened 
    then    
    jump @KBind
    end   
jump @Main

:KBind
wait 0 
0AF9: samp say_msg "/stats"
//0AF0: 0@ = get_int_from_ini_file "cleo\kbult.ini" section "kb" key "unislimit"
//wait 0@
wait 1000
jump @Main

there was no instruction in case if the "if and 0AB0......" condition returned false, I hope it works
What the flying fuck!

It works. OMG, thanks a lot man - you saved my script right there <3

Works.

I can't believe such a small detail overlooked can make the script not work. I didn't even notice, you have sharp eyes thanks!

:cool:
 
Status
Not open for further replies.
Top