Try this (untested):
PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <engine>
public plugin_init()
RegisterHam(Ham_Item_Deploy, "weapon_ak47", "FwdAk47DeployPost", 1);
public FwdAk47DeployPost(iWeapon)
{
new id = entity_get_edict(iWeapon, EV_ENT_owner);
if(id && player_class[id] == Mage)
entity_set_string(id, EV_SZ_viewmodel, MAGICAK47);
}
__________________