Raised This Month: $ Target: $400
 0% 

Banning on disconnect...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
TiToTal
Member
Join Date: Feb 2006
Old 03-26-2006 , 12:09   Banning on disconnect...
Reply With Quote #1

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?
TiToTal is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 03-26-2006 , 12:25  
Reply With Quote #2

Did you remember you asked about catching disconnect console text message? Have you read my answer? If not - read it.
VEN is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 03-26-2006 , 12:27  
Reply With Quote #3

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])
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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