AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   kick all clients (https://forums.alliedmods.net/showthread.php?t=40714)

eRik 07-02-2006 09:52

kick all clients
 
Is there a way to kick all clients with reason? Tell me how to script it pls if it is possible.

Hawk552 07-02-2006 10:34

Re: kick all clients
 
->

Code:
stock kick_all(reason[]) {     static iPlayers[32],iPlayersnum     get_players(iPlayers,iPlayersnum)         for(new iCount;iCount < iPlayersnum;iCount++)         server_cmd("kick #%d %s",get_user_userid(iPlayers[iCount]),reason) }

Dark Killer 07-03-2006 02:28

Re: kick all clients
 
Hawk... Can u tell me y to use stock and static? I am newbie u know

Hawk552 07-03-2006 09:44

Re: kick all clients
 
http://forums.alliedmods.net/showthread.php?t=40340
http://forums.alliedmods.net/showthread.php?t=40341


All times are GMT -4. The time now is 08:08.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.