Raised This Month: $ Target: $400
 0% 

[Help] BanIP HLTV


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
plazma
Senior Member
Join Date: Oct 2013
Old 05-17-2014 , 14:51   [Help] BanIP HLTV
Reply With Quote #1

How I can BanIP when players join by HLTV-s !!!


PHP Code:
#include <amxmodx> 

new pcvar_anti_hltv

public 
plugin_init(){ 
    
register_plugin("Anti HLTV","1.0","Lulu the hero"); 
     
    
pcvar_anti_hltv register_cvar("anti_hltv","0"); 



public 
client_connect(id
    if(
get_pcvar_num(pcvar_anti_hltv) && is_user_hltv(id)) 
        
server_cmd("kick #%d ^"HLTV not allowed on this server!^"",get_user_userid(id)) 
__________________
Free Palestine ♥
plazma is offline
Old 05-17-2014, 15:09
c2d22
This message has been deleted by c2d22. Reason: lag
ironskillz1
AlliedModders Donor
Join Date: Jul 2012
Location: Sweden
Old 05-17-2014 , 15:10   Re: [Help] BanIP HLTV
Reply With Quote #2

Just set sv_proxies to 0 and you dont need to use this plugin lol
__________________
I have many private and unique plugins for Jailbreak and Hide'N'Seek. PM me for more info.

Pm me.

Check out my roulette site.
ironskillz1 is offline
Send a message via Skype™ to ironskillz1
c2d22
Junior Member
Join Date: Feb 2013
Location: Albania
Old 05-17-2014 , 15:13   Re: [Help] BanIP HLTV
Reply With Quote #3

PHP Code:
#include <amxmodx> 

new pcvar_anti_hltv

public 
plugin_init(){ 
    
register_plugin("Anti HLTV","1.0","Lulu the hero"); 
     
    
pcvar_anti_hltv register_cvar("anti_hltv","0"); 



public 
client_connect(id
{
    if(
get_pcvar_num(pcvar_anti_hltv) && is_user_hltv(id)) 
    {
    new 
ip[20]
    
get_user_ip(id,ip,charsmax(ip),1)
    
server_cmd("addip 0 %s",ip)
    }

c2d22 is offline
plazma
Senior Member
Join Date: Oct 2013
Old 05-17-2014 , 16:30   Re: [Help] BanIP HLTV
Reply With Quote #4

Quote:
Originally Posted by c2d22 View Post
PHP Code:
#include <amxmodx> 

new pcvar_anti_hltv

public 
plugin_init(){ 
    
register_plugin("Anti HLTV","1.0","Lulu the hero"); 
     
    
pcvar_anti_hltv register_cvar("anti_hltv","0"); 



public 
client_connect(id
{
    if(
get_pcvar_num(pcvar_anti_hltv) && is_user_hltv(id)) 
    {
    new 
ip[20]
    
get_user_ip(id,ip,charsmax(ip),1)
    
server_cmd("addip 0 %s",ip)
    }

Thank You.
__________________
Free Palestine ♥
plazma is offline
Fuck For Fun
Veteran Member
Join Date: Nov 2013
Old 05-17-2014 , 20:07   Re: [Help] BanIP HLTV
Reply With Quote #5

set: sv_proxies "0"
in server.cfg
Fuck For Fun is offline
Send a message via Skype™ to Fuck For Fun
plazma
Senior Member
Join Date: Oct 2013
Old 05-18-2014 , 03:42   Re: [Help] BanIP HLTV
Reply With Quote #6

I know this, thanks all
__________________
Free Palestine ♥
plazma is offline
Reply


Thread Tools
Display Modes

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 09:45.


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