CLEO Help Help cleo

CLEO related
Status
Not open for further replies.

Wendetta

Member
Joined
Dec 8, 2016
Messages
9
Reaction score
0
Help me to make cleo, when write command to use for all players online on the server.
 

Wendetta

Member
Joined
Dec 8, 2016
Messages
9
Reaction score
0
Code:
{$CLEO}
                  
0662: "Cleo"
thread "Cleo"
wait 2500
0B34: samp register_client_command "kickall" to_label @cmd_1

:cmd_1
SAMP.IsCommandTyped(20@)
if
0AD4: 20@ = scan_string 20@ format "%d" 21@
then
    0B36: samp 1@ = get_player_nickname 21@
    0AF9: samp say_msg "/kick "all players online" "my reason" "
else
    print "~y~/kickall" 2000
end
SAMP.CmdRet()
 

WaTTi

Well-known member
Joined
Jan 4, 2015
Messages
260
Reaction score
8
Code:
{$CLEO}
0000: nope                  

wait 2500
0B34: samp register_client_command "kickall" to_label @cmd_1
    
0@ = 0 // command isnt typed
while true // get in the loop
wait 0
    if 0@ == 1 // command is typed
    then
        0B2B: samp 1@ = get_player_id_by_actor_handle $PLAYER_ACTOR // get your own ID so you dont kick yourself
        for 2@ = 0 to 100 // create a loop from 0 to 100 users
            if 0B23:  samp is_player_connected 2@ // is player connected
            then
                if 803B:   NOT 2@ == 1@ // if 2@ isnt our ID
                then say "/kick %d MYREASON" 2@
                end
            end
        end
        0@ = 0 // disable the loo
    end    
end

:cmd_1
0@ = 1 // COMMAND IS TYPED
SAMP.CmdRet()
 

_=Gigant=_

Well-known member
Joined
Mar 21, 2017
Messages
353
Reaction score
16
Wendetta said:
I want to write my reason on game, no to edit the script.

its impossible to kick players out of the server you can try to create some crasher and force players to get kicked out but this kickall cmd = no
 

Mila.cs ✅

Well-known member
Joined
Jun 24, 2016
Messages
247
Reaction score
10
Location
̀́̀́
_=Gigant=_ said:
Wendetta said:
I want to write my reason on game, no to edit the script.

its impossible to kick players out of the server you can try to create some crasher and force players to get kicked out but this kickall cmd = no

Ever heard of being admin? :trollface:
 
Status
Not open for further replies.
Top