Raised This Month: $ Target: $400
 0% 

friendlynade help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bladell
Senior Member
Join Date: Jun 2012
Old 06-19-2014 , 04:15   Re: friendlynade help
Reply With Quote #1

PHP Code:
#include <amxmodx> 
#include <amxmisc> 
#include <fun>

public plugin_init() { 
    
register_plugin("Friendly grenade damage","0.1","omnipotent"
    
register_event("Damage","damage","b")


public 
damage(victim)
{
        new 
attackerhealth
        health 
100 read_data(2)
        
attacker get_user_attacker(victim)
        if (
get_user_team(attacker) == get_user_team(victim)) 
        {
            
set_user_health(victim,health)
        }

Not tested...
Bladell 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 21:17.


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