AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   return value (https://forums.alliedmods.net/showthread.php?t=159319)

BudaB 06-15-2011 15:26

return value
 
http://ikelk.lt/storage/images/000/0...iginal_img.JPG

Code:

public fw_player_killed(victim, attacker, shouldgib)
{
    if(!is_user_connected(victim) || !is_user_connected(attacker) || attacker == victim)
        return HAM_IGNORED
 
    if(get_user_team(attacker) == 1)
    {
        g_nwkpts[attacker] += get_pcvar_num(g_killjp)
     
        if(get_pdata_int(victim, 75) == HIT_HEAD)
        {
            g_nwkpts[attacker] += get_pcvar_num(g_killhsjp)
        }
    }
}

Should be return PLUGIN_HANDLED on the end or what?

BudaB 06-15-2011 15:28

Re: return value
 
Alright, fixed it.

Rushed to post, sorry


All times are GMT -4. The time now is 23:26.

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