laurentiuarion

Illegal Cvar Checker

Feb 11th, 2020
91
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <amxmodx>
  2. #include <amxmisc>
  3. #include <colorchat>
  4. #include <cstrike>
  5.  
  6. #define PLUGIN "Hack Checker"
  7. #define VERSION "4.7"
  8. #define AUTHOR "Ex3cuTioN & MorMoloC"
  9.  
  10. new log_hack;
  11.  
  12. public plugin_init()
  13. {
  14.     register_plugin(PLUGIN, VERSION, AUTHOR)
  15.    
  16.     register_concmd("amx_hack","admin_cheat",ADMIN_KICK,"<nick>");
  17.     register_concmd("say /hack","show_owner");
  18.     register_concmd("say cvars","show_cvars");
  19.     register_concmd("say /cvars","show_cvars");
  20.     log_hack = register_cvar("amx_hack_log","1");
  21. }
  22.  
  23. public client_connect(id)
  24. {
  25.     client_cmd(id,"developer 0");
  26.     client_cmd(id,"cl_sidespeed 400");
  27.     client_cmd(id,"cl_pitchspeed 225");
  28.     client_cmd(id,"cl_forwardspeed 400");
  29.     client_cmd(id,"cl_backspeed 400");
  30.     client_cmd(id,"cl_anglespeedkey 0.67");
  31.     client_cmd(id,"cl_movespeedkey 0.67");
  32.     client_cmd(id,"cl_pitchdown 89");
  33.     client_cmd(id,"cl_pitchup 89");
  34.     client_cmd(id,"cl_upspeed 320");
  35.     client_cmd(id,"cl_yawspeed 210");
  36.     client_cmd(id,"fps_max 101");
  37.     client_cmd(id,"fps_modem 0.0");
  38.     client_cmd(id,"bind w +forward");
  39.     client_cmd(id,"bind a +moveleft");
  40.     client_cmd(id,"bind d +moveright");
  41.     client_cmd(id,"echo Setarile legale ti-au fost aplicate!");
  42.    
  43.     set_task(25.0,"cmd_ShowMessage1",id);
  44. }
  45.  
  46. public cmd_ShowMessage1(player)
  47.     ColorChat(player,GREEN,"[Hack Plugin]^x01 Setarile legale au fost aplicate!");
  48.  
  49. public show_owner(id)
  50. {
  51.     ColorChat(0,GREEN,"[Hack Plugin]^x01 Plugin realizat de^x03 Ex3cuTioN & MorMoloC");
  52.     return PLUGIN_HANDLED;
  53. }
  54.  
  55. public show_cvars(id)
  56. {
  57.     client_cmd(id,"toggleconsole");
  58.     client_cmd(id,"echo");
  59.     client_cmd(id,"echo");
  60.     client_cmd(id,"echo");
  61.     client_cmd(id,"echo");
  62.     client_cmd(id,"echo Setarile de mai jos sunt cele legale!");
  63.     client_cmd(id,"echo cl_sidespeed 400");
  64.     client_cmd(id,"echo cl_pitchspeed 225");
  65.     client_cmd(id,"echo cl_forwardspeed 400");
  66.     client_cmd(id,"echo cl_backspeed 400");
  67.     client_cmd(id,"echo cl_anglespeedkey 0.67");
  68.     client_cmd(id,"echo cl_movespeedkey 0.67");
  69.     client_cmd(id,"echo cl_pitchdown 89");
  70.     client_cmd(id,"echo cl_pitchup 89");
  71.     client_cmd(id,"echo cl_upspeed 320");
  72.     client_cmd(id,"echo cl_yawspeed 210");
  73.     client_cmd(id,"echo fps_max 101");
  74.     client_cmd(id,"echo fps_modem 0.0");
  75.     client_cmd(id,"echo bind w +forward");
  76.     client_cmd(id,"echo bind a +moveleft");
  77.     client_cmd(id,"echo bind d +moveright");
  78.     client_cmd(id,"echo Setarile de mai sus sunt cele legale!");
  79.     client_cmd(id,"echo");
  80.     client_cmd(id,"echo");
  81.     client_cmd(id,"echo");
  82.     client_cmd(id,"echo");
  83. }
  84.  
  85. public admin_cheat(id,level,cid)
  86. {
  87.     if(!cmd_access(id,level,cid,2))
  88.         return PLUGIN_HANDLED;
  89.        
  90.     new argument[32];
  91.     read_argv(1,argument,31);
  92.    
  93.     new player = cmd_target(id,argument,6);
  94.    
  95.     if(!player)
  96.         return PLUGIN_HANDLED;
  97.        
  98.     new name[32],aname[32],time[32],szLog[256],ip[32];
  99.     get_user_name(player,name,31);
  100.     get_user_name(id,aname,31);
  101.     get_time("%m.%d.%Y -- %H:%M:%S",time,53);
  102.     get_user_ip(player,ip,31);
  103.    
  104.     ColorChat(0,GREEN,"[Hack Plugin]^x04 %s^x01 a fost verificat de cvaruri ilegale!",name);
  105.  
  106.     set_task(0.1,"cmd_first",player);
  107.    
  108.     if(get_pcvar_num(log_hack) ==1 )
  109.     {
  110.         new szFile[128];
  111.         get_configsdir(szFile,127);
  112.         formatex(szFile,127,"%s/amx_hack.txt",szFile);
  113.        
  114.         if(!file_exists(szFile))
  115.         {
  116.             write_file(szFile,"Hack Plugin by Ex3cuTioN & MorMoloC",-1);
  117.             write_file(szFile," ",-1)
  118.         }
  119.        
  120.         formatex(szLog,255,"Admin: %s     Jucator: %s     IP: %s     Data: %s",aname,name,ip,time);
  121.         write_file(szFile,szLog,-1);
  122.     }
  123.    
  124.     return PLUGIN_HANDLED;
  125. }
  126.  
  127. public cmd_first(player)
  128. {
  129.     client_cmd(player,"toggleconsole");
  130.     set_task(0.1, "cmd_s300",player);
  131. }
  132.  
  133. public cmd_s300(player)
  134. {
  135.     new hostname[64],time[32];
  136.     get_cvar_string("hostname",hostname,63);
  137.     get_time("%m/%d/%Y - %H:%M:%S", time,31);
  138.    
  139.     client_cmd(player,"net_graph 3");
  140.     client_cmd(player,"net_graphpos 1");
  141.     client_cmd(player,"net_graphwidth 150");
  142.     client_cmd(player,"cl_showfps 1");
  143.     client_cmd(player,"cl_shownet 0");
  144.    
  145.     client_cmd(player,"condump");
  146.     client_cmd(player,"clear");
  147.     client_cmd(player,"developer");
  148.     client_cmd(player,"cl_sidespeed");
  149.     client_cmd(player,"cl_pitchspeed");
  150.     client_cmd(player,"cl_forwardspeed");
  151.     client_cmd(player,"cl_backspeed");
  152.     client_cmd(player,"cl_anglespeedkey");
  153.     client_cmd(player,"cl_movespeedkey");
  154.     client_cmd(player,"cl_pitchdown");
  155.     client_cmd(player,"cl_pitchup");
  156.     client_cmd(player,"cl_upspeed");
  157.     client_cmd(player,"cl_yawspeed");
  158.     client_cmd(player,"fps_max");
  159.     client_cmd(player,"fps_modem");
  160.     client_cmd(player,"bind w");
  161.     client_cmd(player,"bind a");
  162.     client_cmd(player,"bind d");
  163.     client_cmd(player,"echo Server : %s",hostname);
  164.     client_cmd(player,"echo Hack Plugin made by Ex3cuTioN & MorMoloC");
  165.    
  166.     set_task(0.1, "cmd_escape",player);
  167. }
  168.  
  169. public cmd_escape(player)
  170. {
  171.     client_cmd(player,"snapshot");
  172.     client_cmd(player,"escape");
  173.     set_task(0.5, "cmd_chat",player);
  174. }
  175.  
  176. public cmd_chat(player)
  177. {
  178.     new time[32],name[32],ip[32];
  179.     get_time("%m/%d/%Y - %H:%M:%S", time,31);
  180.     get_user_name(player,name,31);
  181.     get_user_ip(player,ip,31);
  182.    
  183.     ColorChat(player,GREEN,"[Hack Plugin]^x01 Plugin realizat de^x03 Ex3cuTioN & MorMoloC");
  184.     ColorChat(player,GREEN,"Data :^x01 %s",time);
  185.     ColorChat(player,GREEN,"NickTau :^x01 %s",name);
  186.     ColorChat(player,GREEN,"IP :^x01 %s",ip);
  187.     ColorChat(player,GREEN,"Ai fost verificat de cvaruri!");
  188.    
  189.     set_task(0.5,"cmd_kill",player);
  190. }
  191.    
  192. public cmd_kill(player)
  193. {
  194.     client_cmd(player,"snapshot");
  195.     new name[32];
  196.     get_user_name(player,name,31);
  197.    
  198.     user_silentkill(player);
  199.     cs_set_user_team(player,CS_TEAM_SPECTATOR);
  200.     client_cmd(player,"cl_showfps 0");
  201.     return PLUGIN_HANDLED;
  202. }
  203.  
  204. public client_disconnect(id)
  205. {
  206.     client_cmd(id,"developer 0");
  207.     client_cmd(id,"cl_sidespeed 400");
  208.     client_cmd(id,"cl_pitchspeed 225");
  209.     client_cmd(id,"cl_forwardspeed 400");
  210.     client_cmd(id,"cl_backspeed 400");
  211.     client_cmd(id,"cl_anglespeedkey 0.67");
  212.     client_cmd(id,"cl_movespeedkey 0.67");
  213.     client_cmd(id,"cl_pitchdown 89");
  214.     client_cmd(id,"cl_pitchup 89");
  215.     client_cmd(id,"cl_upspeed 320");
  216.     client_cmd(id,"cl_yawspeed 210");
  217.     client_cmd(id,"fps_max 101");
  218.     client_cmd(id,"fps_modem 0.0");
  219.     client_cmd(id,"bind w +forward");
  220.     client_cmd(id,"bind a +moveleft");
  221.     client_cmd(id,"bind d +moveright");
  222.     client_cmd(id,"echo Setarile legale ti-au fost aplicate!");
  223. }
  224. /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
  225. *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
  226. */
RAW Paste Data