• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help Adding score to team
#1
Hi all,

I have a problem on adding score to the team that your in, this is the code that I used for the action:
Code:
maps\mp\gametypes\_globallogic_score::_setTeamScore( level.players[i].team, level.players[i].team["score"]+500 );
level.players[i] is your own player.
Any idea on how to fix this?
  Reply
#2
Code:
team = level.players[i].pers["team"];
curScore = [[level._getTeamScore]]( team );
newScore = curScore + 500;
[[level._setTeamScore]]( team, newScore );

?
(08-10-2011, 12:58)Pozzuh Wrote:
Se7en Wrote:Stealed, from cod4 mod ...
look who's talking

[Release] Old School Mod v2.2
[Release] Scroll menu

  Reply
#3
(07-20-2011, 20:02)iAegle Wrote:
Code:
team = level.players[i].pers["team"];
curScore = [[level._getTeamScore]]( team );
newScore = curScore + 500;
[[level._setTeamScore]]( team, newScore );

?
Thanks mate, its works ^^
Quick response also Big Grin
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Call of Duty loser calls in SWAT team hoax on kid who beat him RaZ 3 3,791 04-24-2014, 19:31
Last Post: Casper
  Help Reset Score Low_BoB 3 3,024 11-07-2013, 16:47
Last Post: Yamato
Question Help Team DAMAGE offhand E-losev 0 2,251 09-17-2013, 12:03
Last Post: E-losev
  Help choose 2 random players?(1 each team) 26hz 6 4,299 09-12-2013, 17:32
Last Post: Yamato
  Name Team CheGuevara 1 2,829 06-01-2013, 14:15
Last Post: Yamato
Information [Tutorial] Adding DLC Maps as Custom Maps. Nekochan 151 137,385 05-25-2013, 01:05
Last Post: Nero Z zero
  [Release] Reset Player Score CheGuevara 3 2,794 04-15-2013, 21:31
Last Post: banz
  [Release] Team Customizer iPaddie 35 25,737 04-14-2013, 12:34
Last Post: Nero Z zero
  Team struct Deviler86 6 5,078 04-10-2013, 15:23
Last Post: x1412
  [HELP]Adding Spaces in a String dhanin 1 1,759 03-30-2013, 16:09
Last Post: Nukem

Forum Jump:


Users browsing this thread: 1 Guest(s)