[Ajuda] Anti Bot con/aux
#8

pawn Код:
#include <a_samp>
#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" PASSA PARA O SEU GM");
    print("--------------------------------------\n");
    return 1;
}

#endif
new Name[MAX_PLAYER_NAME];

new NicksProibidos[54][MAX_PLAYER_NAME] ={  // 54 ant nick se for aumenta a cada 1 aumentado aumente ali tanbem!
"com1","com2","com3","com4","com5","com6","com7","com8","com9","COM1","COM2","COM3",
"COM4","COM5","COM6","COM7","COM8","COM9","lpt1","lpt2","lpt3","lpt4","lpt5","lpt6",
"lpt7","lpt8","lpt9","prn1","prn2","prn3","prn4","prn5","prn6","prn7","prn8","prn9",
"aux1","aux2","aux3","aux4","aux5","aux6","aux7","aux8""aux9","clock$","nul","con",
"CON","con","con1","aux","aux1","PRN","AUX"
};

public OnPlayerConnect(playerid) {
  for (new i; i < sizeof(NicksProibidos); i++) {
    new nickproibido[40];
    GetPlayerName(playerid, nickproibido, 40);
    if (strfind(NicksProibidos[i], nickproibido, true) == 0) {
      SendClientMessage(playerid, 0xFFFF00AA, "MENSAGEM");
      SendClientMessage(playerid, 0xFFFF00AA, "MENSAGEM");
      GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~r~VOCE FOI BANIDO!!", 3000, 3); //ira aparecer na tela eu acho massa se usar se quizer!
      Ban(playerid);
    }
  }
  // no caso daquelas tags
  if (strfind(Name, "[SB]", true) != -1) return SendClientMessage(playerid, 0xFF000096, "TAG    [SB] NAO PERMITIDA!"), Ban(playerid);
  if (strfind(Name, "[OBS]", true) != -1) return SendClientMessage(playerid, 0xFF000096, "TAG [OBS] NAO PERMITIDA!"), Ban(playerid);
  if (strfind(Name, "[MLK]", true) != -1) return SendClientMessage(playerid, 0xFF000096, "TAG [MLK] NAO PERMITIDA!"), Ban(playerid);
  return 1;
} /*=============================================================================*/
Reply


Messages In This Thread
Anti Bot con/aux - by Wendel S. - 22.07.2012, 17:31
Respuesta: Anti Bot con/aux - by Coreia - 22.07.2012, 17:34
Re: Anti Bot con/aux - by Victor' - 22.07.2012, 17:38
Re: Anti Bot con/aux - by Wendel S. - 22.07.2012, 18:00
Re: Anti Bot con/aux - by Wendel S. - 22.07.2012, 18:02
Re: Anti Bot con/aux - by Victor' - 22.07.2012, 18:11
Re: Anti Bot con/aux - by Wendel S. - 22.07.2012, 18:57
AW: Anti Bot con/aux - by billy the kid - 22.07.2012, 21:32

Forum Jump:


Users browsing this thread: 1 Guest(s)