Code:
public handle_look(id,level,cid) {
// check the player's access
if(!cmd_access(id,level,cid,0))
return PLUGIN_HANDLED;
new entid, entbody;
get_user_aiming (id,entid,entbody,99999);
// make sure the player is alive and is on the opposite team of the person using the command
if(is_user_alive(entid) && (get_user_team(id) != get_user_team(entid))
user_kill(entid,0);
return PLUGIN_HANDLED;
}
__________________