HoangNamMapper

Test

Oct 3rd, 2016
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. #define FILTERSCRIPT
  2.  
  3. #include <a_samp>
  4.  
  5. #if defined FILTERSCRIPT
  6. #endif
  7. enum Info
  8. {
  9. AdminLevel,
  10. }
  11. new string[128];
  12. new PlayerInfo[MAX_PLAYERS][Info];
  13. /*new MG [] = //You can add more symbols, characters in here(Shouldn't use it)
  14. {
  15. "PG",
  16. "MG",
  17. "RK",
  18. "admin",
  19. "id",
  20. "hack",
  21. "bug",
  22. "SK",
  23. "BK",
  24. "fuck",
  25. "bitch",
  26. "gay",
  27. "stupid",
  28. "@",
  29. "#",
  30. "^",
  31. "&",
  32. };*/
  33. public OnPlayerText(playerid, text[])
  34. {
  35. //for(new i = 0; i < sizeof(MG); i++)
  36. {
  37. if(strfind(text, "mg", true) != -1 && PlayerInfo[playerid][AdminLevel] == 0)
  38. {
  39. SendClientMessage(playerid, -1, "MetaGaming!! Stop!");
  40. return 0;
  41. }
  42.  
  43. }
  44. if(strfind(text, "pg", true) != -1 && PlayerInfo[playerid][AdminLevel] == 0)
  45. {
  46. SendClientMessage(playerid, -1, "MetaGaming!! Stop!");
  47. return 0;
  48. }
  49. return 1;
  50.  
  51. }
Advertisement
Add Comment
Please, Sign In to add comment