Fix for amb118: amx_help would not output ADMIN_ADMIN commands
This commit is contained in:
		| @@ -65,6 +65,12 @@ public cmdHelp(id, level, cid) | |||||||
| 	new start = read_argv(1, arg1, 7) ? str_to_num(arg1) : 1 | 	new start = read_argv(1, arg1, 7) ? str_to_num(arg1) : 1 | ||||||
| 	new lHelpAmount = HELPAMOUNT | 	new lHelpAmount = HELPAMOUNT | ||||||
| 	 | 	 | ||||||
|  | 	// HACK: ADMIN_ADMIN is never set as a user's actual flags, so those types of commands never show | ||||||
|  | 	if (flags > 0 && !(flags & ADMIN_USER)) | ||||||
|  | 	{ | ||||||
|  | 		flags |= ADMIN_ADMIN; | ||||||
|  | 	} | ||||||
|  | 	 | ||||||
| 	if (id == 0 && read_argc() == 3) | 	if (id == 0 && read_argc() == 3) | ||||||
| 		lHelpAmount = read_argv(2, arg1, 7) ? str_to_num(arg1) : HELPAMOUNT | 		lHelpAmount = read_argv(2, arg1, 7) ? str_to_num(arg1) : HELPAMOUNT | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user