Raised This Month: $ Target: $400
 0% 

Problem with ham take damage


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
tomes11
Member
Join Date: Apr 2010
Old 02-13-2013 , 14:19   Re: Problem with ham take damage
Reply With Quote #4

I tried to modify it, but it didn't worked.

PHP Code:
public ham_take_damage(victiminflictorattackerFloat:damagedamagebits)
{
    if(
is_user_connected(victim) && is_user_alive(victim))
    {
        
remove_task(victim+TASK_BLOCK)
        
set_task(5.0"RemoveBlockRegen"victim+TASK_BLOCK)
    }
}

public 
RemoveBlockRegen(taskid)
{
    
remove_task(ID_BLOCK+TASK_REGENERATION)
    
set_task(0.2"regeneration"ID_BLOCK+TASK_REGENERATION__"b")    

what is the problem?
Attached Files
File Type: sma Get Plugin or Get Source (zp50_class_human_Regen.sma - 732 views - 2.7 KB)
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