Resource icon

CLEO Release Reconnect.cs

CLEO related
Status
Not open for further replies.

DzkAy

Well-known member
Joined
Feb 20, 2014
Messages
472
Reaction score
1
chad1st link said:
[quote author=Monitor link=topic=3936.msg40688#msg40688 date=1399696040]
[quote author=chad1st link=topic=3936.msg40686#msg40686 date=1399691049]
how to install sampfuncs everytime i installed SAMP funcs i get error plugin sampfuncs v3.1.1
You need ".Asi Loader"

Here's the good one :http://www.gtagarage.com/mods/show.php?id=21709
[/quote]
Just paste it all in GTA:SA folder  :sweet_jesus:

how to install the Asi Loader
[/quote]
 

KazzeyZ

New member
Joined
Jul 26, 2015
Messages
1
Reaction score
0
do you have one that reconnects u without going to login screen?
 

Parazitas

God
Joined
Jan 2, 2017
Messages
3,103
Solutions
5
Reaction score
882
Location
Lithuania
Edited to auto reconnect.

PHP:
{$CLEO .cs}

thread "Rejoin"
0662: NOP "Edit by [Monstercat and Parazitas]"

const
self = $PLAYER_ACTOR
VK_LSHIFT = 0xA0
VK_KEY_0 = 0x30
SAMP_BASE = 29@

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 = 15
end

if
8AF7: get_samp_base_to SAMP_BASE
then
   0A93: end_custom_thread
end
repeat
   wait 400
until 0AFA: is_samp_structures_available

// ============================== Auto Reconnect MAIN ============================== //

while true
   wait 0
   0AC8: 0@ = allocate_memory_size 260 // ALLOCATE MEMORY FOR THE CHAT STRING
   0AB1: @GETCHATENTRYTEXT 1 id 99 to 0@ // THIS IS A FUNCTION THAT STORES THE LAST CHAT STRING INTO 0@
   if and
   player.Defined(0)
   0C29: 2@ = stristr string1 0@ string2 "Server closed the connection." // COMPARE STRING 0@ WITH "Server closed the connection."
       then
           wait 100
           0B28: samp disconnect_with_reason DISCONNECT_QUIT
           wait TIME_RECONNECT
           0B27: samp set_gamestate GAMESTATE_WAIT_CONNECT
           repeat
           wait 20
           until 8AB0: VK_KEY_0
       end
   end

// ============================== END OF Auto Reconnect MAIN ============================== //   

:getChatEntryText
0AF7: samp 1@ = get_base
1@ += 0x21A0E4
0A8D: 1@ = read_memory 1@ size 4 virtual_protect 0
1@ += 0x136
0@ *= 252 // size of stChatEntry
005A: 1@ += 0@ // (int)
1@ += 28
0AB2: 1 1@
 
Last edited:

Dwayne

Active member
Joined
Jun 4, 2014
Messages
125
Reaction score
0
Anyone can fix this? Everytime i make it i get error
http://imgur.com/TmvvygX
 

ramez

Active member
Joined
Jun 11, 2015
Messages
120
Reaction score
0
Location
GB
Dwayne said:
Anyone can fix this? Everytime i make it i get error
http://imgur.com/TmvvygX
try this
 

Attachments

  • autorcon.cs
    19 KB · Views: 76

niks1315

Member
Joined
Nov 15, 2013
Messages
21
Reaction score
0
Anyone from next generation gaming ? Is there a cleo that evades car-hit damage? ( whenever i crash my hp is taken down,doesn't matter if /sb is on or off)
And is there a way to skip the tutorial and questions about RP whenever you register a new account to a roleplay server?
Thanks!I can't make a new post for some reason.
 

tjofi

Member
Joined
Apr 30, 2017
Messages
6
Reaction score
0
How to timeout from the server instead of quitting? Server would then teleport me to last location, while if I quit it spawns me at my spawnpoint.
I tried editing the "DISCONNECT_QUIT" to "DISCONNECT_TIMEOUT" but then when I try to open samp, it freezes on the loading screen and the game eventually crashes.
I used Sanny's builder to change it but it always tells me the opcode is unknown and "Ignore_Unknown" doesn't help.
I also can't just edit the file using notepad as the game crashes.

So how do I get to change DISCONNECT_QUIT to DISCONNECT_TIMEOUT?
 

WavyDaGod

New member
Joined
Dec 17, 2014
Messages
1
Reaction score
0
My GTA freezes when I log into a server with the reconnect.cs in the cleo folder, I have cleo 4.3 installed. AND Sampfuncs 5.3.3 - no other reason for the game to crash other than either sampfuncs, or this .cs.
Running on 0.3.7 samp, this is available for use on this version correct?
 

Hellcat69

New member
Joined
Jul 5, 2017
Messages
1
Reaction score
0
Monstercat said:
0B28: samp disconnect_with_reason 0 / / Disables the server with the given reason / / 0 - normal shutdown, 1 - timeout

PS: Loock at the surce and you will see this:

DISCONNECT_QUIT = 0
DISCONNECT_TIMEOUT = 1

so change it to

0B28: samp disconnect_with_reason DISCONNECT_TIMEOUT

can you do it? and attack a file for me plzz? Thanks
 
Status
Not open for further replies.
Top