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
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:
enis:
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
10@ = Render.CreateFont("Tahoma", 7, 5)
while true
wait 0
FOR 1@ = 0 to 999
if
0B23: samp is_player_connected 1@
then
6@ = 5
7@ = 230
0B20: samp 31@ = actor_handle_by_samp_player_id 1@
if
056D: actor 31@ defined
then
0B2B: samp 2@ = get_player_id_by_actor_handle 31@
3@ = SAMP.GetPlayerNickname(2@)
4@ = SAMP.PlayerAnimationID(2@)
5@ = SAMP.GetPlayerColor(2@)
alloc 3@ 32
alloc 4@ 32
alloc 27@ 64
7@ += 14
0AD3: 27@ = format "%d %s %s" 2@ 3@ 4@
0B6F: render font 10@ draw_text 27@ pos 6@ 7@ color 5@
free 3@
free 4@
free 27@
end
end
end
end