Quote:
Originally Posted by Natsheh
how to change team kill to a positive fragging instead of getting -1 kill.
I'm searching for an efficient method to use .
|
try this bro notice i am newbie in the amxmodx
PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <fun>
#define PLUGIN "team kill"
#define VERSION "1.0"
#define AUTHOR "SpliN"
public plugin_init() {
register_event( "DeathMsg", "Death", "a" )
}
public Death(id)
{
new teamkiller[35],teamvictim[35]
new killerid = read_data(1)
new victimid = read_data(2)
new killerfrags = get_user_frags(killerid)
get_user_team(killerid,teamkiller,charsmax(teamkiller))
get_user_team(victimid,teamkiller,charsmax(teamvictim))
if(equali(teamkiller,teamvictim))
{
set_user_frags(killerid,killerfrags + 2)
}
}