CLEO Help get current server name

CLEO related
Status
Not open for further replies.

cheetahftw1

Active member
Joined
Aug 31, 2018
Messages
39
Reaction score
0
I want to do an autologin for more accounts on my server and I can't pass get current server name. It says some numbers who changes every time, how I can verify the server?
I tried this:
0AC8: 1@ = allocate_memory_size 260
0B3A: samp 1@ = get_current_server_name
and this:
1@ = SAMP.GetCurrentServerName()

not working.. help pls
 

Krc

Active member
Joined
Mar 30, 2018
Messages
193
Reaction score
25
Location
Lithuania
Code:
While True
Wait 0
0AC8: 0@ = allocate_memory_size 15
0B39: samp get_current_server_address 0@ port 1@
If and
0C29: $NOT_USED = stristr string1 0@ string2 "Your server ip"
0B61: samp is_local_player_spawned
Then
wait 105
0B28: samp disconnect_with_reason 1
end
0AC9: free_allocated_memory 0@
END
 

cheetahftw1

Active member
Joined
Aug 31, 2018
Messages
39
Reaction score
0
Code:
While True
Wait 0
0AC8: 0@ = allocate_memory_size 15
0B39: samp get_current_server_address 0@ port 1@
If and
0C29: $NOT_USED = stristr string1 0@ string2 "Your server ip"
0B61: samp is_local_player_spawned
Then
wait 105
0B28: samp disconnect_with_reason 1
end
0AC9: free_allocated_memory 0@
END
thanks :*
u know maybe how to get player name too? Is same shit, I get only number
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
PHP:
0B2B: samp 1@ = get_player_id_by_actor_handle $PLAYER_ACTOR
0B36: samp 2@ = get_player_nickname 1@
// 2@ = your nick name
 
Status
Not open for further replies.
Top