AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   block name advert and change (https://forums.alliedmods.net/showthread.php?t=229991)

Debesėlis 11-18-2013 02:19

block name advert and change
 
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;



Gasa 11-18-2013 08:24

Re: block name advert and change
 
http://forums.alliedmods.net/showpos...36&postcount=6
http://forums.alliedmods.net/showthread.php?p=147257


All times are GMT -4. The time now is 23:19.

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