Jump to content

[Help] Kicking all the players


Wisam

Recommended Posts

HEy i just wanted to make a script that allows ADMINS to kick all the players in the server for a specific reason with a command like /kickall , so if you know somthing that could help me please tell me.. i don't mean the functions only myabe some hints too.. and if you could help me do it with a gui too that'd be great :):D

Link to comment
function kickall(thePlayer, cmd, ...) 
     text = table.concat({...}, " ") 
     for _, player in ipairs (getElementsByType("player")) do 
        kickPlayer(player,thePlayer , text) 
     end 
end 
addCommandHandler("kickall", kickall) 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...