View Single Post
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