SHARE
TWEET

Bot

ViDa_LoKa Jan 21st, 2017 (edited) 213 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <a_samp>
  2.  
  3. #define COR_NICK 0xFF0000FF //COR DO NICK DO BOT
  4.  
  5. #define NOME_BOT OLA_SOU_UM_BOT //NOME DO BOT
  6. #define ID 100 //ID DO BOT
  7.  
  8. //palavras que o bot irĂ¡ detectar
  9. new FalouHack[] =
  10. {
  11.     "hack",
  12.     "racker",
  13.     "rak",
  14.     "hask",
  15.     "hak",
  16.     "xitado",
  17.     "xiter",
  18. };
  19.  
  20. public OnPlayerText(playerid, text[])
  21. {
  22.     if(strfind(text, FalouHack, true) != -1)
  23.     {
  24.         SetTimerEx("BotMensagem", 2000, false, "i", playerid);
  25.     }
  26.     return 1;
  27. }
  28.  
  29. forward BotMensagem(playerid);
  30. public BotMensagem(playerid)
  31. {
  32.     static str[128],pname[MAX_PLAYER_NAME];
  33.     GetPlayerName(playerid, pname, sizeof(pname));
  34.     format(str, sizeof (str), ""#NOME_BOT": {FFFFFF}[ID:"#ID"]: %s, use /report id motivo para reportar o hack!", pname);
  35.     return SendClientMessageToAll(COR_NICK, str);
  36. }
  37. //BY ViDa_LoKa
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top