Forum

> > CS2D > Scripts > Dont + if i kill myself
Forums overviewCS2D overview Scripts overviewLog in to reply

English Dont + if i kill myself

2 replies
To the start Previous 1 Next To the start

old Dont + if i kill myself

Pamoon
User Off Offline

Quote
Hi, i have new problems, (friends fire: enable) when i kill my self (such as grenade)
~> Exp is increase:
1
2
3
4
5
6
7
8
9
function _kill(i)
Fuuuuu(i)
	if (player(i,"weapontype")==50) then
		ExpPlay[i] = ExpPlay[i] + p
	else
	ExpPlay[i] = ExpPlay[i] + c
	end
	
end
I need: When i kill my self, the ExpPlay[i] not increase, it decrease (-30).

old Re: Dont + if i kill myself

Alistaire
User Off Offline

Quote
1
2
3
4
5
6
7
8
9
10
function _kill(killer, victim)
	Fuuuuu(killer)
	if killer ~= victim then
		if player(killer,"weapontype") == 50 then
			ExpPlay[killer] = ExpPlay[killer] + p
		else
			ExpPlay[killer] = ExpPlay[killer] + c
		end
	end
end
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview