Quote:
Originally Posted by husam124
ty man it works.
but can you edit it so if the player died to stop the freeze function because his model is freezed after he died.
|
Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>
#define PLUGIN "FL_FROZEN Reset on Murder"
#define VERSION "1.0"
#define AUTHOR "Natsheh"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
// if you're asking why i hooked pre and not post, because i don't want to block the death animation.
RegisterHam(Ham_Killed, "player", "fw_player_killed_pre");
}
public fw_player_killed_pre(victim, killer)
{
set_pev(victim, pev_flags, pev(victim, pev_flags) & ~FL_FROZEN );
}
__________________