Posts: 268
Threads: 38
Joined: Nov 2010
Reputation:
14
How to walk "foreach (player in level.players)"?
Run this example:
foreach (player in level.players)
{
player iPrintLnBold("ItsMods");
player PlayLocalSound("flag_spawned");
}
Thx
Posts: 107
Threads: 6
Joined: Nov 2010
Reputation:
13
for(i=0;i<level.players.size;i++)
{
player = level.players[i];
player iPrintLnBold("ItsMods");
player PlayLocalSound("flag_spawned");
}
helped ya? rep me +
Posts: 107
Threads: 6
Joined: Nov 2010
Reputation:
13
player = undefined;
for(i=0;i<level.players.size;i++)
{
player = level.players[i];
player iPrintLnBold("ItsMods");
player PlayLocalSound("flag_spawned");
}
or
for(i=0;i<level.players.size;i++)
{
level.players[i] iPrintLnBold("ItsMods");
level.players[i] PlayLocalSound("flag_spawned");
}
helped ya? rep me +
Posts: 402
Threads: 59
Joined: Feb 2011