Jump to content

[Help] Kicking all the players


Wisam

Recommended Posts

Posted

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

☣ Plauge Arma II DayZ Mod Server ☣

Here's the link to stay tuned with the server progress and features:

https://forum.mtasa.com/viewtopic.php?f=114&t=96675

Get Ready to play DayZ like you never did before

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

Diet with russian vodka, lose 3 days in one week !

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...