Raised This Month: $ Target: $400
 0% 

Need help with task


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
CrazyChickenTest
Member
Join Date: Jul 2010
Location: World ;)
Old 07-15-2010 , 03:41   Need help with task
Reply With Quote #1

Hi. I need help with two task. I try do in code that if you dead others your team mates can revival you but they have only 15 seconds to do it! I have code with one of plugin on this forum. And how can I must edit it to my idea?
It's code here:
Code:
public event_death()
{
    new id = read_data(2)
    
    reset_player(id)
    if(g_haskit[id])
    {
        g_haskit[id] = false
    }
    
    static Float:minsize[3]
    pev(id, pev_mins, minsize)
    
    if(minsize[2] == -18.0)
        g_wasducking[id] = true
    else
        g_wasducking[id] = false
    
    set_task(0.5, "task_check_dead_flag", id)
}

public task_check_dead_flag(id)
{
    if(!is_user_connected(id))
        return
    
    if(pev(id, pev_deadflag) == DEAD_DEAD)
        create_fake_corpse(id)
    else
        set_task(0.5, "task_check_dead_flag", id)
}
I think I must do it here but how?
Sry for my not good english
CrazyChickenTest 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 07:07.


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