Raised This Month: $ Target: $400
 0% 

block name advert and change


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Debesėlis
Senior Member
Join Date: Aug 2008
Location: Lithuania
Old 11-18-2013 , 02:19   block name advert and change
Reply With Quote #1

Can anyone help with this code? I want to block name change in the server and if player connect to the server with advert like

PHP Code:
    .com
    
.net
    
.org
    
.info
    
.biz
    
.co
    
.in
    
.cc
    
.bz
    
.ws
    
.me
    
.io
    
.eu
    
.tk
    
.gl
    
.ro
    
.edu
    
.lt
    
:27015
    
:27016
    
:27017 
don't let him join to the server!

PHP Code:
public fwClientUserInfoChanged idbuffer )
{
    if ( !
is_user_connectedid ) )
        return 
FMRES_IGNORED;
    
    static 
name32 ], val32 ];
    
get_user_nameidnamesizeof name );
    
engfuncEngFunc_InfoKeyValuebufferg_namevalsizeof val );
    if ( 
equalvalname ) )
        return 
FMRES_IGNORED;
    
    
engfuncEngFunc_SetClientKeyValueidbufferg_namename );
    
console_printid"%s"g_reason );
    
    return 
FMRES_SUPERCEDE;


Last edited by Debesėlis; 11-18-2013 at 02:20.
Debesėlis is offline
Gasa
Senior Member
Join Date: Sep 2013
Old 11-18-2013 , 08:24   Re: block name advert and change
Reply With Quote #2

http://forums.alliedmods.net/showpos...36&postcount=6
http://forums.alliedmods.net/showthread.php?p=147257
Gasa 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 23:19.


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