CLEO Help cleo check if player is near (streamed)

CLEO related
Status
Not open for further replies.

zaki19

Well-known member
Joined
Feb 27, 2013
Messages
393
Reaction score
0
hi guys
can you give a cleo source that check if player is streamed

i type /is (player id)
and it respond with
no or yes
 
Joined
Feb 18, 2005
Messages
2,963
Reaction score
267
Code:
{$CLEO}
0000: "UGBASE.EU"
03A4: "SPRINGFIELD"
wait 2000
0B34: "is" @CHECK

while true
wait 0
end

:CHECK
wait 0
0B35: samp 0@ = get_last_command_params
if 0AD4: 1@ = scan_string 0@ format "%d" 2@ 
then
    if and
    2@ >= 0 
    not  2@ > 1000
    then 
        if 0B23: samp is_player_connected 2@
        then
            if 0B20: samp 3@ = actor_handle_from_samp_playerid 2@
            then
            0AF8: "Player %d is streamed" 0xFFFFFF 2@
            else 
            0AF8: "Player %d not streamed" 0xFFFFFF 2@
            end
        else
        0AF8: "Player %d not connected" 0xFFFFFF 2@
        end
    end
end
0B43: cmd_ret
 

zaki19

Well-known member
Joined
Feb 27, 2013
Messages
393
Reaction score
0
i fix it

{$CLEO}
0000: "UGBASE.EU"
03A4: "SPRINGFIELD"
wait 2000
0B34: "is" @CHECK

while true
wait 0
end

:CHECK
wait 0
0B35: samp 0@ = get_last_command_params
if
0AD4: 1@ = scan_string 0@ format "%d" 2@
else_jump @CHECK


:checker
wait 1
if 0B20: samp 3@ = actor_handle_from_samp_playerid 2@
else_jump @no
0AF8: "Player %d is streamed" 0xFFFFFF 2@
SAMP.CmdRet
:no           
0AF8: "Player %d not streamed" 0xFFFFFF 2@
SAMP.CmdRet

it works :) thanks bro
 
Status
Not open for further replies.
Top