Help [HELP]untitled

GoodMan

Well-Known Member
Joined
Jun 4, 2014
Messages
139
Likes
0
Points
66
#1
Been trying this for days and i can't make it work properly,.

its supposed to draw defined players and their anim id name and file but there seems to be lack of memory maybe?

Here is the code 

PHP:
{$CLEO .cs}

0000: NOP

repeat
wait 500
until 0AFA:  is_samp_available

[email protected] = Render.CreateFont("Tahoma", 7, 5)

while true
wait 0
FOR [email protected] = 0 to 999

if
0B23:  samp is_player_connected [email protected]
then
[email protected] = 5
[email protected] = 230
   0B20: samp [email protected] = actor_handle_by_samp_player_id [email protected]
   if
   056D:   actor [email protected] defined
   then
   0B2B: samp [email protected] = get_player_id_by_actor_handle [email protected]
           [email protected] = SAMP.GetPlayerNickname([email protected])
           [email protected] = SAMP.PlayerAnimationID([email protected])
           [email protected] = SAMP.GetPlayerColor([email protected])
           alloc [email protected] 32
           alloc [email protected] 32
           alloc [email protected] 64
           [email protected] += 14
           0AD3: [email protected] = format "%d %s %s" [email protected] [email protected] [email protected]
           0B6F: render font [email protected] draw_text [email protected] pos [email protected] [email protected] color [email protected]
           free [email protected]
           free [email protected]
           free [email protected]
       end
   end
end
end
idk maybe i need to hack memory or something? i tried doing it for playeractor and works perfect but when i do that for samp players i can't. :foreveralone: :surprised: :penis:
 

supahdupahnubah

Well-Known Member
Joined
Dec 31, 2015
Messages
680
Likes
4
Points
33
#2
OP
OP
G

GoodMan

Well-Known Member
Joined
Jun 4, 2014
Messages
139
Likes
0
Points
66
#3
Code:
if
                        0B20: samp [email protected] = actor_handle_by_samp_player_id [email protected]
                        then
                        0B2B: samp [email protected] = get_player_id_by_actor_handle [email protected]
                        
                        0B36: samp [email protected] = get_player_nickname [email protected]
                        0B37: samp [email protected] = get_player_color [email protected]
                        
                        0B57: samp [email protected] = player [email protected] animation_id
                        0B58: samp get_animation_name_to [email protected] file_to [email protected] by_id [email protected]
                        0AC8: [email protected] = 32
                        0AC8: [email protected] = 32
                        0AC8: [email protected] = 32
                        0AC8: [email protected] = 256
                        0AD3: [email protected] = "(%d)%s {CCFF00} %d %s %s" [email protected] [email protected] [email protected] [email protected] [email protected]
                        0B6F: render font [email protected] draw_text [email protected] pos [email protected] [email protected] color [email protected]
                        0AC9: [email protected]
                        0AC9: [email protected]
                        0AC9: [email protected]
                        0AC9: [email protected]
                        end
Here another example, yet doesn't work, im mostly giving up
 

_=Gigant=_

Well-Known Member
Joined
Mar 21, 2017
Messages
393
Likes
11
Points
23
#5
GoodMan said:
Here another example, yet doesn't work, im mostly giving up
{$CLEO}

0000:

repeat
wait 0
until 0AFA:  is_samp_available

alloc [email protected] 100

[email protected] = Render.CreateFont("Tahoma", 7, 5)

while true
wait 0

for [email protected] = 0 to 1000
if
0B23:  samp is_player_connected [email protected]
then
  if 0B20: samp [email protected] = actor_handle_by_samp_player_id [email protected]
    then
    00A0: store_actor [email protected] position_to [email protected] [email protected] [email protected]
    if 00C2:   sphere_onscreen [email protected] [email protected] [email protected]  radius 0.0
        then
        Actor.StorePos($PLAYER_ACTOR, [email protected], [email protected], [email protected])
        0B55: convert_3D_coords [email protected] [email protected] [email protected] to_screen [email protected] [email protected]
        0B55: convert_3D_coords [email protected] [email protected] [email protected] to_screen [email protected] [email protected]  
        0B2B: samp [email protected] = get_player_id_by_actor_handle [email protected]
        [email protected] = SAMP.GetPlayerNickname([email protected])
        [email protected] = SAMP.PlayerAnimationID([email protected])
        [email protected] = SAMP.GetPlayerColor([email protected])
        format [email protected] "{%X}%s [%d] Anim %d" [email protected] [email protected] [email protected] [email protected]
        0B6F: render font [email protected] draw_text [email protected] pos [email protected] [email protected] color [email protected]
       end
   end
end
end
end
 
OP
OP
G

GoodMan

Well-Known Member
Joined
Jun 4, 2014
Messages
139
Likes
0
Points
66
#6
_=Gigant=_ said:
GoodMan said:
Here another example, yet doesn't work, im mostly giving up
{$CLEO}

0000:

repeat
wait 0
until 0AFA:  is_samp_available

alloc [email protected] 100

[email protected] = Render.CreateFont("Tahoma", 7, 5)

while true
wait 0

for [email protected] = 0 to 1000
if
0B23:  samp is_player_connected [email protected]
then
  if 0B20: samp [email protected] = actor_handle_by_samp_player_id [email protected]
    then
    00A0: store_actor [email protected] position_to [email protected] [email protected] [email protected]
    if 00C2:   sphere_onscreen [email protected] [email protected] [email protected]  radius 0.0
        then
        Actor.StorePos($PLAYER_ACTOR, [email protected], [email protected], [email protected])
        0B55: convert_3D_coords [email protected] [email protected] [email protected] to_screen [email protected] [email protected]
        0B55: convert_3D_coords [email protected] [email protected] [email protected] to_screen [email protected] [email protected]  
        0B2B: samp [email protected] = get_player_id_by_actor_handle [email protected]
        [email protected] = SAMP.GetPlayerNickname([email protected])
        [email protected] = SAMP.PlayerAnimationID([email protected])
        [email protected] = SAMP.GetPlayerColor([email protected])
        format [email protected] "{%X}%s [%d] Anim %d" [email protected] [email protected] [email protected] [email protected]
        0B6F: render font [email protected] draw_text [email protected] pos [email protected] [email protected] color [email protected]
       end
   end
end
end
end
That's cool, did you test it?
 
Top