{$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()
{$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()
Wendetta said:I want to write my reason on game, no to edit the script.
_=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
Mila.cs ✅ said:Ever heard of being admin? :trollface: