ItsMods

Full Version: Dvars Plugin Help..
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi Guys!! Big Grin

I have a problem with my plugin dvars ...
as seen use the addon version 204 or 206 ... I can not use another that teknomw3 not support the new versions.
dvars good plugin works for me, but makes some changes and some not .. Easy plugis dvars that goes correctly but I want to make this plugin because it is more complex.
maybe I'm missing something. If I could help, they are grateful ...Blush

My server configured with Easy Dvars Plugin...

[Image: Q1UV4.jpg]

Source:

Quote:using System;
using System.Collections.Generic;
using System.Text;
using Addon;

namespace DvarsTest
{

public class Dvars : CPlugin
{

public string justAVariable = "test";

public override void OnPlayerConnect(ServerClient Client)
{
SetDvar("g_teamname_allies", "^4Sobrevivientes");
SetDvar("g_teamname_axis", "^1ZombieS");
SetDvar("g_teamname_spectator", "^2entrando...");
SetDvar("g_scorescolor_allies", "0 0 1 1");
SetDvar("g_scorescolor_axis", "1 0 0 1");
SetDvar("g_ScoresColor_Spectator", "0 2.55 0 .8");
SetDvar("g_ScoresColor_MyParty", "2.55 2.15 0 .8");
SetDvar("g_teamcolor_allies", "0 0 1 1");
SetDvar("g_teamcolor_axis", "1 0 0 1");
SetDvar("g_TeamColor_myParty", "2.55 2.55 0 .8");
SetDvar("g_TeamColor_free", "1.42 1.42 1.42 .8 ");
SetDvar("g_TeamColor_myteam", "0 0 1 1");
SetDvar("g_TeamColor_enemyteam", "1 0 0 1");
SetDvar("g_TeamColor_spectator", "0 2.55 0 .8");
SetDvar("g_teamTitleColor_MyTeam", "1 0 0 1");
SetDvar("g_teamTitleColor_EnemyTeam", "0 0 1 1");
SetDvar("g_scoreboardfont", "0 0 0 .8");
SetDvar("g_ColorBlind_myteam", "0 0 1 1");
SetDvar("g_ColorBlind_enemyteam", "1 0 0 1");
SetDvar("g_scoreboardmycolor", "0 1.28 0 .8");
SetDvar("g_scoreboardMyColor", "0 1.28 0 .8");
SetDvar("cl_packetdup", "0");
SetDvar("scr_player_sprinttime", "40");
SetDvar("perk_sprintMultiplier", "10");
SetDvar("g_scoreboardpingtext", "0");
SetDvar("lowAmmoWarningNoReloadColor1", "Valor");
SetDvar("lowAmmoWarningNoReloadColor2", "Valor");
SetDvar("lowAmmoWarningColor1", "Valor");
SetDvar("lowAmmoWarningColor2", "Valor");
SetDvar("lowAmmoWarningNoAmmoColor1", "Valor");
SetDvar("lowAmmoWarningNoAmmoColor2", "Valor");

//SetDvar("sad", "value");
//SetDvar("sdd", "value");
}
}
}


Greetings from Argentina and sorry for my English ..
As i don't have your addon version i'm not even sure if this will work, little unsure if you just wanted the .dll or needed the code editing. However here is the .dll in the format you posted.

I'm assuming it still done with framework 3.0, yours was 3.5.

Ok out of curiosity i tried it, the team names changed ok, sprint worked i have no idea about the rest.
(12-09-2012, 00:59)hillbilly Wrote: [ -> ]As i don't have your addon version i'm not even sure if this will work, little unsure if you just wanted the .dll or needed the code editing. However here is the .dll in the format you posted.

I'm assuming it still done with framework 3.0, yours was 3.5.

Ok out of curiosity i tried it, the team names changed ok, sprint worked i have no idea about the rest.

no man ...
did not work...