CLEO Help solved

CLEO related
Status
Not open for further replies.

[RP]Foolish

Active member
Joined
Mar 18, 2020
Messages
68
Reaction score
36
Location
sea
PHP:
{$CLEO}

0000:
repeat
wait 0
until 0afa:
0b34: "autoac" @autoac

while true
wait 0
    if 30@ == true
    then
        if
            0B61:  samp is_local_player_spawned
        then
            for 0@ = 98 to 99 // last two lines
                0AC8: 1@ = allocate_memory_size 260
                0AC8: 2@ = allocate_memory_size 260
                0B75: samp get_chat_string 0@ text_to 1@ prefix_to 2@ color_to 3@ prefix_color_to 4@
                if
                    0C29: $NOT_USED = stristr string1 1@ string2 "request"
                then
                    if
                        0C29: $NOT_USED = stristr string1 1@ string2 "/accept licence"
                    then
                        0AD4: $NOT_USED = scan_string 1@ format "Use [/accept licence %d] to accept this licence request" 5@
                        0AC8: 6@ = allocate_memory_size 260
                        0AD3: 6@ = format "/accept licence %d" 5@
                        0AF9: samp say_msg 6@
                        free 6@
                        wait 1500
                        30@ = false
                    end
                end
                free 1@
                free 2@
            end
        end
    end
end

:autoac
0b12: 30@ = 30@ XOR TRUE
if
    30@ == TRUE
then
    0ACD: show_text_highpriority "~W~Auto ACCEPT: ~G~ON~W~" time 1000
else
    0ACD: show_text_highpriority "~W~Auto ACCEPT: ~R~OFF~W~" time 1000
end
Samp.CmdRet
 
Status
Not open for further replies.
Top