seroff

Anti Podelka HLTV 1.5B By Seroff

Dec 7th, 2017
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. #include <amxmodx>
  2. #include <hamsandwich>
  3.  
  4. new szName[32],szFormat[128],szFile[]="addons/amxmodx/logs/fake_hltv.txt",PLUGIN[][]={"Anti Podelka HLTV","1.5B","Seroff"};
  5.  
  6. public plugin_init(){
  7. register_plugin(PLUGIN[0], PLUGIN[1], PLUGIN[2]);
  8. RegisterHam(Ham_Spawn,"player","szPcheck");
  9. }
  10.  
  11. public szPcheck(id) set_task(0.1,"szPchecks",id);
  12.  
  13. public client_connect(id) if(is_user_hltv(id)) set_task(0.5,"antipodelka",id);
  14.  
  15. public antipodelka(id) query_client_cvar(id, "cl_cmdrate", "szClient");
  16.  
  17. public szClient(id, const cvar[], const value[]){
  18. if (!equali(value, "Bad CVAR request")){
  19. user_kick(id,"Fake Player Detected");
  20. }
  21. }
  22.  
  23. public szPchecks(id) if(is_user_hltv(id) && ExecuteHam(Ham_IsPlayer, id)) user_kick(id,"Fake Player Detected");
  24.  
  25. stock user_kick( const id, const reason[]){
  26. emessage_begin( MSG_ONE, SVC_DISCONNECT, _, id );
  27. ewrite_string( reason );
  28. emessage_end();
  29. get_user_name(id,szName,charsmax(szName));
  30. formatex(szFormat,charsmax(szFormat),"User - %s : Reason - %s",szName,reason);
  31. log_to_file(szFile,szFormat);
  32. }
Advertisement
Add Comment
Please, Sign In to add comment