help with client check on client_connect
This is a section of one plugin where everything else works ok, just this check doesnt. Whats wrong here ?
Code:
public client_connect(id) |
Re: help with client check on client_connect
Maybe sInfo is empty?
I had this problem when i installed dproto on my servers - problem with get_user_info().. |
Re: help with client check on client_connect
It's not empty, i tested it, the weird thing is that this code works fine when there is
server_cmd("kick %s... but it doesnt work with amx_banip or any other ban command. Also i tried with client_putinserver and client_authorized and it didnt work. |
Re: help with client check on client_connect
if(strlen(sInfo) > 0)
{ After this, try to put client_print(id, print_console, "something") And see if that code is called. |
Re: help with client check on client_connect
Code:
if(strlen(sInfo) > 0)Code:
if(sInfo[0]) |
Re: help with client check on client_connect
Ok, I tried ^ and Connor's sugestion, this above doesnt change anything ,and when i tested it with print and nothing was shown, although i know it calls those commands 'cause there are log entries. I thought that there's something wrong with amxx and that's why kick works but not any ban command, and i tried with
server_cmd("addip 9999 %s;wait;writeip", ip); it works that way just for few seconds, and after that server responds again. Also when i tested on dedicated from my pc everything worked great but it doesnt work on my rented server. I tried to put plugin on top of list in plugins.ini, still nothing. |
Re: help with client check on client_connect
Quote:
Quote:
BTW, 9999 is not a permanent ban. |
Re: help with client check on client_connect
I've noticed that some things just do not work @ client_connect. Try your code at client_putinserver instead and see if it works.
|
Re: help with client check on client_connect
I tried that, didnt make any difference. The best solution i've come up so far are combining kick and addip commands, although it bans for only few secs, it better than non-working amx ban commands.
|
| All times are GMT -4. The time now is 15:35. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.