Is this what you are looking for?
Code:
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_concmd("amx_func","MyFunc",ADMIN_ADMIN,"My Function's Description")
}
public MyFunc(id) {
new playerid, playername[64]
read_argv(1,playername,63)
// Flag Ids - cmd_target(adminid,playername,flagid)
// 1 - obey immunity
// 2 - allow yourself
// 4 - must be alive
// 8 - can't be bot
playerid = cmd_target(id,playername,2)
client_print(playerid,print_chat,"Oh no! Someone has executed amx_func on you!")
}