Raised This Month: $ Target: $400
 0% 

FFF1 kill fix


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 


Thread Tools
Display Modes

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 08:22.


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