OK!!
This is a very simple plugin;
in this plugin, a random player glows on round start
when he gets killed, his glow is transferred to the killer
on round end, everyone is killed expect the glowing player
But my method of transferring the glow don't work
I guess the problem is with HookKilled function
I tried this
PHP Code:
//in plugin_init
RegisterHam(Ham_Killed, "player" , "HookKilled")
later on
PHP Code:
new kID
public HookKilled(victim, killer, shouldgib)
{
if (isGlowing(victim)){
kID = killer
glow(kID, 255,255,255)
unglow(victim)
get_user_name(kID, sName, 32)//It is a bugfix
get_user_team(kID, sTeam, 32)
glowmsg(sName,sTeam)
}
}
So, where I am doing wrong??
the .sma is in attachments