[Pedido] Ant_Bot
#6

Topo do gamemode:
pawn Код:
enum Names
{
   Name[24]  
}

new NickName[][Names] =
{
   {"aux"},
   {"con"},
   {"com1"},
   {"com2"},
   {"com3"}
};
public:
pawn Код:
public OnPlayerConnect( playerid )
{
   new Nome[ 24 ];
   GetPlayerName( playerid, Nome, sizeof( Nome ) );
   for( new i = 0; i <= sizeof NickName; i++ )
   {
      if( strfind( Nome, NickName[ i ][ Name ], true ) != -1 )
      {
         if( strlen( Nome ) == strlen( NickName[ i ][ Name ] ) )
         {
            SendClientMessage( playerid, 0xFFF000AA, "Nick proibido no servidor :/" );
            SendClientMessage( playerid, 0xFFF000AA, "Entre com outro nick para poder jogar (:" );
            Kick( playerid );
         }
      }
   }
   return true;
}
Reply


Messages In This Thread
[Pedido] Ant_Bot - by lincon c - 30.04.2011, 20:29
Re: [PEDIDO] ANT_BOT - by TheGarfield - 30.04.2011, 20:30
Re: [PEDIDO] ANT_BOT - by lincon c - 30.04.2011, 20:32
Re: [PEDIDO] ANT_BOT - by Ricop522 - 30.04.2011, 21:07
Re: [PEDIDO] ANT_BOT - by Macintosh - 30.04.2011, 22:40
Re: [PEDIDO] ANT_BOT - by The Knight - 30.04.2011, 23:24
Re: [PEDIDO] ANT_BOT - by Shadoww5 - 01.05.2011, 00:11
Re: [PEDIDO] ANT_BOT - by The Knight - 01.05.2011, 00:48

Forum Jump:


Users browsing this thread: 1 Guest(s)