Raised This Month: $ Target: $400
 0% 

return value


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BudaB
Junior Member
Join Date: Apr 2011
Old 06-15-2011 , 15:26   return value
Reply With Quote #1



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 is offline
BudaB
Junior Member
Join Date: Apr 2011
Old 06-15-2011 , 15:28   Re: return value
Reply With Quote #2

Alright, fixed it.

Rushed to post, sorry
BudaB is offline
Reply



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:26.


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