#include #include #include #define PLUGIN "Call of Duty Aim" #define VERSION "1.6" #define AUTHOR "DarkGL & MMYTH" #define TIME 0.4 #define MAX_SIZE_ID 33 new bool:is_friend[MAX_SIZE_ID], bool:is_accept[MAX_SIZE_ID], szColor[MAX_SIZE_ID][12]; new g_hit,g_steam,g_standard,g_off,g_damage; new SyncHudMsg; public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR); RegisterHam(Ham_Spawn,"player","ham_spawned"); g_hit = register_cvar("cod_aim_showhit", "1"); g_steam = register_cvar("cod_aim_steam","1"); g_standard = register_cvar("cod_aim_on","1"); g_off = register_cvar("cod_aim_can_off","1"); g_damage = register_cvar("cod_aim_on_damage","0"); register_clcmd("say /cod_aim", "clcmd_cod_aim"); register_clcmd("say /cod_color","clcmd_cod_color"); register_clcmd("aim_color","aim_color"); register_event("Damage", "event_damage", "b", "2!=0") register_event("StatusValue", "event_statusvalue_team", "be", "1=1"); register_event("StatusValue", "event_status_value", "be", "1=2", "2!0"); register_event("StatusValue", "event_statusvalue_hide", "be", "1=1", "2=0"); SyncHudMsg = CreateHudSyncObj(); register_dictionary("cod_aim.txt"); } public aim_color(id){ new szCommand[256]; read_args(szCommand,charsmax(szCommand)); remove_quotes(szCommand); if(checkString(szCommand)){ copy(szColor[id],11,szCommand); CallofDutyAim(id,szColor[id]); client_print(id, print_chat, "[Call of Duty Aim] %L", id,"MSG_AIM_GOOD_COLOR"); } else{ client_print(id, print_chat, "[Call of Duty Aim] %L !", id,"MSG_AIM_WRONG_COLOR"); } } public bool:checkString(szCommand[]){ for(new i = 0;i