Damge hp
Started by smirre
17/04/2008 20:18
Page 1 of 1
smirre17/04/2008 20:18
I wath a plugin whit godmode end when fall down to se how mutch hp i lose ?
Fatalis18/04/2008 12:46
Untested
#include
#include
#include
public plugin_init()
{
register_plugin("gaben", "loves", "hamsandwich");
RegisterHam(Ham_TakeDamage, "player", "fwdPlayerTakeDamage", 0);
}
public fwdPlayerTakeDamage(plr, inflictor, attacker, Float:damage, damagebits)
{
if ( attacker == 0 ) // not sure if this is correct, untested
{
client_print(plr, print_center, "[KzM] You fell for %0.3f damage.", damage);
return HAM_SUPERCEDE;
}
return HAM_IGNORED;
}
cC|Nikolaa18/04/2008 13:19
http://forums.alliedmods.net/showthread.php?p=466048
Fatalis18/04/2008 13:51
not what he asked for
.nnnnn120/04/2008 06:40
Your plugin failed to compile! Read the errors below:
Welcome to the AMX Mod X 1.76-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team
/home/groups/amxmodx/tmp3/textrR7FTG.sma(3) : fatal error 100: cannot read from file: "hamsandwich"
Compilation aborted.
1 Error.
:/
Fatalis20/04/2008 09:20
Download the nightly build of amxmodx, and use it to locally compile this plugin.
.nnnnn120/04/2008 17:03
ty faty plugin works fine :D gj
Page 1 of 1
Please log in to post replies.