PooweeR_

ANTI BOT

Jul 1st, 2011
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.67 KB | None | 0 0
  1. // Cria ai no topo
  2.  
  3. new NicksProibidos[][MAX_PLAYER_NAME] =
  4. {
  5.     "com1",
  6.     "com2",
  7.     "com3",
  8.     "com4",
  9.     "com5",
  10.     "com6",
  11.     "com7",
  12.     "com8",
  13.     "com9",
  14.     "lpt1",
  15.     "lpt2",
  16.     "lpt3",
  17.     "lpt4",
  18.     "lpt5",
  19.     "lpt6",
  20.     "lpt7",
  21.     "lpt8",
  22.     "lpt9",
  23.     "prn",
  24.     "nul",
  25.     "con",
  26.     "con1",
  27.     "aux",
  28.     "aux1",
  29. };
  30.  
  31. // Poe no começo do OnPlayerConnect
  32. new
  33.     nomenoob[24];
  34. GetPlayerName(playerid, nomenoob, 24);
  35.  
  36. for(new i; i < sizeof(NicksProibidos); i++)
  37. {
  38.     if(strcmp(NicksProibidos[i], nomenoob, true) == 0)
  39.     {
  40.     SetPlayerName(playerid, "[NWD]0wn4_");
  41.         BanEx(playerid, "BOT FDP");
  42.     }
  43. }
Advertisement
Add Comment
Please, Sign In to add comment