Constants

amxmod.inc

amxmodx 1.8.2 hg65

AMXMOD_BCOMPAT

AMXMOD_BCOMPAT
	#define AMXMOD_BCOMPAT

ADMIN_PERMBAN

ADMIN_PERMBAN
#define ADMIN_PERMBAN       ADMIN_BAN		//AMX Mod admin flag for permanent ban

ADMIN_UNBAN

ADMIN_UNBAN
#define ADMIN_UNBAN         ADMIN_BAN		//AMX Mod admin flag for unbanning

ADMIN_SUPREME

ADMIN_SUPREME
#define ADMIN_SUPREME       ADMIN_IMMUNITY	//AMX Mod admin flag for "super admin" (can kick, slap, ban, slay admins with Immunity)

ANGLEVECTORS_FORWARD

ANGLEVECTORS_FORWARD
#define ANGLEVECTORS_FORWARD      1

ANGLEVECTORS_RIGHT

ANGLEVECTORS_RIGHT
#define ANGLEVECTORS_RIGHT        2

ANGLEVECTORS_UP

ANGLEVECTORS_UP
#define ANGLEVECTORS_UP           3

Whoever wrote this was a bit confused about the type stuff...

	if (type == 1) {
		our_type = 1;
	} else if (type == 4) {
		our_type = 0;
	} else {
		our_type = -1;
	}
	
	new found = 0;
	new total = get_concmdsnum(-1, our_type);
	for (new i=0; i<total; i++)
	{
		if (plid == get_concmd_plid(i, -1, our_type))
		{
			found++;
		}
	}
	
	return found;
}

Whoever wrote this was a bit confused about the type stuff...

	if (type == 1) {
		our_type = 1;
	} else if (type == 4) {
		our_type = 0;
	} else {
		our_type = -1;
	}
	
	new found_iter = 0;
	new total = get_concmdsnum(-1, our_type);
	for (new i=0; i<total; i++)
	{
		if (plid == get_concmd_plid(i, -1, our_type))
		{
			if (found_iter == index)
			{
				new flags, result;
				result = get_concmd(i, cmd, len1, flags, info, len3, -1, our_type);
				get_flags(flags, accessflags, len2);
				return result;
			}
			found_iter++;
		}
	}