Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 76 Guests
Online:

LATEST FORUM THREADS

»
CoD: Battle Royale
CoD+UO Map + Mod Releases
Damaged .pk3's
CoD Mapping
heli to attack ai
CoD4 SP Mapping

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty
Category: CoDUO Mapping
CoD United Offensive mapping and level design.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: array
Birdyman
General Member
Since: Nov 14, 2005
Posts: 55
Last: Nov 23, 2011
[view latest posts]
Level 3
Category: CoDUO Mapping
Posted: Friday, Oct. 21, 2011 11:14 am
hello

Code:
     for(;;)
     {
         players = getentarray("player", "classname")
         for(i = 0; i < players.size; i++)
         {
               players[i] playlocalsound("something");
         }
         wait 0.1;
      }


someone know how i can remove a playername out of an array after let him hear a local sound once?
so that he will not hear it twice.

or maybe there is another way to do this [confused]


edited on Oct. 21, 2011 10:08 am by Mystic
Share |
9837265498
General Member
Since: Nov 6, 2009
Posts: 193
Last: Jan 23, 2012
[view latest posts]
Level 4
Category: CoDUO Mapping
Posted: Friday, Oct. 21, 2011 02:03 pm
Code:
players = getentarray("player", "classname")
for(i = 0; i < players.size; i++)
{
    players[i].played = false;
        while(!players[i].played)
        {
            players[i] playlocalsound("something");
            players[i].played = true;
        }
     wait .1;
}


might work.... i dont know if this is what you wanted.

hope it helps!

edited on Oct. 21, 2011 10:08 am by Mystic
Share |
Mystic
General Member
Since: Apr 10, 2004
Posts: 6147
Last: Apr 15, 2018
[view latest posts]
Level 10
Forum Moderator
Im a fan of MODSonair
Category: CoDUO Mapping
Posted: Friday, Oct. 21, 2011 02:10 pm
Please use the code tags when posting script

Code:
 

[ code] script ... [ /code] 

Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty : CoDUO Mapping

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»