Raised This Month: $ Target: $400
 0% 

Problem with ham take damage


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
tomes11
Member
Join Date: Apr 2010
Old 01-28-2013 , 14:23   Problem with ham take damage
Reply With Quote #1

Hi.

I have a problem with ham take damage. whatever i do its dont do the efects to the victim. Also no error log at compiling and at gameplay :S

PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <zombieplague>
#include <hamsandwich>
#include <zp50_class_human>
#include <cs_ham_bots_api>

#define TASK_REGENERATION     65845
#define ID_REGEN         (taskid - TASK_REGENERATION)

public plugin_init()
{
    
register_event("HLTV""event_round_start""a""1=0""2=0")

    
RegisterHam(Ham_TakeDamage"player""ham_take_damage")
}
public 
ham_take_damage(taskidinflictorattackerFloat:damagedamagebits)
{
    
remove_task(ID_REGEN+TASK_REGENERATION)
    
set_task(5.0"RemoveBlockRegen"ID_REGEN+TASK_REGENERATION)
}

public 
RemoveBlockRegen(taskid)
{
    
set_task(0.2"regeneration"ID_REGEN+TASK_REGENERATION__"b")    
}
//rest of my code 
tomes11 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:31.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode