Plugin boti anti fake[rezolvat]

Categoria cu cereri de pluginuri si nu numai.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Forum rules
Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .
Post Reply
User avatar
CsN^ ;x
Membru eXtream
Membru eXtream
Posts: 3560
Joined: 02 Apr 2012, 16:58
Detinator Steam: Nu
CS Status: Retras din domeniul Counter-Strike
Reputatie: Fost moderator
Location: Bucuresti
Has thanked: 797 times
Been thanked: 607 times

13 Aug 2013, 19:06

eMy fondatorul serverului de hns iar sia bagat pluginu acela de boti care trimite si face reclama .
consola | Afiseaza codul
DEAD* sebi. : :))))))
*DEAD* ZTAAP : ___H;N;S ? A;Z;N;E;T ? R;O__(H'A'I S'I T'U)___"
Dropped ZTAAP from server
Reason: Client sent 'drop'
*DEAD* 1b2XU : ___H;N;S ? A;Z;N;E;T ? R;O__(H'A'I S'I T'U)___"
Dropped 1b2XU from server
Reason: Client sent 'drop'
sebi. : Think FAST - GO FURIOUS !.-nVIDIA V3 
*DEAD* sK39S : ___H;N;S ? A;Z;N;E;T ? R;O__(H'A'I S'I T'U)___"
Dropped sK39S from server
Scuzati pentru reclama dar cam totii stiti acest server :-j va rog un plugin de preferabil .sma care sa blogheze asemenea boti .

EDIT : Eu am gasit acest plugin oare merge la testat cineva ?
acesta | Afiseaza codul
Cod:
#include <amxmodx> 

#define PLUGIN "Spambot block" 
#define VERSION "1.0" 
#define AUTHOR "mazdan" 

new bool:can_say[33] 

public plugin_init() 
{ 
   register_plugin(PLUGIN, VERSION, AUTHOR); 
   register_clcmd("say","check_say") 
} 

public client_putinserver(id) 
    can_say[id]=true; 
    
public client_disconnect(id) 
    can_say[id]=false; 

public check_say(id) 
if(can_say[id]) 
    return PLUGIN_CONTINUE; 
else 
{    
    new uip[17] 
    get_user_ip(id,uip,16,1) 
    server_cmd("addip 60.0 %s",uip) 
    log_to_file("spambot.log","Bot has been banned ip %s",uip) 
    return PLUGIN_HANDLED; 
}

EDIT2: l-am bagat si nu mai imi baga boti ,se poate spune ca sunt rezolvat ,scuze pentru topic ,rezolvarea e pluginu de mai sus .
Addons HNS level,gravity,xp DOWNLOAD ( e țeapă)
https://5filme.com/ - un simplu site de filme pentru timpul liber
RoyalServer 2
OneShot.
Membru, skill +2
Membru, skill +2
Posts: 719
Joined: 12 Sep 2011, 19:17
Detinator Steam: Da
Detinator server CS: drx.indungi.ro
SteamID: oneshot_01
Reputatie: Fost moderator ajutator
Nume anterior: OnlyHD
Location: Bucuresti
Has thanked: 196 times
Been thanked: 66 times
Contact:

13 Aug 2013, 19:23

Sau poti incerca pluginul acesta facut de Askhanar :
Block Chat | Afiseaza codul
#include <amxmodx>

#define PLUGIN "Block Chat"
#define VERSION "1.0"


// --| CC_ColorChat.
enum Color
{
   NORMAL = 1,       // Culoarea care o are jucatorul setata in cvar-ul scr_concolor.
   GREEN,          // Culoare Verde.
   TEAM_COLOR,       // Culoare Rosu, Albastru, Gri.
   GREY,          // Culoarea Gri.
   RED,          // Culoarea Rosu.
   BLUE,          // Culoarea Albastru.
};

new TeamName[  ][  ] = 
{
   "",
   "TERRORIST",
   "CT",
   "SPECTATOR"
};
// --| CC_ColorChat.

// --| Tag-ul mesajului din chat.
new const g_szTag[ ] = "[Anti Spam]";
// --| ---------------------------------

// --| Cate secunde este blocat chat`ul.
new const Float:g_fNoFloodSeconds = 3.5;
// --| ---------------------------------

// --| Cate secunde este blocat chat`ul ( x secunde de la conectare ).
new const Float:g_fBlockedSeconds = 25.0;
// --| ---------------------------------

// --| De aici e treaba mea .
new Float:g_fGameTime[ 33 ];
new Float:g_fGameTimeSecond[ 33 ];

public plugin_init( )
{
   register_plugin( PLUGIN, VERSION, "Askhanar" );
   
   register_clcmd( "say","ClCmdSayOrSayTeam" );
   register_clcmd( "say_team","ClCmdSayOrSayTeam" );
   
   // Add your code here...
}

public client_connect( id )
{
   g_fGameTime[ id ] = get_gametime( ) + g_fBlockedSeconds;
   g_fGameTimeSecond[ id ] = 0.0;
}

public client_disconnect( id )
{
   g_fGameTime[ id ] = 0.0;
   g_fGameTimeSecond[ id ] = 0.0;
}

public ClCmdSayOrSayTeam( id )
{
   static Float:fGameTime;
   fGameTime = get_gametime( );
   
   if( g_fGameTime[ id ] > fGameTime && ~get_user_flags(id) & ADMIN_KICK )
   {
      
      ColorChat( id, RED, "^x04%s^x01 Doar ce te-ai conectat pe server, asteapta^x03 %.1f^x01 secunde !", g_szTag, g_fGameTime[ id ] - fGameTime );
      return PLUGIN_HANDLED;
   }
   else if( g_fGameTimeSecond[ id ] > fGameTime && ~get_user_flags(id) & ADMIN_KICK )
   {
      ColorChat( id, RED, "^x04%s^x01 Asteapta^x03 %.1f^x01 secunde pentru a putea scrie din nou !", g_szTag, g_fGameTimeSecond[ id ] - fGameTime );
      return PLUGIN_HANDLED;
   }
   
   g_fGameTimeSecond[ id ] = fGameTime + g_fNoFloodSeconds;
   
   return PLUGIN_CONTINUE;
   
}

// --| CC_ColorChat.
ColorChat(  id, Color:iType, const msg[  ], { Float, Sql, Result, _}:...  )
{
   
   // Daca nu se afla nici un jucator pe server oprim TOT. Altfel dam de erori..
   if( !get_playersnum( ) ) return;
   
   new szMessage[ 256 ];

   switch( iType )
   {
       // Culoarea care o are jucatorul setata in cvar-ul scr_concolor.
      case NORMAL:   szMessage[ 0 ] = 0x01;
      
      // Culoare Verde.
      case GREEN:   szMessage[ 0 ] = 0x04;
      
      // Alb, Rosu, Albastru.
      default:    szMessage[ 0 ] = 0x03;
   }

   vformat(  szMessage[ 1 ], 251, msg, 4  );

   // Ne asiguram ca mesajul nu este mai lung de 192 de caractere.Altfel pica server-ul.
   szMessage[ 192 ] = '^0';
   

   new iTeam, iColorChange, iPlayerIndex, MSG_Type;
   
   if( id )
   {
      MSG_Type  =  MSG_ONE_UNRELIABLE;
      iPlayerIndex  =  id;
   }
   else
   {
      iPlayerIndex  =  CC_FindPlayer(  );
      MSG_Type = MSG_ALL;
   }
   
   iTeam  =  get_user_team( iPlayerIndex );
   iColorChange  =  CC_ColorSelection(  iPlayerIndex,  MSG_Type, iType);

   CC_ShowColorMessage(  iPlayerIndex, MSG_Type, szMessage  );
      
   if(  iColorChange  )   CC_Team_Info(  iPlayerIndex, MSG_Type,  TeamName[ iTeam ]  );

}

CC_ShowColorMessage(  id, const iType, const szMessage[  ]  )
{
   
   static bool:bSayTextUsed;
   static iMsgSayText;
   
   if(  !bSayTextUsed  )
   {
      iMsgSayText  =  get_user_msgid( "SayText" );
      bSayTextUsed  =  true;
   }
   
   message_begin( iType, iMsgSayText, _, id  );
   write_byte(  id  );      
   write_string(  szMessage  );
   message_end(  );
}

CC_Team_Info( id, const iType, const szTeam[  ] )
{
   static bool:bTeamInfoUsed;
   static iMsgTeamInfo;
   if(  !bTeamInfoUsed  )
   {
      iMsgTeamInfo  =  get_user_msgid( "TeamInfo" );
      bTeamInfoUsed  =  true;
   }
   
   message_begin( iType, iMsgTeamInfo, _, id  );
   write_byte(  id  );
   write_string(  szTeam  );
   message_end(  );

   return 1;
}

CC_ColorSelection(  id, const iType, Color:iColorType)
{
   switch(  iColorType  )
   {
      
      case RED:   return CC_Team_Info(  id, iType, TeamName[ 1 ]  );
      case BLUE:   return CC_Team_Info(  id, iType, TeamName[ 2 ]  );
      case GREY:   return CC_Team_Info(  id, iType, TeamName[ 0 ]  );

   }

   return 0;
}

CC_FindPlayer(  )
{
   new iMaxPlayers  =  get_maxplayers(  );
   
   for( new i = 1; i <= iMaxPlayers; i++ )
      if(  is_user_connected( i )  )
         return i;
   
   return -1;
}
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 22 guests