Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Request Random player model
#1
any idea where to start with this one?

ie:

if (Client.Team == Teams.Allies)

Client.Other.SetPlayerModel("mp_fullbody_opforce_juggernaut");
Client.Other.SetPlayerModel("mp_body_ally_ghillie_urban_sniper");

etc
{
else
}

for infected
[Image: b_560_95_1.png]


[Image: b_560_95_1.png]

Reply

#2
Something like

CSHARP Code
  1. Random r =new Random();
  2. int numberOfModels=2;//?
  3. int currentModelnumber=r.Next(1,numberOfModels);
  4.  
  5. switch(currentModelnumber)
  6. {
  7. case 1:
  8. Client.Other.SetPlayerModel("mp_fullbody_opforce_juggernaut");
  9. break;
  10. case 2:
  11. Client.Other.SetPlayerModel("mp_body_ally_ghillie_urban_sniper");
  12. break;
  13. default:
  14. break;
  15. }
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [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,700 11-08-2013, 05:25
Last Post: [HARD] Tony.
  Help Sentry Gun kill = Player kill Snake 8 5,860 11-07-2013, 13:41
Last Post: Nekochan
  Player can write Fl0w_.JACKDAN 2 3,347 09-19-2013, 16:36
Last Post: Fl0w_.JACKDAN
  Help choose 2 random players?(1 each team) 26hz 6 4,648 09-12-2013, 17:32
Last Post: Yamato
Rainbow [Release] MW3: Random Weapon Plugin V1 Nekochan 50 33,272 09-11-2013, 15:11
Last Post: EnVi Sweden Rocks
  Zombie model imchasinyou 7 6,781 07-31-2013, 01:11
Last Post: rotceh_dnih
Exclamation [Request] Random Weapon At Spawn Scripts18 3 4,737 07-27-2013, 23:53
Last Post: DidUknowiPwn
  Help Receiving a random primary & secondary DidUknowiPwn 5 4,402 07-22-2013, 09:47
Last Post: Yamato
  [CoD 4] Trying to set a player -- DidUknowiPwn 7 5,844 07-03-2013, 21:58
Last Post: Pozzuh

Forum Jump:


Users browsing this thread:
1 Guest(s)

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