Raised This Month: $ Target: $400
 0% 

Individual friendly fire


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 02-02-2010 , 18:26   Re: Individual friendly fire
Reply With Quote #3

untested
PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"

new bool:Masoquista33 ]
new 
g_iMaxPlayers;

#define IsPlayer(%1)    (1<=%1<=g_iMaxPlayers)

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd"say /maso" "masoquista" )
    
    
g_iMaxPlayers get_maxplayers();
    
    
RegisterHamHam_Spawn "player" "Fwd_PlayerSpawn_Post" )
    
RegisterHamHam_TakeDamage "player" "FwdTakeDamage" )
}

public 
masoquista(id)
{
    
Masoquista[id] = true;
}

public 
Fwd_PlayerSpawn_Post(id)
{
    
Masoquista[id] = false;
}

public 
FwdTakeDamagevictim inflictor attacker Float:damage damage_bits )
{
    return ( 
IsPlayerattacker ) && ( !Masoquistaattacker ] || !Masoquistavictim ] ) && ( get_user_teamvictim ) == get_user_teamattacker ) ) ) ? HAM_SUPERCEDE HAM_IGNORED;    

__________________

Last edited by Bugsy; 02-02-2010 at 19:04.
Bugsy is offline
 



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


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