CLEO Help Is it possible?

CLEO related
Status
Not open for further replies.

kokoko

Member
Joined
Sep 2, 2014
Messages
22
Reaction score
0
I play in a server that after you die your screen turns black and you need to choose between Male and Female character in order to spawn. I want to know if it's possible to spawn and move my character/acess my inventory without needing to click Male/Female.
 

afattahniz

Active member
Joined
Jun 8, 2015
Messages
74
Reaction score
0
yes it is possible but if server detects you spawned manually without server script, so you might get kicked or banned with it.
 

Parazitas

God
Joined
Jan 2, 2017
Messages
3,113
Solutions
5
Reaction score
878
Location
Lithuania
Text Draw Finder
[shcode=cpp]
{$CLEO .cs}
0000:


REPEAT
WAIT 0
UNTIL 0AFA: SAMP_IS_READY

0B34: "txd" @textdraw

WHILE TRUE
WAIT 0
END


:textdraw
0B35: 0@
for 1@ = 0 to 2304
if 0C5D: samp textdraw 1@ is_exists
then
alloc 2@ = 1024
0C5A: samp textdraw 1@ get_string_to 2@
if 0C29: 3@ = stristr string1 2@ string2 0@
then 0AF8: "textdraw with id %d contains %s text" -1 1@ 0@
end
free 2@
end
end
0B43:
[/shcode]

3D Text Finder
[shcode=cpp]
{$CLEO}
0000:

REPEAT
WAIT 100
UNTIL 0AFA:

0b34: "find3dtext" @labels
0b34: "tele3dtext" @tp

WHILE TRUE
WAIT 0
END

:labels
0b35: 11@
00A0: store_actor $PLAYER_ACTOR position_to 14@ 15@ 16@
for 0@ = 0 to 2048
if 0B46: samp 3d_text 0@ defined
then
0C46: samp get_3d_text_info_by_id 0@ string_ptr 1@ color 2@ position 3@ 4@ 5@ view_distance 6@ show_behind_walls 7@ attached_to_player 8@ attached_to_vehicle 9@
if 0C29: 10@ = stristr string1 1@ string2 11@
then
0509: 17@ = distance_between_XY 14@ 15@ 3@ 4@
0af8: "LABEL: ID (%d); DIST: (%0.2f); TEXT: %s" -1 0@ 17@ 1@
end
end
end
0b43:

:tp
0b35: 0@
0C1A: 0@ = atoi 0@
if 0B46: samp 3d_text 0@ defined
then
0C46: samp get_3d_text_info_by_id 0@ string_ptr 1@ color 2@ position 3@ 4@ 5@ view_distance 6@ show_behind_walls 7@ attached_to_player 8@ attached_to_vehicle 9@
00A1: put_actor $PLAYER_ACTOR at 3@ 4@ 5@
end
0b43:
[/shcode]


Need more help? >> Post !


@springfield

Can you explane how to know when any player stop send possition.
How it detect?
 
Joined
Feb 18, 2005
Messages
2,963
Reaction score
267
[shcode=cpp]
//if using player id
if 0B20: samp 2@ = actor_handle_by_samp_player_id 666
then
get_actor_position
else
actor_outside_of_stream
end

//if using actor handle obtained from somewhere
if 056D: actor 0@ defined
then
get_actor_position
else
actor_outside_of_stream
end
[/shcode]
 

Parazitas

God
Joined
Jan 2, 2017
Messages
3,113
Solutions
5
Reaction score
878
Location
Lithuania
springfield said:
[shcode=cpp]
//if using player id
if 0B20: samp 2@ = actor_handle_by_samp_player_id 666
then
   get_actor_position
else
  actor_outside_of_stream
end

//if using actor handle obtained from somewhere
if 056D:   actor 0@ defined
then
   get_actor_position
else
  actor_outside_of_stream
end
[/shcode]

1. I can't find this in sanny builer.: 
get_actor_position
2. actor_outside_of_stream - you mean ?.:
0B2F: samp get_streamed_out_player_pos 1@ to 2@ 3@ 4@
@springfield
 
Status
Not open for further replies.
Top