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*

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

#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*

#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();



Possibly Related Threads…
Thread Author Replies Views Last Post
Question Help Team DAMAGE offhand E-losev 0 3,412 09-17-2013, 12:03
Last Post: E-losev
  Help choose 2 random players?(1 each team) 26hz 6 6,420 09-12-2013, 17:32
Last Post: Yamato
  Help [C#] WebClient how to know real url [solved] narkos 21 18,237 09-09-2013, 15:21
Last Post: surtek
  Help auto command Dynasty 6 6,107 08-26-2013, 16:05
Last Post: hillbilly
Information Help How to edit new derived entry? (Solved) SSonic70 1 3,651 08-20-2013, 15:29
Last Post: Nekochan
  Name Team CheGuevara 1 4,395 06-01-2013, 14:15
Last Post: Yamato
  Team struct Deviler86 6 7,800 04-10-2013, 15:23
Last Post: x1412
  Sniper rifles bullet's spread & Preventing joining to a team lammv 11 10,532 03-15-2013, 12:53
Last Post: lammv
  !come command Dr3am95 12 11,201 02-12-2013, 12:08
Last Post: SgtLegend
  Sending a plaeyr to axis or allies team lammv 0 2,912 01-26-2013, 18:59
Last Post: lammv

Forum Jump:


Users browsing this thread:
1 Guest(s)

Powered By MyBB, © 2002-2026 Melroy van den Berg.