[ create a new paste ] login | about

Link: http://codepad.org/Qn3OWFdM    [ raw code | fork ]

Raheem - C, pasted on Sep 22:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Anti CT-Shield"
#define VERSION "1.1"
#define AUTHOR "Sn!ff3r"

#define REVEMU		4
#define TASK		411

new dp_r_id_provider

public plugin_init()
{
	register_plugin(PLUGIN, VERSION, AUTHOR)
	
	dp_r_id_provider = get_cvar_pointer ("dp_r_id_provider")
}

public client_connect(id) 
{
	server_cmd("dp_clientinfo %d", id)
	server_exec()
		
	if(get_pcvar_num(dp_r_id_provider) == REVEMU)
	{
		client_cmd(id, "echo ^"^";^"setinfo^" revemu 1")
		set_task(1.0,"client_check", TASK + id)
	}
}

public client_check(TASKID)
{
	
	new id = TASKID - TASK
	
	new tmp[2], reply
	get_user_info(id, "revemu", tmp, 1)
	reply = str_to_num(tmp)
	
	if(!reply) {
		// odpalony ct-shield albo inne gowno
		new ip[16], name[33]
		get_user_ip(id, ip, 15, 1)
		get_user_name(id, name, 32)
		
		client_print_colored(0, "!y[!gDetected!y] !tGameTracker.Fake!y. !tName!y: !g%s !y|| !tIP!y: !g%s", name, ip)
		log_to_file("anti_ct_shield.log", "Detected running additional files with .DLL Player %s [%s] - kick...", name, ip)
		server_cmd("kick #%d  [Detected] Remove Steam ID Changer! Remove any Extra Files!", get_user_userid(id))		
	}
}

stock client_print_colored(const id, const input[], any:...)  
{  
	new count = 1, players[32];  
	static msg[191];  
	vformat(msg, 190, input, 3);  

	replace_all(msg, 190, "!g", "^x04"); // Green Color  
	replace_all(msg, 190, "!y", "^x01"); // Default Color  
	replace_all(msg, 190, "!t", "^x03"); // Team Color  

	if (id) players[0] = id; else get_players(players, count, "ch");  
	{  
		for (new i = 0; i < count; i++)  
		{  
			if (is_user_connected(players[i]))  
			{  
				message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i]);  
				write_byte(players[i]);  
				write_string(msg);  
				message_end();  
			}  
		}  
	}  
}


Create a new paste based on this one


Comments: