Guest User

Player kick by Name System

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