Score via lua
Some time ago, squeek did this for ff_bounce lua --------------------
--points -------------------- function player_killed( player, damageinfo ) local attacker = damageinfo:GetAttacker() if IsPlayer( attacker ) then local team = attacker:GetTeam() team:AddScore( 1 ) end end The idea was to give one point per frag to the team and it works fine. My problem now is that i used that code also in my dm map ff_psyz and what happens is that the team score board and your own scoreboard does not match now.. because that lua dont take suicides in consideration so it doesn't take u one less point : ) plz reply the lua line that takes one frag per suicide. ty : ) |
Quote:
|
hm i ve tryed it and i think its not working, went to a map suicide myself and the score board dint change to -1/-2 etc.
Maybe was my problem copy pasting that code into the lua, cuse im not sure if i did it right, can u paste the part that i had together with the part u did .. cuse im not sure if to copy paste if before the end/end or after : P ty |
Code:
-------------------- |
All times are GMT. The time now is 02:04 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.