{
server_cmd("gxm_xp %i", get_pcvar_num(get_cvar_pointer("gxm_xp")) * 2);
server_exec();
return;
}
Czy to by było cos takiego
#include <amxmodx>
#include <amxmisc>
#include <fun>
new hs_kills
public plugin_init()
{
register_plugin("X-Kills","1.3","Mini_Midget")
register_event("DeathMsg","deathmsg","ae")
hs_kills = register_cvar("amx_hs-kills", "2")
}
public deathmsg(id)
{
new id = read_data(1)
new victim = read_data(2)
new headshot = read_data(3)
new frags = get_user_frags(id)
new hsKills = get_pcvar_num(hs_kills) -1
if (!is_user_alive(id) || !headshot )
return PLUGIN_CONTINUE
if (get_user_team(id) == get_user_team(victim))
set_user_frags(id, frags - hsKills)
else
set_user_frags(id, frags + hsKills)
return PLUGIN_CONTINUE
}
Moze byc only hs ale nie musi
Użytkownik Kogut edytował ten post 04.01.2012 21:38