• 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. }
[-] The following 1 user says Thank You to archit for this post:
  • hillbilly
  Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  [Release] [SOURCE] Random Weapons. [HARD] Tony. 1 2,307 11-08-2013, 11:11
Last Post: Nekochan
  Help source random weapons [HARD] Tony. 4 2,228 11-08-2013, 05:25
Last Post: [HARD] Tony.
  Help Sentry Gun kill = Player kill Snake 8 2,852 11-07-2013, 13:41
Last Post: Nekochan
  Player can write Fl0w_.JACKDAN 2 1,436 09-19-2013, 16:36
Last Post: Fl0w_.JACKDAN
  Help choose 2 random players?(1 each team) 26hz 6 2,266 09-12-2013, 17:32
Last Post: Yamato
Rainbow [Release] MW3: Random Weapon Plugin V1 Nekochan 50 17,102 09-11-2013, 15:11
Last Post: EnVi Sweden Rocks
  Zombie model imchasinyou 7 2,974 07-31-2013, 01:11
Last Post: rotceh_dnih
Exclamation [Request] Random Weapon At Spawn Scripts18 3 2,205 07-27-2013, 23:53
Last Post: DidUknowiPwn
  Help Receiving a random primary & secondary DidUknowiPwn 5 2,202 07-22-2013, 09:47
Last Post: Yamato
  [CoD 4] Trying to set a player -- DidUknowiPwn 7 2,384 07-03-2013, 21:58
Last Post: Pozzuh

Forum Jump:


Users browsing this thread: 1 Guest(s)