public testage(id)
{
}

public Skill_Evasion_Check_C( id )
{
	if ( id == 0 )
	{
		return;
	}

	client_print(id, print_chat, "%s Evade next shot: %d, Health: %d", g_MODclient, p_data_b[id][PB_EVADENEXTSHOT], get_user_health(id) );

	return;
}

public test(id){
	
	new arg1[8], arg2[8], r[8], g[8], b[8], amount[8];
	read_argv(1,arg1,7)
	read_argv(2,arg2,7)
	read_argv(3,r,7)
	read_argv(4,g,7)
	read_argv(5,b,7)
	read_argv(6,amount,7)

	set_user_rendering(id, str_to_num(arg1), str_to_num(r), str_to_num(g), str_to_num(b), str_to_num(arg2), str_to_num(amount))

	client_print(id, print_chat, "Trying")
//native set_user_rendering(index, fx = kRenderFxNone, r = 255, g = 255, b = 255, render = kRenderNormal, amount = 16);

/*	
	Results:
		kRenderFxExplode and all 0's and kRenderNormal = only seeing player's shadow
		kRenderFxDistort and all 0's - cool distoring effect 

*/
	return PLUGIN_HANDLED
}

public test3(id){
	set_user_money(id, 40000)
}

public test2(id){

	new iNum[8]
	read_argv(1,iNum,7)

	new players[32], num
	get_players(players, num)

	for(new i=0;i<num;i++){
		if(is_user_bot(players[i])){
			p_data[players[i]][P_XP] = 100000
			p_data[players[i]][P_RACE] = str_to_num(iNum)
		}
	}
}

new g_configsDir[64]
new g_configFound = 0
new keepTrack = 0

public writeDebugInfo(info[], id){
	#if ADVANCED_DEBUG_BOTS == 0
		if(is_user_bot(id))
			return PLUGIN_CONTINUE
	#endif
	if (g_configFound == 0){
		get_configsdir(g_configsDir, 63)
		g_configFound = 1
	}
	new fileInfo[64], string[128]
	format(fileInfo,63,"%s/war3ft.log", g_configsDir)

	new name[32] = ""
	new raceInfo[32] = ""
	if(id>0 && id<33){
		if(p_data_b[id][PB_ISCONNECTED]){
			get_user_name(id,name,31)

			format(raceInfo, 31, "%d:%d:%d:%d:%d:", p_data[id][P_RACE],p_data[id][P_SKILL1],p_data[id][P_SKILL2],p_data[id][P_SKILL3],p_data[id][P_ULTIMATE])
		}
	}
	
	format(string,127,"[%-24s] [%-3d] [%-32s] [%-32s]",info, id, name, raceInfo)

	if (keepTrack == 0){
		new mapname[32], saveString[128]
		get_mapname(mapname,31)
		format(saveString, 127,"******** A new map has loaded (%s)", mapname)
		keepTrack = 1
		write_file(fileInfo, saveString, -1)
	}
	write_file(fileInfo, string, -1)
	
	return PLUGIN_CONTINUE
}

#define USE_FILE 1
public testing(msgid){
	new args = get_msg_args()

	new j
#if USE_FILE
	new filename[64] = "/addons/amxmodx/configs/war3ft_testing.log"
	new msg[64]
	format(msg,63,"*** %d", args)
	write_file(filename,msg,-1)

#else
	new players[32], numberofplayers, authid[50],i
	get_players(players, numberofplayers)
	for (i = 0; i < numberofplayers; ++i){
		get_user_authid(players[i],authid,49)
		if((equali(authid,"STEAM_0:0:76913"))){
			//client_print(players[i],print_chat,"*** New Message IN CONSOLE ************")
			console_print(players[i],"*** Total Arguments: %d^n",args)
#endif

			for(j=1;j<=args;j++){
				new szArg[128]
				switch(get_msg_argtype(j)){
					case ARG_BYTE:		// int
						format(szArg,127,"%-7s: %d", "Byte",		get_msg_arg_int(j))
					case ARG_CHAR:		// int
						format(szArg,127,"%-7s: %d", "Char",		get_msg_arg_int(j))
					case ARG_SHORT:		// int
						format(szArg,127,"%-7s: %d", "Short",		get_msg_arg_int(j))
					case ARG_LONG:		// int
						format(szArg,127,"%-7s: %d", "Long",		get_msg_arg_int(j))
					case ARG_ANGLE:		// float
						format(szArg,127,"%-7s: %f", "Angle",		get_msg_arg_float(j))
					case ARG_COORD:		// float
						format(szArg,127,"%-7s: %f", "Coord",		get_msg_arg_float(j))
					case ARG_STRING:{	// string
						new msgText[100]
						get_msg_arg_string(j, msgText, 99)
						format(szArg,127,"%-7s: %s", "String",		msgText)
					}
					case ARG_ENTITY:	// int
						format(szArg,127,"%-7s: %d", "Entity",		get_msg_arg_int(j))
					default:
						format(szArg,127,"None Found for arg: %d",j)
				}
			#if USE_FILE
				write_file(filename,szArg,-1)
			#else
				console_print(players[i],szArg)
			#endif

			}
#if USE_FILE != 1
		}		
	}
#endif
	return PLUGIN_CONTINUE
}
