Guest User

Untitled

a guest
May 20th, 2018
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.69 KB | None | 0 0
  1. // Random Skin
  2. int GetRandomSkin() {
  3.     int iSkin = Random(13);
  4.     if ((iSkin == 6) || (iSkin == 7) || (iSkin == 11))
  5.     {
  6.         iSkin = Random(6);
  7.     }
  8.     return iSkin
  9. }
  10.  
  11. // Random Hair
  12. int GetRandomHair() {
  13.     int iHair = Random(36); //    0-23 29 31 33 35
  14.     if (((iHair >= 24) && (iHair <= 28)) || (iHair == 30) || (iHair == 32) || (iHair == 34))
  15.     {
  16.         iHair = Random(24);
  17.     }
  18.     return iHair
  19. }
  20.  
  21.  
  22.  
  23.  
  24. void main()
  25. {
  26.     //Lots of stuff, who to spawn where how and what
  27.  
  28.     // Random Color: Skin/Hair
  29.     iSkin = GetRandomSkin()
  30.     SetColor(oSpawn, COLOR_CHANNEL_SKIN, iSkin);
  31.  
  32.     iHair = GetRandomHair()
  33.     SetColor(oSpawn, COLOR_CHANNEL_HAIR, iHair);
  34. }
Add Comment
Please, Sign In to add comment