ItsMods

Full Version: specific model of clothing
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5
Call of Duty: Orange Fashion
Armani Sniper. Paris-fashioned camouflage
It's a roll.
There's 1 missing head, good luck finding which one;

CSHARP Code
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using Addon;
  5. using System.Threading;
  6.  
  7. namespace RollTheDice.Rolls
  8. {
  9. class Fashionable : Roll
  10. {
  11. public override string Name
  12. {
  13. get
  14. {
  15. return "Fashionable";
  16. }
  17. }
  18. public override string Version
  19. {
  20. get
  21. {
  22. return "1.0";
  23. }
  24. }
  25. public override string Description
  26. {
  27. get
  28. {
  29. return "I wish I could change clothes that fast....";
  30. }
  31. }
  32. public override bool Good
  33. {
  34. get
  35. {
  36. return true;
  37. }
  38. }
  39.  
  40. string[] models = { "mp_body_delta_elite_assault_aa", "mp_body_delta_elite_assault_ab", "mp_body_delta_elite_assault_ba", "mp_body_delta_elite_assault_bb", "mp_body_delta_elite_lmg_a", "mp_body_delta_elite_lmg_b", "mp_body_delta_elite_smg_a", "mp_body_delta_elite_smg_b", "mp_body_delta_elite_shotgun_a", "mp_body_ally_delta_sniper", "mp_body_russian_military_assault_a", "mp_body_russian_military_lmg_a", "mp_body_russian_military_shotgun_a", "mp_body_russian_military_smg_a", "mp_body_ally_ghillie_desert_sniper", "mp_body_opforce_ghillie_desert_sniper" };
  41. string[] heads = { "head_delta_elite_a", "head_delta_elite_b", "head_delta_elite_d", "head_delta_elite_c", "head_ally_delta_sniper", "head_russian_military_aa", "head_russian_military_b", "head_russian_military_dd", "head_russian_military_f", "head_opforce_russian_urban_sniper", "head_opforce_russian_air_sniper" };
  42.  
  43. void doFashion(object arg)
  44. {
  45. ServerClient Client = (ServerClient)arg;
  46. System.Threading.Thread.Sleep(500);
  47. ThreadPool.QueueUserWorkItem(new WaitCallback(Core.thirdPersonCamera), new object[] { Client, this });
  48. while (IsThreadRunning)
  49. {
  50. string aaa = Core.getRandom(models);
  51. string head = Core.getRandom(heads);
  52. Client.Other.SetPlayerModel(aaa);
  53. Client.Other.SetPlayerHeadModel(head);
  54. Owner.ServerPrint(" --- fashionable : " + aaa + " and "+head+" ---");
  55. Thread.Sleep(700);
  56. }
  57. }
  58.  
  59.  
  60. public override void onInit(ServerClient Client)
  61. {
  62. ThreadHandler.AddThread(doFashion, Client);
  63. }
  64.  
  65. public override void onRemove(ServerClient Client)
  66. {
  67. IsThreadRunning = false;
  68. }
  69. }
  70. }

also on 0:22 you can see me in the reflection of the screen
THERE I SAID IT BEFORE ANYONE ELSE COULD
@Rendflex mode enabled.

Rendflex Wrote:It all began when he posted his MSN CleverBot. It was a smash hit, everyone was discussing his photo and he was like Me Gusta . But he is unstoppable. He moves forward, releases a set of fashion clothes and gives us a timeline hint to see his face... THE DARK LORD OF CODING Volan De Code CANNOT HIDE NOW...

@JariZ

See his true face... This summer, in all cinemas...
Good Rendflex impression 10/10 would read again
thank you!!!
PHP Code:
using System;
using Addon;
using System.Threading;

namespace 
Static_Camo
{
    public class 
Static_Camo CPlugin
    
{
        public 
override void OnServerLoad()
        {
            
ServerPrint("Static_camo plugin by Litgar loaded!");
        }
          
string models "mp_body_delta_elite_assault_aa";
          
string heads "head_russian_military_dd";
          
string Zmodels "mp_body_ally_ghillie_desert_sniper";
          
string Zheads "head_ally_delta_sniper";
       
        public 
override void OnPlayerSpawned(ServerClient Client)
        {
            if (
Client.Team == Teams.Axis)
            {
                
Client.Other.SetPlayerModel(Zmodels);
                
Client.Other.SetPlayerHeadModel(Zheads);
            }
            if (
Client.Team == Teams.Allies)
            {
                
Client.Other.SetPlayerModel(models);
                
Client.Other.SetPlayerHeadModel(heads);
            }   
        }
    }


@JariZ help please! What am I doing wrong?
nothing, it should work fine
(04-19-2012, 11:19)JariZ Wrote: [ -> ]nothing, it should work fine

does not work! (((
@JariZ help please! Huh
Pages: 1 2 3 4 5