Raised This Month: $ Target: $400
 0% 

Entity Kill Association (Deathrun Real Killer)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
LaFA
Junior Member
Join Date: Mar 2010
Location: Georgia
Old 07-29-2015 , 06:47   Re: Entity Kill Association (Deathrun Real Killer)
Reply With Quote #25

Code:
/*================================================================================
    Use buttons
=================================================================================*/
public Ham_ButtonUse(ent, caller, id)
{
        if(!is_user_connected(id))
                return HAM_IGNORED

        if(!is_user_alive(id))
                return HAM_IGNORED

        new Team = get_user_team(id)

        if(Team == 1)
        {
        if(DeathRun_Mode == 0)
            TerMenu(id, 0)

        if(DeathRun_Mode == 1)
        {
            new gametime = floatround(get_gametime(), floatround_round)

            if(ButtonAlreadyUsed[id][ent] == 0)
            {
                ButtonAlreadyUsed[id][ent] = gametime
            }
            else if(gametime - ButtonAlreadyUsed[id][ent] <= 45)
            {
                client_print(id, print_center, "%L", LANG_PLAYER, "B_TIME", 45 - (gametime - ButtonAlreadyUsed[id][ent]))
                return HAM_SUPERCEDE
            }
            else
            {
                ButtonAlreadyUsed[id][ent] = 0
            }
        }
        else
        {
            client_print(id, print_center, "%L", LANG_PLAYER, "B_NOT_NOW")
            return HAM_SUPERCEDE
        }
        }
        return HAM_IGNORED
}
__________________
LaFA is offline
Send a message via ICQ to LaFA Send a message via Skype™ to LaFA
 


Thread Tools
Display Modes

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 23:53.


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