PDA

View Full Version : Needed help.


combocarte112
01-08-2017, 17:12
Hello, i need a plugin. When kill an CT, you receive 3 frags, no 1.
Thanks.

EFFx
01-08-2017, 17:16
#include <amxmodx>
#include <fun>

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

public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)

register_event("DeathMsg","clientDeath","a")
}
public clientDeath()
{
new iKiller = read_data(1)
new iVictim = read_data(2)

if(iKiller != iVictim && get_user_team(iKiller) != get_user_team(iVictim))
{
set_user_frags(iKiller,get_user_frags(iKiller ) + 2)
}
}