Advertisement
Guest User

Get Free GameGuard Anti Cheat On Your Counter Strike 1.6 Server FreeGameGuard v1.1 By Doron Bachar

a guest
Jan 13th, 2022
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 2.05 KB | None | 0 0
  1. #include <amxmodx>
  2. //Author:  Doron Bachar
  3. //YouTube: Dbachartechz
  4. public plugin_init() {
  5.      register_event("DeathMsg", "Event_DeathMsg", "a")
  6.      register_clcmd("+dscript", "duck")
  7. }
  8. public Event_DeathMsg() {
  9.     new fps[3]
  10.     fps[0] = read_data(2)
  11.     if(is_user_connected(fps[0])) query_client_cvar(fps[0], "fps_max", "currentFps_callback", sizeof(fps), fps)
  12. }
  13.  
  14. public currentFps_callback(id, const cvar[], const value[], fps[]) {
  15.     if(is_user_connected(fps[0])) {
  16.         if(str_to_float(value) < 99.5) return server_cmd("kick #%d Reason: open Gameguard(1)", get_user_userid(fps[0]))
  17.         fps[1] = str_to_num(value)
  18.         fps[2] = fps[1] + random_num(3, 15)
  19.         client_cmd(fps[0], "fps_max %i", fps[2])
  20.         client_cmd(fps[0], "clear")
  21.         return set_task(0.5, "filterFps", _, fps, 3)
  22.     } else return PLUGIN_HANDLED
  23. }
  24.  
  25. public filterFps(fps[3]) {
  26.     if(is_user_connected(fps[0])) query_client_cvar(fps[0], "fps_max", "filterFps_callback", sizeof(fps), fps)
  27. }
  28.  
  29. public filterFps_callback(id, const cvar[], const value[], fps[]) {
  30.     if(is_user_connected(fps[0])) {
  31.         new cFps = str_to_num(value)
  32.         if(cFps != fps[2]) return server_cmd("kick #%d Reason: change cl_filterstuffcmd to 0", get_user_userid(fps[0]))
  33.         fps[2] = random_num(90, 98)
  34.         client_cmd(fps[0], "fps_max %i", fps[2])
  35.         return set_task(0.5, "gameguard", _, fps, 3)
  36.     } else return PLUGIN_HANDLED
  37. }
  38.  
  39. public gameguard(fps[3]) {
  40.     if(is_user_connected(fps[0])) query_client_cvar(fps[0], "fps_max", "gameguard_callback", sizeof(fps), fps)
  41. }
  42.  
  43. public gameguard_callback(id, const cvar[], const value[], fps[]) {
  44.     if(is_user_connected(fps[0])) {
  45.         new cFps = str_to_num(value)
  46.         if(cFps == fps[2]) {
  47.             client_cmd(fps[0], "fps_max %i", fps[1])
  48.             return server_cmd("kick #%d Reason: open Gameguard(2)", get_user_userid(fps[0]))
  49.         }
  50.         return client_cmd(fps[0], "fps_max %i", fps[1])
  51.     } else return PLUGIN_HANDLED
  52. }
  53.  
  54. public duck(id) {
  55.     client_cmd(id, "+duck;-duck")
  56. }
  57.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement