复制程式
#include <amxmodx>
#include <empty>
#include <hamsandwich>
new gash[33]
public plugin_natives()
{
register_native("ep_check_player_gash", "native_check_player_gash", 1)
register_native("ep_set_player_gash", "native_set_player_gash", 1)
}
public plugin_init()
{
register_plugin("gash", "1.0", "waipun")
RegisterHam(Ham_Killed, "player", "fw_Player_kill")
}
public client_connect(id)
{
set_hudmessage(200, 100, 0, 3.0, 0.35, 0, 6.0, 0.0, 0.1, 0.2,4)
show_hudmessage(id,gash: %d,gash[id])
}
public native_set_player_gash(id, set_gash)
{
gash[id] = set_gash
return PLUGIN_CONTINUE
}
public native_check_player_gash(id)
{
return gash[id]
}
public fw_Player_kill(victim, attacker, shouldgib)
{
gash[attacker]+1
return PLUGIN_CONTINUE
}