Quote:
Originally Posted by connorr
I'm not familiar either, but in this case, the use of ham looks like fakemeta.
Code:
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>
new g_max_clients
public plugin_init()
{
register_plugin( "No Weapons Damage" , "0.1" , "connor" )
RegisterHam( Ham_TakeDamage , "player" , "player_TakeDamage" )
}
public plugin_cfg()
{
g_max_clients = global_get( glb_maxClients )
}
public player_TakeDamage( this , idinflictor , idattacker , Float:damage , damagebits )
{
if( 1 <= idattacker <= g_max_clients )
return HAM_SUPERCEDE
return HAM_IGNORED
}
|
Well I for one am fairly familiar with HS, and that looks to me like it should work fine.
I don't think you need to include FM though.
And might I say, that's a very sly way to do it - if it works it'd be morally wrong to use any other method.