Raised This Month: $51 Target: $400
 12% 

FFF1 kill fix


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
quLeryuzz
Member
Join Date: May 2010
Location: Istanbul
Old 09-14-2012 , 01:21   FFF1 kill fix
Reply With Quote #1

hi, I did as a player scores his team-mate shoots himself +1.The problem is that the passing score of +1 if the player kills himself again.
player console "kill" = +1 frag ---- I do not want it

PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <fun>
public plugin_init()
{
    
register_plugin("Takim Arkadasi Skor + 1","1.0","CSmiLeFaCe")
    
RegisterHam(Ham_Killed,        "player""oyuncugeberdiginde")
}
public 
oyuncugeberdiginde(victimattackershouldgib)
{
    if(
get_user_team(attacker) == 1)
    {
        if(
get_user_team(victim) == 1)
        {
            
set_user_frags(attackerget_user_frags(attacker) +2)
        }
    }
    if(
get_user_team(attacker) == 2)
    {
        if(
get_user_team(victim) == 2)
        {
            
set_user_frags(attackerget_user_frags(attacker) +2)
        }
    }
    return 
PLUGIN_HANDLED;

__________________

csduragi.com
quLeryuzz is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 09-14-2012 , 01:24   Re: FFF1 kill fix
Reply With Quote #2

PHP Code:
if (victim == attacker)
    return 
HAM_IGNORED
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).

Last edited by YamiKaitou; 09-14-2012 at 01:24.
YamiKaitou is offline
quLeryuzz
Member
Join Date: May 2010
Location: Istanbul
Old 09-14-2012 , 01:29   Re: FFF1 kill fix
Reply With Quote #3

thanks.
__________________

csduragi.com
quLeryuzz 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 09:12.


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