I'd use something like this:
Code:
#include <amxmodx>
#include <hamsandwich>
new g_bIsRescuing[33];
public plugin_init()
{
RegisterHam(Ham_Use, "hostage_entity", "fwdHostageUse", 1);
RegisterHam(Ham_Use, "monster_scientist", "fwdHostageUse", 1);
}
public client_disconnect(iCl)
g_bIsRescuing[iCl] = false;
public fwdHostageUse(iEnt, iCl)
if (is_user_alive(iCl))
g_bIsRescuing[iCl] = !g_bIsRescuing[iCl];
Also some checks like if players has died or spawned should be made.
__________________