Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {$CLEO}
- {$INCLUDE SF}
- 0001: wait 0 ms
- 0662: "by legend2360"
- 0662: "BlastHack - cheating is art"
- while not SAMP.Available()
- wait 400
- end
- 1@ = false // disconnect status
- 0BE4: raknet setup_incoming_packet_hook @inpacket_hook
- while true
- wait 0
- if 1@ == true
- then
- 0B28: samp disconnect_with_reason 1
- 0ACC: show_text_lowpriority "~r~ Restarting..." time 3000
- 0BFE: 2@ = get_tick_count
- 3@ = 0 // clear last saved time
- while 3@ < 18000
- wait 0
- 0BFE: 3@ = get_tick_count
- 0062: 3@ -= 2@
- end
- alloc 4@ 16 // 255.255.255.255 = 4*3 + 3 = 15 (+1 for \0)
- 0B39: samp get_current_server_address 4@ port 5@
- 0B38: samp connect_to_server ip 4@ port 5@
- free 4@
- 1@ = false
- end
- end
- :inpacket_hook
- 0BE5: raknet 0@ = get_hook_param PARAM_PACKETID
- if or
- 0@ == 0x1E // PACKET_DISCONNECTION_NOTIFICATION
- 0@ == 0x21 // PACKET_CONNECTION_LOST
- 0@ == 0x22 // PACKET_CONNECTION_BANNED
- 0@ == 0x25 // PACKET_CONNECTION_ATTEMPT_FAILED
- then
- 1@ = true // Disconnected
- end
- 0BE0: raknet hook_ret true
- {
- % TAGS
- AUTO
- RECONNECT
- CLEO
- SAMP
- SA-MP
- SA MP
- SAMPFUNCS
- авто
- реконнект
- переподключение
- автомататическое
- legend2360
- blasthack
- blast hack
- net
- .net
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement