Guest User

IP Ban by name System

a guest
Oct 31st, 2012
506
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. #define FILTERSCRIPT
  4. #define COLOR_PINK 0xFF66FFAA
  5.  
  6. */ Credits go to Private200
  7. Don't remove them */
  8.  
  9. public OnFilterScriptInit()
  10. {
  11. print("\n--------------------------------------");
  12. print(" Ban by name System ");
  13. print("--------------------------------------\n");
  14. return 1;
  15. }
  16.  
  17. public OnFilterScriptExit()
  18. {
  19. return 1;
  20. }
  21.  
  22. public OnPlayerConnect(playerid)
  23. {
  24. new pName[MAX_PLAYER_NAME];
  25. GetPlayerName(playerid, pName, sizeof(pName));
  26.  
  27. if(!strcmp(pName, "lol", true))
  28. {
  29. SendClientMessage(playerid, COLOR_PINK,"This name is not allowed");
  30. Ban(playerid);
  31. }
  32. else if(!strcmp(pName, "lul", true))
  33. {
  34. SendClientMessage(playerid, COLOR_PINK,"This name is not allowed");
  35. Ban(playerid);
  36. }
  37. else if(!strcmp(pName, "lolz", true))
  38. {
  39. SendClientMessage(playerid, COLOR_PINK,"This name is not allowed");
  40. Ban(playerid);
  41. }
  42. return 1;
  43. }
Advertisement
Add Comment
Please, Sign In to add comment