Kick for ip
How can I make next.. If player ip=127.0.0.1 (for example)) then kick player with reason and logs.
|
Re: Kick for ip
Code:
Just made this on the spot, but add all the IP's you want kicked in the "IP_TO_KICK" array, if you wannted to and another, it would like so: Code:
Make sure you change the define (NUM_IP) to the IP's in the array. |
Re: Kick for ip
It not work( I make amxx with your code but add my admin ip and make my admin priority off. After restart server and join. So I was in game without problems and kicks :((
|
Re: Kick for ip
You didn't expect it to actually work did you ?
Those IPs are "placeholders" for LOCAL IP ADDRESS !!! |
Re: Kick for ip
Those ip used for example, but this code didnt work with any ips
|
Re: Kick for ip
Eh, i messed up the kick command. Try this:
Code:
|
Re: Kick for ip
Hmmm sexy code)) Its work, but reason can be only one word ((. Oh yes, can you make that after kick player, some messages print in chat and in console. I try something:
Code:
public client_putinserver(id) |
Re: Kick for ip
You can't print a msg. in conosle after player is kicked. :/...must do that before! And reason can be more that onw word 0o,in that code was just an e.g
|
Re: Kick for ip
If you want to exec a command at the player who is getting kicked you should exec the command and do a delayed kick with set_task..
|
Re: Kick for ip
With set_task I tried. Not work.
Quote:
|
| All times are GMT -4. The time now is 21:34. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.