Jump to content

- Advertisement -
Photo

[CS16-Request] Plugin Change Nick


  • Please log in to reply
1 reply to this topic

#1
IGiveyouHS ;x

IGiveyouHS ;x

    No Limit Member

  • Banned
  • 2106 posts
  • 213 topics
  • Joined 26-March 14
  • Country: Country Flag

Buna seara as dori si eu un plugin care sa schimbe numele la un player care are nick www,.ro sau alte reclame la anumite servere.

 

 

Si mai am o problema cu top15 la 2 3 zile maxim se reseteaza automat si am scris csstats 0 dar degeaba am verificat si in server.cfg peste tot valorile sunt normale are careva idee ce ar putea avea?Daca da atunci sa-mi lasati si un plugin cu top15 bun.

 

O seara buna in continuare.

 

 

Cu stima si respect for CS16,

IGiveyouHS ;x



#2
-ToTo-

-ToTo-

    Addicted Member

  • Membru
  • 206 posts
  • 12 topics
  • Joined 07-August 16
  • Country: Country Flag
#include <amxmodx> 
 
#define PLUGIN "Name Replacer" 
#define VERSION "1.0" 
 
#define   TASK_NAME   06091993 
 
new const g_szDefaultName[ ] = "Player"; 
 
new g_szRestrictedThings[ ][ ] = 
   "www.", 
   ".ro", 
   ".com", 
   ".net", 
   ":270", 
   "anzo", 
   "faradungi", 
   ".org", 
   "Scorpionii", 
   "EVILZCS", 
   "PRONION", 
   ".RO", 
   "player" 
   "#Cstrike" 
 
 
public plugin_init( ) 
   register_plugin( PLUGIN, VERSION, "dasds" ); 
    
   // Add your code here... 
 
public client_putinserver( id ) 
   if( is_user_bot( id ) || is_user_hltv( id ) ) 
      return; 
       
   if( !task_exists( id + TASK_NAME ) ) 
      set_task( 1.5, "TaskCheckName", id + TASK_NAME ); 
       
 
public TaskCheckName( id ) 
   id -= TASK_NAME; 
   if( !is_user_connected( id ) ) 
      return; 
       
   new szName[ 32 ]; 
   get_user_name( id, szName, sizeof ( szName ) -1 ); 
    
   for( new i = 0; i < sizeof ( g_szRestrictedThings ); i++ ) 
   { 
      if( containi( szName, g_szRestrictedThings[ i ] ) != -1 ) 
      { 
          
         //client_cmd( id, "name ^"%s^"", g_szDefaultName ); 
         set_user_info( id, "name", g_szDefaultName ); 
          
      } 
   } 
}

  • ConSecinte likes this




2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users