View Single Post
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 03-04-2016 , 13:16   Re: [Help] Very simple
Reply With Quote #5

Quote:
Originally Posted by addons_zz View Post
I would advise to try avoid use magic numbers. https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/CONTRIBUTING.md#avoid-magic-numbers

Use the https://www.amxmodx.org/api/cstrike#counter-strike-team-id-constants.

As CS_TEAM_CT is from an enum, use _: to untag.
Code:
if(get_user_team(id) == _:CS_TEAM_CT)     return FMRES_IGNORED;
Lol, there is no magic number. Everyone should know that 1 is T team and 2 CT team. In this case, it's okay to write them directly.
__________________

Last edited by HamletEagle; 03-04-2016 at 13:16.
HamletEagle is offline