Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <amxmodx>
- /* Anti-Protector CSXGuard Detected! */
- new g_CheckCvar[6][] =
- {
- "rate",
- "cl_showfps",
- "gl_affinemodels",
- "r_fullbright",
- "chase_active",
- "fps_max"
- };
- static checkcvars[33];
- public plugin_init()
- {
- register_plugin("Easy Anti-Protector","2.0.1","Seroff");
- }
- public client_putinserver(id){
- set_task(5.0,"check_cvars",id,_,_,"b");
- }
- public check_cvars(id){
- checkcvars[id]=0;
- for(new i = 0; i < sizeof(g_CheckCvar); i++)
- {
- query_client_cvar(id,g_CheckCvar[i],"client_no_protector");
- }
- set_task(2.7,"check_protector",id);
- }
- public check_protector(id){
- if(checkcvars[id]!=6){
- new UserID=get_user_userid(id);
- server_cmd("kick #%d, ^"Protector Detected!^"",UserID);
- }
- }
- public client_no_protector(id, const cvar[], const value[]){
- for(new i; i <= 5; i++) if((!strcmp(cvar, g_CheckCvar[i], 1)) && value[0] != 'B') checkcvars[id]++
- }
- public client_disconnect(id){
- remove_task(id);
- }
Advertisement
Add Comment
Please, Sign In to add comment