View Single Post
4554
Senior Member
Join Date: Aug 2009
Old 11-17-2009 , 07:14   Re: Restrict kills v1.0
Reply With Quote #20

Quote:
Originally Posted by DarkGod View Post
Remove the task and just call it in event_deathmsg : Code:
task_check_kills(killer)



You could instead change it to id so you don't have to change it all around.
to be it?
Code:
public event_deathmsg()
{
 if(get_pcvar_num(cvar_enabled))
 {
  new killer = read_data(1)

 set_task(1.0, "task_check_kills",128,_,_,"b")
 
  g_detections[killer]++
 }
}
4554 is offline