Add callbacks for team join

Issue #106 resolved
Greek2me repo owner created an issue

Slayer_TeamSO::onAddMember(%team,%client,%isTeamSwap)

This can be used to determine if is swap or not:

package blah
{
    function Slayer_TeamSO::addMember(%this,%client,%reason,%doNotRespawn)
    {
        %curTeam = %client.getTeam();
        if(isObject(%curTeam) && %curTeam != %this)
        {
            //Team swap!
        }
        return parent::addMember(%this,%client,%reason,%doNotRespawn);
    }
};
activatePackage(blah);

Comments (1)

  1. Log in to comment