replaced call AGM_Core_fnc_player with AGM_player