AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Banning on disconnect... (https://forums.alliedmods.net/showthread.php?t=26065)

TiToTal 03-26-2006 12:09

Banning on disconnect...
 
I was trying to ban someone when the person disconnects...

Code:
public client_disconnect(id) {              ..... (don't know how) ... }


I tryed something but didn't work...
can you give me some help? :roll:
:wink:

VEN 03-26-2006 12:25

Did you remember you asked about catching disconnect console text message? Have you read my answer? If not - read it.

Hawk552 03-26-2006 12:27

Try this:

Code:
public client_disconnect(id) {     new szAuthid[36]     get_user_authid(id,szAuthid,35)         server_cmd("banid 0 ^"%s^"",szAuthid) }

If that doesn't work, try this:

Code:
#include <amxmodx> new g_szAuthids[33][36] public client_putinserver(id)     get_user_authid(id,g_szAuthids[id],35) public client_disconnect(id)     server_cmd("banid 0 ^"%s^"",g_szAuthids[id])


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

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