Schimbare nume pe server !
Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com
- Pinu.
- Membru, skill +2
- Posts: 676
- Joined: 16 Dec 2012, 00:16
- Detinator Steam: Da
- SteamID: pinucso
- Reputatie: Restrictie moderator
- Location: Iasi
- Has thanked: 10 times
- Been thanked: 8 times
Salut am un server de furien , cum aş putea dezactiva chestia aia cu nu ai voie sa iti schimbi numele in timpul jocului ? Adică trebuie sa ies de pe server sa schimb numele si sa intru ! Cum aş putea dezactiva-o ?
empty
- ARTUR.HAZ
- Administrator
- Posts: 7652
- Joined: 04 Oct 2013, 14:32
- Detinator Steam: Da
- Reputatie: Administrator
- Has thanked: 146 times
- Been thanked: 123 times
- Contact:
Code: Select all
#include < amxmodx >
#define PLUGIN_NAME "Name restrict"
#define PLUGIN_VERSION "1.0"
#define PLUGIN_AUTHOR "cruyff"
new const g_Chars[ ][ ] =
{
"`",
"~"
};
public plugin_init( )
{
register_plugin( PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR );
}
public client_putinserver( id )
{
new szName[ 32 ];
get_user_name( id, szName, sizeof( szName ) -1 );
for( new i = 0; i < sizeof( g_Chars ); i++ )
{
if( contain( szName, g_Chars[ i ] ) != -1 )
{
server_cmd( "kick #%d Your name is restricted.", get_user_userid( id ) );
break;
}
}
}
- NisQ
- Utilizator neserios (tepar)
- Posts: 4070
- Joined: 26 May 2011, 01:52
- Detinator Steam: Da
- CS Status: 4k hours and still countin'
- Detinator server CS: GG.FRAGWAY.COM
- SteamID: nisq4vibe
- Reputatie: Utilizator neserios (tepar)
- Location: LONDON U.K
- Has thanked: 29 times
- Been thanked: 75 times
- Contact:
Daca e serverul tau, dezinstaleaza pluginul care interzice asta.
Workin' on my sheet - https://dreambabes.co.uk/