English Dont + if i kill myself

2 replies
Goto Page
To the start Previous 1 Next To the start
29.03.14 05:46:38 am
Up
Pamoon
User
Offline Off
Hi, i have new problems, (friends fire: enable) when i kill my self (such as grenade)
~> Exp is increase:
Code:
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).
29.03.14 08:04:22 am
Up
Alistaire
User
Offline Off
Code:
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
IMG:http://i.imgur.com/5zhwOTP.png
29.03.14 12:17:27 pm
Up
Pamoon
User
Offline Off
Yup, thx yoy, i learned a new code
To the start Previous 1 Next To the start