CLEO Help Reconenct problem

CLEO related

Ariya9473

Active member
Joined
Dec 7, 2014
Messages
59
Reaction score
0
hi , i have a good reconnect mod but i have a little problem with it
for exampl my account nams is "jim_5" and when i log in to the game i get clan tag and my name will change to [ZZA]jim_5
after i get disconnect and get automatic reconect or when i use this mod to get recconect , i get log in with [ZZA]jim_5 az account name and that is not my account
then i need use 0B29: samp set_local_name "jim_5" and after that i can use reconnect mod to log in to my account
i want to khow is there anyone can create a mod that delete that tag before my name and make my account reconnect with right name "jim_5"

{$CLEO}

thread "scripter"

repeat
wait 0
until 0AFA:

0B63: "rr"
0B63: "Name"
0B34: "Name" @Name
0b34: "rr" @rr

WHILE TRUE
WAIT 0
if 17@ == 1
then
0B28: 0
wait 1050
0B27: 1
17@ = 0
end
END

:rr
0B2B: 0@ = $PLAYER_ACTOR
0B36: 1@ = 0@
for 31@ = 0 to 32
0A8D: 30@ = read_memory 1@ size 1 virtual_protect 1
if 30@ == 93 // if the character is "]" (ASCII table)
then
1@++
0B29: 1@
printf "Local name: %s" 4000 1@
else 1@++
end
end
17@ = 1
cmdret

:Name
SAMP.IsCommandTyped(0@)
if 0AD4: 33@ = scan_string 0@ format "%s" v$PLAYER_NAME
then
0AC8: 1@ = 260
0AD3: 1@ = "%s" v$PLAYER_NAME
0B29: 1@
printf "Local name: %s" 4000 1@
0AC9: 1@
else print "/name <local_name>" 4000
end
cmdret
 

Derrekgamer

Active member
Joined
Oct 26, 2020
Messages
93
Reaction score
1
Location
Grecee
Drop your reconnect file here
Code:
{$CLEO .cs}



//-------------MAIN---------------

0000: NOP

thread ""



:springfield_18

wait 400

   SAMP.Available

jf @springfield_18

0B34: samp register_client_command "recon" to_label @springfield_95

0AB1: call_scm_func @chatmsg 0



:anticrash

wait 0

jump @anticrash



:springfield_95

31@ = 1

SAMP.Disconnect(0)

wait 0

if

  31@ == 1   

jf @springfield_95

wait 3000 

SAMP.SetGameState(1) = 1   

31@ = 0

SAMP.CmdRet



:chatmsg

0AA2: 0@ = load_library "samp.dll" // IF and SET

0085: 1@ = 0@ // (int)

1@ += 2203876

0A8D: 3@ = read_memory 1@ size 4 virtual_protect 1

0085: 2@ = 0@ // (int)

2@ += 409616

chatmsg "{4FD204}Reconnect"                                                                     

chatmsg "{4FD204}Use command{04BFD2}[/recon]" 

0AB2: ret 0


im using this, with command /relog
 

Parazitas

God
Joined
Jan 2, 2017
Messages
3,104
Solutions
5
Reaction score
882
Location
Lithuania
PHP:
{$CLEO .cs}

0000:

REPEAT
WAIT 0
UNTIL 0AFA:

CONST
DISCONNECT_QUIT = 0
DISCONNECT_TIMEOUT = 1
 
GAMESTATE_NONE = 0
GAMESTATE_WAIT_CONNECT = 1
GAMESTATE_AWAIT_JOIN = 2
GAMESTATE_CONNECTING = 3
GAMESTATE_CONNECTED = 4
GAMESTATE_RESTARTING = 5
GAMESTATE_DISCONNECTED = 6
 
TIME_RECONNECT = 30
END

0B34: samp register_client_command "rr" to_label @CMD

WHILE TRUE
WAIT 0

IF 31@ == TRUE
THEN
    0B2E: 17@ = 0x19B00 2
    0B2D: 0x19B00 0xC390 2
    0B28: samp disconnect_with_reason DISCONNECT_QUIT
    WAIT TIME_RECONNECT
    0B27: samp set_gamestate GAMESTATE_WAIT_CONNECT
    31@ = FALSE
END

END

:CMD
31@ = TRUE
0B43: samp cmd_ret
 

Ariya9473

Active member
Joined
Dec 7, 2014
Messages
59
Reaction score
0
i had a chat reader mod and i change it a little , i think this can help
it can read the text and chage your name to real (without clan tag)
but it have a problem , can you plz make a on/off toggle for this mod?
i don't khow how to do it
 

Attachments

  • Auto delete clan tag.cs
    18.9 KB · Views: 2

Parazitas

God
Joined
Jan 2, 2017
Messages
3,104
Solutions
5
Reaction score
882
Location
Lithuania
PHP:
{$CLEO .cs}

0000:

REPEAT
WAIT 0
UNTIL 0AFA:

CONST
DISCONNECT_QUIT = 0
DISCONNECT_TIMEOUT = 1
 
GAMESTATE_NONE = 0
GAMESTATE_WAIT_CONNECT = 1
GAMESTATE_AWAIT_JOIN = 2
GAMESTATE_CONNECTING = 3
GAMESTATE_CONNECTED = 4
GAMESTATE_RESTARTING = 5
GAMESTATE_DISCONNECTED = 6
 
TIME_RECONNECT = 30
END

0B34: samp register_client_command "rr" to_label @CMD

WHILE TRUE
WAIT 0

IF 31@ == TRUE
THEN
    0B2E: 17@ = 0x19B00 2
    0B2D: 0x19B00 0xC390 2
    0B28: samp disconnect_with_reason DISCONNECT_QUIT
    0B29: samp set_local_name "Jim_5"
    WAIT TIME_RECONNECT
    0B27: samp set_gamestate GAMESTATE_WAIT_CONNECT
    31@ = FALSE
END

END

:CMD
31@ = TRUE
0B43: samp cmd_ret
 

Derrekgamer

Active member
Joined
Oct 26, 2020
Messages
93
Reaction score
1
Location
Grecee
this is my cleo reconnect mod
PHP:
{$CLEO .cs}

0000:

REPEAT
WAIT 0
UNTIL 0AFA:

CONST
DISCONNECT_QUIT = 0
DISCONNECT_TIMEOUT = 1
 
GAMESTATE_NONE = 0
GAMESTATE_WAIT_CONNECT = 1
GAMESTATE_AWAIT_JOIN = 2
GAMESTATE_CONNECTING = 3
GAMESTATE_CONNECTED = 4
GAMESTATE_RESTARTING = 5
GAMESTATE_DISCONNECTED = 6
 
TIME_RECONNECT = 30
END

0B34: samp register_client_command "rr" to_label @CMD

WHILE TRUE
WAIT 0

IF 31@ == TRUE
THEN
    0B2E: 17@ = 0x19B00 2
    0B2D: 0x19B00 0xC390 2
    0B28: samp disconnect_with_reason DISCONNECT_QUIT
    0B29: samp set_local_name "Jim_5"
    WAIT TIME_RECONNECT
    0B27: samp set_gamestate GAMESTATE_WAIT_CONNECT
    31@ = FALSE
END

END

:CMD
31@ = TRUE
0B43: samp cmd_ret
it wont work without using : 0B29: samp set_local_name "Jim_5" ? i mean to exclude clan tag something like : if command rr was used thern get player nickname if nickname has a clan tag then remove it from name , then reconnect
 

Derrekgamer

Active member
Joined
Oct 26, 2020
Messages
93
Reaction score
1
Location
Grecee
i had a chat reader mod and i change it a little , i think this can help
it can read the text and chage your name to real (without clan tag)
but it have a problem , can you plz make a on/off toggle for this mod?
i don't khow how to do it
why u need to toggle it? you can use a command as example :rr
 

Derrekgamer

Active member
Joined
Oct 26, 2020
Messages
93
Reaction score
1
Location
Grecee
i had a chat reader mod and i change it a little , i think this can help
it can read the text and chage your name to real (without clan tag)
but it have a problem , can you plz make a on/off toggle for this mod?
i don't khow how to do it
also this mod does not remove clan tag, it only sets a local nickname..
 

Derrekgamer

Active member
Joined
Oct 26, 2020
Messages
93
Reaction score
1
Location
Grecee
PHP:
{$CLEO .cs}

0000:

REPEAT
WAIT 0
UNTIL 0AFA:

CONST
DISCONNECT_QUIT = 0
DISCONNECT_TIMEOUT = 1
 
GAMESTATE_NONE = 0
GAMESTATE_WAIT_CONNECT = 1
GAMESTATE_AWAIT_JOIN = 2
GAMESTATE_CONNECTING = 3
GAMESTATE_CONNECTED = 4
GAMESTATE_RESTARTING = 5
GAMESTATE_DISCONNECTED = 6
 
TIME_RECONNECT = 30
END

0B34: samp register_client_command "rr" to_label @CMD

WHILE TRUE
WAIT 0

IF 31@ == TRUE
THEN
    0B2E: 17@ = 0x19B00 2
    0B2D: 0x19B00 0xC390 2
    0B28: samp disconnect_with_reason DISCONNECT_QUIT
    0B29: samp set_local_name "Jim_5"
    WAIT TIME_RECONNECT
    0B27: samp set_gamestate GAMESTATE_WAIT_CONNECT
    31@ = FALSE
END

END

:CMD
31@ = TRUE
0B43: samp cmd_ret
i arleady have this, i needed a mod that removes the clan tag, not a mod that sets local name. here is my code and it does the same thing, working good.


Code:
{$CLEO .cs}

//-------------MAIN---------------
0000: NOP
thread "idk"

:springfield_18
wait 400
   SAMP.Available
jf @springfield_18
0B34: samp register_client_command "recon" to_label @springfield_95
0AB1: call_scm_func @chatmsg 0

:anticrash
wait 0
jump @anticrash

:springfield_95
31@ = 1
SAMP.Disconnect(0)
wait 0
if
  31@ == 1
jf @springfield_95
wait 3000   
0B29: samp set_local_name "username"
SAMP.SetGameState(1) = 1     
31@ = 0
SAMP.CmdRet

:chatmsg
0AA2: 0@ = load_library "samp.dll" // IF and SET
0085: 1@ = 0@ // (int)
1@ += 2203876
0A8D: 3@ = read_memory 1@ size 4 virtual_protect 1
0085: 2@ = 0@ // (int)
2@ += 409616
chatmsg "{4FD204}Reconnect"                                                                      
chatmsg "{4FD204}Use command {04BFD2}[/recon]"  
0AB2: ret 0
 

Derrekgamer

Active member
Joined
Oct 26, 2020
Messages
93
Reaction score
1
Location
Grecee
PHP:
{$CLEO .cs}

0000:

REPEAT
WAIT 0
UNTIL 0AFA:

CONST
DISCONNECT_QUIT = 0
DISCONNECT_TIMEOUT = 1
 
GAMESTATE_NONE = 0
GAMESTATE_WAIT_CONNECT = 1
GAMESTATE_AWAIT_JOIN = 2
GAMESTATE_CONNECTING = 3
GAMESTATE_CONNECTED = 4
GAMESTATE_RESTARTING = 5
GAMESTATE_DISCONNECTED = 6
 
TIME_RECONNECT = 30
END

0B34: samp register_client_command "rr" to_label @CMD

WHILE TRUE
WAIT 0

IF 31@ == TRUE
THEN
    0B2E: 17@ = 0x19B00 2
    0B2D: 0x19B00 0xC390 2
    0B28: samp disconnect_with_reason DISCONNECT_QUIT
    0B29: samp set_local_name "Jim_5"
    WAIT TIME_RECONNECT
    0B27: samp set_gamestate GAMESTATE_WAIT_CONNECT
    31@ = FALSE
END

END

:CMD
31@ = TRUE
0B43: samp cmd_ret
its possibile to make that local nickname toi be readed from an ini file? i arleady tried that but no succes
 
Top