seroff

Easy Anti-Protector 2.0.1 By Seroff

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