Thread Rating:
  • 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-Cdeveloper. 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]
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-Cdeveloper. Neko engine wip
Steam: Click
Reply

#6
any1 can help?:S
Reply

#7
There are many mod around to look at for this Smile
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 4,079 04-24-2014, 19:31
Last Post: Casper
  [Release] [SOURCE] Random Weapons. [HARD] Tony. 1 4,106 11-08-2013, 11:11
Last Post: Nekochan
  Help source random weapons [HARD] Tony. 4 4,699 11-08-2013, 05:25
Last Post: [HARD] Tony.
Question Help Team DAMAGE offhand E-losev 0 2,427 09-17-2013, 12:03
Last Post: E-losev
Rainbow [Release] MW3: Random Weapon Plugin V1 Nekochan 50 33,264 09-11-2013, 15:11
Last Post: EnVi Sweden Rocks
Exclamation [Request] Random Weapon At Spawn Scripts18 3 4,735 07-27-2013, 23:53
Last Post: DidUknowiPwn
  Help Receiving a random primary & secondary DidUknowiPwn 5 4,398 07-22-2013, 09:47
Last Post: Yamato
  What script controls the "random" aspect to care packages? akillj 2 3,265 06-05-2013, 11:24
Last Post: akillj
  Name Team CheGuevara 1 3,074 06-01-2013, 14:15
Last Post: Yamato
  Random anims master131 14 10,790 05-24-2013, 09:45
Last Post: [HARD] Tony.

Forum Jump:


Users browsing this thread:
2 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.