[SOLVED] Fake timeout without crashing your game?

Status
Not open for further replies.

Suicide Bomb

Active member
Joined
Jun 22, 2014
Messages
100
Reaction score
1
Hey,

I'd like to have a SAMPFUNCS script or w/e to send the server that I timed out then quickly reconnect without closing the game. Thank you in advance.
 

Infam0s

Active member
Joined
Apr 2, 2016
Messages
66
Reaction score
0
RE: Fake timeout without crashing your game?

Suicide Bomb said:
Hey,

I'd like to have a SAMPFUNCS script or w/e to send the server that I timed out then quickly reconnect without closing the game. Thank you in advance.

So you do need to open that thread on cleo->request selection with the form.
 

iLost

Well-known member
Joined
Jun 5, 2014
Messages
216
Reaction score
0
RE: Fake timeout without crashing your game?

Here.
Activation : LSHIFT + 0
Credits : Monstercat

Actually , it's Cleo Mod . So next time , you need to post it at "Cleo > Request" . Don't forget to read the rules and the format.
 

Attachments

  • Reconnect.cs
    18.4 KB · Views: 28

Infam0s

Active member
Joined
Apr 2, 2016
Messages
66
Reaction score
0
RE: Fake timeout without crashing your game?

iLost said:
Here.
Activation : LSHIFT + 0
Credits : Monstercat

Actually , it's Cleo Mod . So next time , you need to post it at "Cleo > Request" . Don't forget to read the rules and the format.

He not request a reconnect script, he request a timeout script.
 

iLost

Well-known member
Joined
Jun 5, 2014
Messages
216
Reaction score
0
RE: Fake timeout without crashing your game?

Suicide Bomb said:
I'd like to have a SAMPFUNCS script or w/e to send the server that I timed out then quickly reconnect without closing the game.

Do you understand it ? But , if that so , you need to try "search" button , maybe if it's available.
 

Suicide Bomb

Active member
Joined
Jun 22, 2014
Messages
100
Reaction score
1
RE: Fake timeout without crashing your game?

Thank you for your help but this is not what I'm looking for.

Still looking.
 

iAnthony

Moderator
Moderator
Joined
Nov 15, 2013
Messages
590
Reaction score
3
RE: Fake timeout without crashing your game?

There are like 3/4 fake crash cleos here. Use the search button
 

0x32789

Expert
Joined
May 26, 2014
Messages
849
Reaction score
51
Location
LongForgotten <-> 0x32789
RE: Fake timeout without crashing your game?

iLost said:
Here.
Activation : LSHIFT + 0
Credits : Monstercat

Actually , it's Cleo Mod . So next time , you need to post it at "Cleo > Request" . Don't forget to read the rules and the format.

Monstercat one actually works
just edit a little and remove that wait
I tried, Press LSHIFT + 0 then it will send timeout and u cant reconnect, it will say unacceptable nickname which proves that it is timeout/crash.
So when you are ready to connect press LSHIFT + 0 again it will say restarting server and then it will say connected joining the game
If it says ur banned from the server, keep trying its a samp bug
Code:
Code:
{$CLEO .cs}
 
thread "FakeTimeout"
0662: NOP "FakeTimeout"
 
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
 
// ================================== MAIN ================================== //
 
while true
    wait 0
    if and
    player.Defined(0)
    8B21:  not samp is_chat_not_opened
    0AB0: VK_LSHIFT
    then
        if 0AB0: VK_KEY_0 
        then
            0B28: samp disconnect_with_reason DISCONNECT_TIMEOUT
            repeat
            wait 20
            until 8AB0: VK_KEY_0
        end
        end
    end
 
// ============================== END OF MAIN ============================== //

And if you are trying to make a "quickly reconnect" one, Its impossible because when a player timeouts he is there for some seconds so you cant connect back unless server removes that playerid or you better change your name if you want to quickly reconnect.
:ugbase:
 

Suicide Bomb

Active member
Joined
Jun 22, 2014
Messages
100
Reaction score
1
RE: Fake timeout without crashing your game?

Thank you for your help.

L&A this.
 
Status
Not open for further replies.
Top