Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Request specific model of clothing
#31
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);
            }   
        }
    }

Reply

#32
i just tried it and it worked fine.


Attached Files
.rar   Static_Camo.rar (Size: 1.88 KB / Downloads: 10)
[Image: b_560_95_1.png]


[Image: b_560_95_1.png]

Reply

#33
You compile this code?
Reply

#34
(04-22-2012, 04:11)litgar Wrote: You compile this code?

only took a min or so, and worked fine, however i only tried it on infected, they seemed ok. Surviver didn't seem to change until after a death though?
[Image: b_560_95_1.png]


[Image: b_560_95_1.png]

Reply

#35
I have not worked this plug-in
Reply

#36
(04-22-2012, 04:47)litgar Wrote: I have not worked this plug-in

i just tested it again on my paid server and your right it doesn't seem to do anything, seems to load ok but model are the same.
[Image: b_560_95_1.png]


[Image: b_560_95_1.png]

Reply

#37
I can not understand the reason ...
Reply

#38
Every map has different factions/teams. Not every body model is loaded on each map...
[Image: 30xhrep.png]

A casual conversation between barata and I about Nukem.
Reply

#39
(04-22-2012, 06:08)master131 Wrote: Every map has different factions/teams. Not every body model is loaded on each map...

How to make a universal body for all the cards?
Reply

#40
@litgar
1. Horrible google translator, please turn it off and get to the nearest school in your area to learn english.
2. You'll have to specify different models for each map. Could take a while
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Zombie model imchasinyou 7 6,185 07-31-2013, 01:11
Last Post: rotceh_dnih
  List of models that can be spawned? (Looking for C4 model) akillj 5 4,463 06-27-2013, 13:35
Last Post: Yamato
  expansion model [HARD] Tony. 1 2,407 05-25-2013, 10:43
Last Post: Nekochan
  [Request] Random player model hillbilly 1 2,560 05-12-2013, 08:30
Last Post: archit
  [Request] 3d tomahawk model gouveia4 8 5,720 12-16-2012, 02:29
Last Post: gateboy6
  [Request] how to find a static model in map? tomglazer 2 2,499 12-12-2012, 03:56
Last Post: tomglazer
Brick [Request] Model analyser RaZ 2 2,493 07-11-2012, 18:38
Last Post: RaZ
  [Request] Motorcycle model Rendflex 4 2,923 06-23-2012, 14:28
Last Post: JariZ
  The Annoying Riot Model master131 24 11,524 05-26-2012, 21:56
Last Post: RaZ
  [Request] Goliath Tracked Mine Model Yamato 1 2,284 04-21-2012, 10:45
Last Post: surtek

Forum Jump:


Users browsing this thread:
1 Guest(s)

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