Schimbare nume pe server !

Discutii despre problemele aparute in jocul Counter-Strike.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Post Reply
User avatar
Pinu.
Membru, skill +2
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

11 Dec 2013, 12:14

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
RoyalServer 2
User avatar
ARTUR.HAZ
Administrator
Administrator
Posts: 7652
Joined: 04 Oct 2013, 14:32
Detinator Steam: Da
Reputatie: Administrator
Has thanked: 146 times
Been thanked: 123 times
Contact:

03 Jan 2014, 09:38

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;
      }
   }
}
User avatar
NisQ
Utilizator neserios (tepar)
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:

12 Jan 2014, 03:14

Daca e serverul tau, dezinstaleaza pluginul care interzice asta.
Workin' on my sheet - https://dreambabes.co.uk/
Post Reply

Return to “Probleme in jocul Counter-Strike”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 16 guests