07-29-2014, 23:53
On my server i want the infected all to have the juggernaut player model and i made a code for it but it wont work. Is there something i'm missing?
[/quote]
Code:
using System;
using System.Collections.Generic;
using Addon;
using System.Text;
namespace ClassLibrary1
{
public class Class1 : CPlugin
{
public override void OnPlayerSpawned(ServerClient Client)
{
if (Client.Team == Teams.Axis)
Client.Other.SetPlayerModel("mp_fullbody_opforce_juggernaut");
}
}
}


![[Image: 76561198070236721.png]](http://steamsignature.com/status/english/76561198070236721.png)
![[Image: 76561198096107676.png]](http://steamsignature.com/status/english/76561198096107676.png)
![[Image: 76561198164751656.png]](http://steamsignature.com/status/english/76561198164751656.png)