what data type is gSuperPlayerCT/T? Make sure they are, in fact, IDs for the player you wish them to be. Try this as a means of debug....it'll print the name of the player that killed you, if that method is even called.
PHP Code:
//function header of super_kill
new sz_attacker[32], sz_victim[32]
get_user_name(attackerID, sz_attacker, 31)
get_user_name(victimID, sz_victim, 31)
// say if the function was even called
client_print(0, print_chat, "[Debug] %s killed %s", sz_attacker, sz_victim)
if(victimID != gSuperPlayerCT || victimID != gSuperPlayerT || !is_user_alive(killerID))
{
// confirm gSuperPlayer is improperly used
client_print(attackerID, print_chat, "[Debug] %s was not a SuperPlayer", sz_victim)
return HAM_HANDLED
}
// giving the grenades isn't done right
client_print(attackerID, print_chat, "[Debug] %s was, in fact, a SuperPlayer", sz_victim)
give_item(killerID,"weapon_hegrenade")
cs_set_user_bpammo(killerID,CSW_HEGRENADE,2)
give_item(killerID,"weapon_flashbang")
cs_set_user_bpammo(killerID,CSW_FLASHBANG,1)
client_print(killerID, print_center, "You've got a grenade bonus for killing superplayer!")
return HAM_HANDLED