You must always check if the user is alive in a Ham_Spawn (post) hook (Ravi81, you did this part correctly, lexzor did not). However, you need to send a value to the command that the command can actually use. In this case, since the c_chicken command uses cm_target(), you can use the most convenient method by using their userid. To use a userid, you need to precede the userid value with the # symbol when passing it to functions that utilize cmd_target().
Simply place the following in your is_user_alive() check:
PHP Code:
server_cmd("c_chicken #%d", get_user_userid(iPlayer))
__________________