ItsMods

Full Version: iPrintLnBold HELP!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi guys..

I need your help to solve my problem.
I want to enter the server told this title "Survive the Attack of the zombie bla bla bla ..".
e already compiled but not working ..my version of the addon is to TeknoMw3 V206...
Any solution?


Code:
using System;
using Addon;

namespace mp
{
    public class mp_test : CPlugin
    {
        public override void OnServerLoad()
        {
            ServerPrint("mp:sorvive!!");
        }

        public override void OnPlayerSpawned(ServerClient Client)
        {
            iPrintLnBold("^7^5Survive the Attack of the ^1ZombieS^7!", Client);

        }
    }
}
Maybe its the way u compiled it :
Goto : project > <projectname> Properties... > Target framework > Set it on ".NET framework 3.0"

And otherwise, I think the code is good, but im not really advanced so I'm not sure!

You can also add : Teams.Allies = survivors, Teams.Axis = infected.
Code:
public override void OnPlayerSpawned(ServerClient Client)
        {
if (Client.Team == Teams.Allies)
{    
iPrintLnBold("^7^5Survive the Attack of the ^1ZombieS^7!", Client);
}

if (Client.Team == Teams.Axis)
{
iPrintLnBold("^7^5Attack the ^1SurvivorS^7!", Client);
}

        }
(12-03-2012, 21:49)99IRock Wrote: [ -> ]Maybe its the way u compiled it :
Goto : project > <projectname> Properties... > Target framework > Set it on ".NET framework 3.0"

And otherwise, I think the code is good, but im not really advanced so I'm not sure!

You can also add : Teams.Allies = survivors, Teams.Axis = infected.
Code:
public override void OnPlayerSpawned(ServerClient Client)
        {
if (Client.Team == Teams.Allies)
{    
iPrintLnBold("^7^5Survive the Attack of the ^1ZombieS^7!", Client);
}

if (Client.Team == Teams.Axis)
{
iPrintLnBold("^7^5Attack the ^1SurvivorS^7!", Client);
}

        }

thanks friend!
but my version of the addon is to TeknoMw3 V206.
any other ideas to work somehow?
(sorry for my English)
@XxBRxX We do not support the outdated version of the addon (aka the teknogods version)
Buy the game and use the official up-to-date addon or ask for support at the teknogods website.