Raised This Month: $ Target: $400
 0% 

rename plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
douglas04
New Member
Join Date: May 2022
Old 05-12-2022 , 21:12   rename plugin
Reply With Quote #1

Hi, i need a simple rename plugin for my server with restricted names config that change the name of the player when connecting from a config file, thanks in advance.
douglas04 is offline
bigdaddy424
Senior Member
Join Date: Oct 2021
Location: Jupiter
Old 05-12-2022 , 21:41   Re: rename plugin
Reply With Quote #2

https://forums.alliedmods.net/showthread.php?p=147257
bigdaddy424 is offline
douglas04
New Member
Join Date: May 2022
Old 05-13-2022 , 13:41   Re: rename plugin
Reply With Quote #3

Quote:
Originally Posted by bigdaddy424 View Post
something simpler please?
douglas04 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-13-2022 , 13:59   Re: rename plugin
Reply With Quote #4

Quote:
Originally Posted by douglas04 View Post
something simpler please?
Does the plugin not do what you requested?
Why does its complexity matter?
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Nutu_
AlliedModders Donor
Join Date: Mar 2016
Location: Germany
Old 05-13-2022 , 15:44   Re: rename plugin
Reply With Quote #5

Quote:
Originally Posted by douglas04 View Post
something simpler please?
PHP Code:
#include <amxmodx>

#define PLUGIN "Name Changer"
#define VERSION "1.0"

#define    TASK_NAME    06091993

new const g_szDefaultName[ ] = "instagram/fvckitshakespeare";

new 
g_szRestrictedThings[ ][ ] = {
    
"http://",
    
"boost",
    
".R0",
    
"AREA",
    
"ARENA",
    
"CsFree",
    
"LgK",
    
"cstrike",
    
"Strike",
    
"connect",
    
"KOSOVO",
    
"ALBANIA",
    
"kurac",
    
"picku",
    
"dick",
    
"pussy",
    
"fuck",
    
"jebem",
    
"jbt",
    
"(.)",
    
"www.",
    
":2",
    
".ro",
    
".ru"
    
".ua"
    
".com"
    
".net"
    
".org"
    
".biz"
    
".info"
    
".su"
    
":270"
}


public 
plugin_init( )
{
    
register_pluginPLUGINVERSION"nutu." );
}

public 
client_putinserverid )
{
    if( 
is_user_botid ) || is_user_hltvid ) )
        return;
    
    if( !
task_existsid TASK_NAME ) )
        
set_task1.5"TaskCheckName"id TASK_NAME );
    
}

public 
TaskCheckNameid )
{
    
id -= TASK_NAME;
    if( !
is_user_connectedid ) )
        return;
    
    new 
szName32 ];
    
get_user_nameidszNamesizeof szName ) -);
    
    for( new 
0sizeof g_szRestrictedThings ); i++ )
    {
        if( 
containiszNameg_szRestrictedThings] ) != -)
        {
            
            
//client_cmd( id, "name ^"%s^"", g_szDefaultName );
            
set_user_infoid"name"g_szDefaultName );
            
        }
    }

__________________
a simple act of caring creates an endless ripple.
Nutu_ is offline
douglas04
New Member
Join Date: May 2022
Old 05-13-2022 , 17:53   Re: rename plugin
Reply With Quote #6

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

#define PLUGIN "Name Changer"
#define VERSION "1.0"

#define    TASK_NAME    06091993

new const g_szDefaultName[ ] = "instagram/fvckitshakespeare";

new 
g_szRestrictedThings[ ][ ] = {
    
"http://",
    
"boost",
    
".R0",
    
"AREA",
    
"ARENA",
    
"CsFree",
    
"LgK",
    
"cstrike",
    
"Strike",
    
"connect",
    
"KOSOVO",
    
"ALBANIA",
    
"kurac",
    
"picku",
    
"dick",
    
"pussy",
    
"fuck",
    
"jebem",
    
"jbt",
    
"(.)",
    
"www.",
    
":2",
    
".ro",
    
".ru"
    
".ua"
    
".com"
    
".net"
    
".org"
    
".biz"
    
".info"
    
".su"
    
":270"
}


public 
plugin_init( )
{
    
register_pluginPLUGINVERSION"nutu." );
}

public 
client_putinserverid )
{
    if( 
is_user_botid ) || is_user_hltvid ) )
        return;
    
    if( !
task_existsid TASK_NAME ) )
        
set_task1.5"TaskCheckName"id TASK_NAME );
    
}

public 
TaskCheckNameid )
{
    
id -= TASK_NAME;
    if( !
is_user_connectedid ) )
        return;
    
    new 
szName32 ];
    
get_user_nameidszNamesizeof szName ) -);
    
    for( new 
0sizeof g_szRestrictedThings ); i++ )
    {
        if( 
containiszNameg_szRestrictedThings] ) != -)
        {
            
            
//client_cmd( id, "name ^"%s^"", g_szDefaultName );
            
set_user_infoid"name"g_szDefaultName );
            
        }
    }

Multumesc frumos
douglas04 is offline
Reply



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 22:42.


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