Forum

> > CS2D > Scripts > Dont + if i kill myself
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Dont + if i kill myself

2 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Dont + if i kill myself

Pamoon
User Off Offline

Zitieren
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).

alt Re: Dont + if i kill myself

Alistaire
User Off Offline

Zitieren
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
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht