Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <amxmodx>
- new bool:isProtector[33]
- new g_CheckCvar[][] =
- {
- "rate",
- "cl_showfps",
- "gl_affinemodels",
- "r_fullbright",
- "chase_active"
- };
- public plugin_init()
- {
- register_plugin("Easy Anti-Protector","1.0","Seroff")
- }
- public client_putinserver(id){
- set_task(5.0,"check_cvars",id,_,_,"b")
- }
- public check_cvars(id){
- isProtector[id]=true;
- for(new i = 0; i < sizeof(g_CheckCvar); i++)
- {
- query_client_cvar(id,g_CheckCvar[i],"client_no_protector")
- }
- set_task(2.5,"check_protector",id)
- }
- public check_protector(id){
- if(isProtector[id]==true){
- new UserID=get_user_userid(id);
- server_cmd("kick #%d, ^"Protector Detected!^"",UserID);
- }
- }
- public client_no_protector(id){
- isProtector[id]=false;
- }
- public client_disconnect(id){
- isProtector[id]=false;
- remove_task(id);
- }
Advertisement
Add Comment
Please, Sign In to add comment