• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help choose 2 random players?(1 each team)
Hey guys.i will give a big thx if u can help meBig Grin
I mean on spawn choose 2 random players (1-1 each team) and choose (an) other one(s) if they death.
Help me please!Big Grin
Firstly, make foreach in players.count. Then check if player is alive and his/her ping is fine. Then just move all players to spectators by making 'client.team = team.spect; playersuicide;', and just choose player from 'players.size' in foreach. And spawn them to different teams?
And if 'choosen' player dies ( check by loop, hp, whatever ), make the second stage again.

Maybe someone will post code now.
C++/Obj-C developer. Neko engine wip
Steam: Click
No i mean just choose 2 random players i will make jug of them ...
i am too lazy to check a jug mode Sad
Isn't it something like randomInt level.players.size?
Do not take life too seriously. You will never get out of it alive.
[Image: UGPjFJa.jpg]
(09-11-2013, 20:53)DidUknowiPwn Wrote: Isn't it something like randomInt level.players.size?

It doesn't like it, gtfo :Troll:
C++/Obj-C developer. Neko engine wip
Steam: Click
any1 can help?:S
There are many mod around to look at for this Smile
[Image: veovuq.png]

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 2,172 04-24-2014, 19:31
Last Post: Casper
  [Release] [SOURCE] Random Weapons. [HARD] Tony. 1 2,546 11-08-2013, 11:11
Last Post: Nekochan
  Help source random weapons [HARD] Tony. 4 2,445 11-08-2013, 05:25
Last Post: [HARD] Tony.
Question Help Team DAMAGE offhand E-losev 0 1,351 09-17-2013, 12:03
Last Post: E-losev
Rainbow [Release] MW3: Random Weapon Plugin V1 Nekochan 50 18,517 09-11-2013, 15:11
Last Post: EnVi Sweden Rocks
Exclamation [Request] Random Weapon At Spawn Scripts18 3 2,442 07-27-2013, 23:53
Last Post: DidUknowiPwn
  Help Receiving a random primary & secondary DidUknowiPwn 5 2,421 07-22-2013, 09:47
Last Post: Yamato
  What script controls the "random" aspect to care packages? akillj 2 1,768 06-05-2013, 11:24
Last Post: akillj
  Name Team CheGuevara 1 1,638 06-01-2013, 14:15
Last Post: Yamato
  Random anims master131 14 6,123 05-24-2013, 09:45
Last Post: [HARD] Tony.

Forum Jump:

Users browsing this thread: 1 Guest(s)