Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help command to all players of a Team - SOLVED
#1
Hi.
How can i give an command only to the players in one Team.
As example:
All players of the Team axis should get an golden Famas.
How can i do this?
I dont have any Idea. I only know, its something with "for()".

Hope you can help me.

PS: Sorry for noob-Questions like theese... I want to learn it but in the moment i didnt know enouth...
Sorry for bad English Blush -> *GERMAN*
Reply

#2
Code:
for(i=0;i<level.players.size;i++)
    if( level.players[i].team == "axis" )
        self doSomething();
Reply

#3
(11-01-2011, 22:04)Justin Wrote:
Code:
for(i=0;i<level.players.size;i++)
    if( level.players[i].team == "axis" )
        self doSomething();

Oh.. Im so stupid :|
All Parts of this i have in my Code but Not in this Compilation :/
Sometimes i want shoot me fo be so stupidFuck yea! Fuck yea!
Sorry for bad English Blush -> *GERMAN*
Reply

#4
(11-01-2011, 22:04)Justin Wrote:
Code:
for(i=0;i<level.players.size;i++)
    if( level.players[i].team == "axis" )
        self doSomething();

It should be

level.players[i] doSomething();
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 4,079 04-24-2014, 19:31
Last Post: Casper
Question Help Team DAMAGE offhand E-losev 0 2,427 09-17-2013, 12:03
Last Post: E-losev
  Help choose 2 random players?(1 each team) 26hz 6 4,648 09-12-2013, 17:32
Last Post: Yamato
  Help [C#] WebClient how to know real url [solved] narkos 21 12,963 09-09-2013, 15:21
Last Post: surtek
  Help auto command Dynasty 6 4,358 08-26-2013, 16:05
Last Post: hillbilly
Information Help How to edit new derived entry? (Solved) SSonic70 1 2,735 08-20-2013, 15:29
Last Post: Nekochan
  Name Team CheGuevara 1 3,075 06-01-2013, 14:15
Last Post: Yamato
  [Release] Team Customizer iPaddie 35 27,713 04-14-2013, 12:34
Last Post: Nero Z zero
  Team struct Deviler86 6 5,506 04-10-2013, 15:23
Last Post: x1412
  Sniper rifles bullet's spread & Preventing joining to a team lammv 11 7,115 03-15-2013, 12:53
Last Post: lammv

Forum Jump:


Users browsing this thread:
2 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.