View Single Post
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 10-11-2006 , 23:15   Re: Half Life 1 Events: Registering, Using, and Reading them
Reply With Quote #2

While I enjoy seeing the events page posted somewhere, I do not think this is really that elaborate of a helping tool.

Maybe add some more to it?

What you did is very simple.

Something like this:

PHP Code:
public plugin_init()
{
    
register_event("DeathMsg""deathEvent""be");

PHP Code:
public deathEvent(id)
{
    new 
attacker read_data(1);
    if(!
attacker)
    {
        return 
PLUGIN_HANDLED;
    }
    else
    {
        
kills[attacker]+=1;
    }
    return 
PLUGIN_CONTINUE;

May confuse most beginning scriptors.

Last edited by SweatyBanana; 10-11-2006 at 23:17.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana