Wisam Posted August 27, 2014 Share Posted August 27, 2014 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 Link to comment
Wei Posted August 27, 2014 Share Posted August 27, 2014 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now