• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help choose 2 random players?(1 each team)
#1
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
  Reply
#2
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
  Reply
#3
No i mean just choose 2 random players i will make jug of them ...
i am too lazy to check a jug mode Sad
  Reply
#4
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]
[-] The following 1 user says Thank You to DidUknowiPwn for this post:
  • Nekochan
  Reply
#5
(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
[-] The following 1 user says Thank You to Nekochan for this post:
  • DidUknowiPwn
  Reply
#6
any1 can help?:S
  Reply
#7
There are many mod around to look at for this Smile
[Image: veovuq.png]
  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 1,905 04-24-2014, 19:31
Last Post: Casper
  [Release] [SOURCE] Random Weapons. [HARD] Tony. 1 2,265 11-08-2013, 11:11
Last Post: Nekochan
  Help source random weapons [HARD] Tony. 4 2,171 11-08-2013, 05:25
Last Post: [HARD] Tony.
Question Help Team DAMAGE offhand E-losev 0 1,164 09-17-2013, 12:03
Last Post: E-losev
Rainbow [Release] MW3: Random Weapon Plugin V1 Nekochan 50 16,748 09-11-2013, 15:11
Last Post: EnVi Sweden Rocks
Exclamation [Request] Random Weapon At Spawn Scripts18 3 2,153 07-27-2013, 23:53
Last Post: DidUknowiPwn
  Help Receiving a random primary & secondary DidUknowiPwn 5 2,152 07-22-2013, 09:47
Last Post: Yamato
  What script controls the "random" aspect to care packages? akillj 2 1,504 06-05-2013, 11:24
Last Post: akillj
  Name Team CheGuevara 1 1,455 06-01-2013, 14:15
Last Post: Yamato
  Random anims master131 14 5,589 05-24-2013, 09:45
Last Post: [HARD] Tony.

Forum Jump:


Users browsing this thread: 1 Guest(s)