seroff

Easy Anti Protector CS 1.6 By Seroff

Dec 26th, 2015
403
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. #include <amxmodx>
  2.  
  3. new bool:isProtector[33]
  4.  
  5. new g_CheckCvar[][] =
  6. {
  7. "rate",
  8. "cl_showfps",
  9. "gl_affinemodels",
  10. "r_fullbright",
  11. "chase_active"
  12. };
  13.  
  14. public plugin_init()
  15. {
  16. register_plugin("Easy Anti-Protector","1.0","Seroff")
  17. }
  18.  
  19. public client_putinserver(id){
  20. set_task(5.0,"check_cvars",id,_,_,"b")
  21. }
  22.  
  23. public check_cvars(id){
  24. isProtector[id]=true;
  25. for(new i = 0; i < sizeof(g_CheckCvar); i++)
  26. {
  27. query_client_cvar(id,g_CheckCvar[i],"client_no_protector")
  28. }
  29. set_task(2.5,"check_protector",id)
  30. }
  31.  
  32. public check_protector(id){
  33. if(isProtector[id]==true){
  34. new UserID=get_user_userid(id);
  35. server_cmd("kick #%d, ^"Protector Detected!^"",UserID);
  36. }
  37. }
  38.  
  39. public client_no_protector(id){
  40. isProtector[id]=false;
  41. }
  42.  
  43. public client_disconnect(id){
  44. isProtector[id]=false;
  45. remove_task(id);
  46. }
Advertisement
Add Comment
Please, Sign In to add comment