04-22-2012, 04:06
(This post was last modified: 04-22-2012, 04:09 by [Z00MBY] Alex.)
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);
}
}
}
}