ItsMods

Full Version: [PROBLEM RESOLVED, plugin with what I need have been released] Help with pluginmaker
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
Hi all,

I want to create my own plugin with pluginmaker and I need help because I know anything about C#.

I just want a "promodlike" plugin which forces some values to all client who connect on the server :

Here the values I want to be forced
So, I launch plugin maker and I did like the pics show [Image: mini_140780Sanstitre.jpg]

  1. only onServerLoad
  2. SetClientDvar(Client.ClientNum, "cg_fov \"80\"");
    SetClientDvar(Client.ClientNum, "com_maxfps \"100\"");
    SetClientDvar(Client.ClientNum, "cl_maxpackets \"100\"");
    SetClientDvar(Client.ClientNum, "cg_crosshairEnemyColor \"0\"");
    SetClientDvar(Client.ClientNum, "cg_scoreboardMyColor \"0 0 0 0\"");
    SetClientDvar(Client.ClientNum, "cg_scoreboardpingtext \"1\"");
    SetClientDvar(Client.ClientNum, "cg_scoresPing_MaxBars \"10\"");
    SetClientDvar(Client.ClientNum, "cg_scoresPing_interval \"20\"");
    SetClientDvar(Client.ClientNum, "waypointiconheight \"12\"");
    SetClientDvar(Client.ClientNum, "waypointiconwidth \"12\"");
    SetClientDvar(Client.ClientNum, "compassPlayerWidth \"12\"");
    SetClientDvar(Client.ClientNum, "compassPlayerHeight \"12\"");
    SetClientDvar(Client.ClientNum, "compassFriendlyHeight \"12\"");
    SetClientDvar(Client.ClientNum, "compassFriendlyWidth \"12\"");
    SetClientDvar(Client.ClientNum, "compassObjectiveHeight \"12\"");
    SetClientDvar(Client.ClientNum, "compassObjectiveHeight \"12\"");
    SetClientDvar(Client.ClientNum, "drawlagometer \"1\"");
    SetClientDvar(Client.ClientNum, "ragdoll_enable \"0\"");
    SetClientDvar(Client.ClientNum, "r_desaturation \"0\"");
    SetClientDvar(Client.ClientNum, "r_dlightLimit \"0\"");
    SetClientDvar(Client.ClientNum, "r_drawsun \"0\"");
    SetClientDvar(Client.ClientNum, "r_fog \"0\"");
    SetClientDvar(Client.ClientNum, "r_normalmap \"0\"");
    SetClientDvar(Client.ClientNum, "r_outdoorFeather \"0\"");
    SetClientDvar(Client.ClientNum, "r_polygonOffsetBias \"-16\"");
    SetClientDvar(Client.ClientNum, "r_polygonOffsetScale \"-4\"");
    SetClientDvar(Client.ClientNum, "snaps \"30\"");
  3. click generate C# code
  4. and to finish click Compile!

After that no dll file was created, so I tried by an other way showed here [Image: mini_302862Sanstitre2.jpg]

  1. only onSay
  2. string lowMsg = Message.ToLower();

    if (lowMsg.StartsWith("!test"))
    {
    if (lowMsg.Length <= 6 )
    {
    TellClient(Client.ClientNum, "test settings change", true);
    }
    else
    {
    SetClientDvar(Client.ClientNum, "cg_fov \"80\"");
    SetClientDvar(Client.ClientNum, "com_maxfps \"100\"");
    SetClientDvar(Client.ClientNum, "cl_maxpackets \"100\"");
    SetClientDvar(Client.ClientNum, "cg_crosshairEnemyColor \"0\"");
    SetClientDvar(Client.ClientNum, "cg_scoreboardMyColor \"0 0 0 0\"");
    SetClientDvar(Client.ClientNum, "cg_scoreboardpingtext \"1\"");
    SetClientDvar(Client.ClientNum, "cg_scoresPing_MaxBars \"10\"");
    SetClientDvar(Client.ClientNum, "cg_scoresPing_interval \"20\"");
    SetClientDvar(Client.ClientNum, "waypointiconheight \"12\"");
    SetClientDvar(Client.ClientNum, "waypointiconwidth \"12\"");
    SetClientDvar(Client.ClientNum, "compassPlayerWidth \"12\"");
    SetClientDvar(Client.ClientNum, "compassPlayerHeight \"12\"");
    SetClientDvar(Client.ClientNum, "compassFriendlyHeight \"12\"");
    SetClientDvar(Client.ClientNum, "compassFriendlyWidth \"12\"");
    SetClientDvar(Client.ClientNum, "compassObjectiveHeight \"12\"");
    SetClientDvar(Client.ClientNum, "compassObjectiveHeight \"12\"");
    SetClientDvar(Client.ClientNum, "drawlagometer \"1\"");
    SetClientDvar(Client.ClientNum, "ragdoll_enable \"0\"");
    SetClientDvar(Client.ClientNum, "r_desaturation \"0\"");
    SetClientDvar(Client.ClientNum, "r_dlightLimit \"0\"");
    SetClientDvar(Client.ClientNum, "r_drawsun \"0\"");
    SetClientDvar(Client.ClientNum, "r_fog \"0\"");
    SetClientDvar(Client.ClientNum, "r_normalmap \"0\"");
    SetClientDvar(Client.ClientNum, "r_outdoorFeather \"0\"");
    SetClientDvar(Client.ClientNum, "r_polygonOffsetBias \"-16\"");
    SetClientDvar(Client.ClientNum, "r_polygonOffsetScale \"-4\"");
    SetClientDvar(Client.ClientNum, "snaps \"30\"");
    TellClient(Client.ClientNum, "settings improved", true);
    }
    }
  3. click generate C# code
  4. click Compile!

Always nothing appear...

So can someone help me for this simple plugin or could create it if it's easier than teach me

Thank you
there is bug, i will fix it now,
1. Select all events
2. Press Uncheck all
3. Choose your.

I forgot to add function... lol
Ty for reply

Yes, i managed to create my plugin with onSay event with the tips you said, but my plugin don't work nothing happen if I do !test.

i think there is mistake in my C# code i don't know anything about that, i just look source from some plugin released here and I tried a mix with your video which explains how use pluginmaker

(01-16-2012, 17:42)Bigbud_lover Wrote: [ -> ]Ty for reply

Yes, i managed to create my plugin with onSay event with the tips you said, but my plugin don't work nothing happen if I do !test.

i think it's my C# code which is shit your software look good.

His program is ok if you don't know how to make the plugin, once you learn more the program will be confusing (Atleast thats what I think)
which version of server addon do you have?
Quote:His program is ok if you don't know how to make the plugin, once you learn more the program will be confusing (Atleast thats what I think)
I don't know how to make a plugin so i used this tool i manage to create a dll but it's not working, i tried fov plugin released here and it works.

Quote:which version of server addon do you have?

the latest, i've just dl your soft and server addon 1h ago
(01-16-2012, 17:51)Bigbud_lover Wrote: [ -> ]
Quote:His program is ok if you don't know how to make the plugin, once you learn more the program will be confusing (Atleast thats what I think)
I don't know how to make a plugin so i used this tool i manage to create a dll but it's not working, i tried fov plugin released here and it works.

Quote:which version of server addon do you have?

the latest, i've just dl your soft and server addon 1h ago

latest - 1.90XX ?
that version not loads plugins
When i launch my server, console say : Version 1.190

So i think version is 1.190

Quote:that version not loads plugins

fov plugin released on this forum work on my server so i think plugins are loaded
I did a test tell me if it works! Smile

cg_fov 80
cg_fovscale 1.125
com_maxfps 100
cl_maxpackets 100
cg_scoreboardpingtext 1
cg_ScoresPing_MaxBars 10
cg_ScoresPing_Interval 20
cg_crosshairEnemyColor 0
cg_scoreboardMyColor 0 0 0 0
waypointiconheight 12
waypointiconwidth 12
compassPlayerHeight 12
compassPlayerWidth 12
compassFriendlyHeight 12
compassFriendlyWidth 12
compassObjectiveHeight 12
compassObjectiveWidth 12
drawlagometer 1
ragdoll_enable 0
r_desaturation 0
r_dlightLimit 0
r_normalMap 0
r_outdoorFeather 0
r_polygonOffsetBias -16
r_polygonOffsetScale -4
r_drawSun 0
r_fog 0
snaps 30
g_antilag "1
scr_game_playerwaittime "15"
ui_mousePitch "0"



(01-16-2012, 22:35)TEDZu Wrote: [ -> ]I did a test tell me if it works! Smile

cg_fov 80
cg_fovscale 1.125
com_maxfps 100
cl_maxpackets 100
cg_scoreboardpingtext 1
cg_ScoresPing_MaxBars 10
cg_ScoresPing_Interval 20
cg_crosshairEnemyColor 0
cg_scoreboardMyColor 0 0 0 0
waypointiconheight 12
waypointiconwidth 12
compassPlayerHeight 12
compassPlayerWidth 12
compassFriendlyHeight 12
compassFriendlyWidth 12
compassObjectiveHeight 12
compassObjectiveWidth 12
drawlagometer 1
ragdoll_enable 0
r_desaturation 0
r_dlightLimit 0
r_normalMap 0
r_outdoorFeather 0
r_polygonOffsetBias -16
r_polygonOffsetScale -4
r_drawSun 0
r_fog 0
snaps 30
g_antilag "1
scr_game_playerwaittime "15"
ui_mousePitch "0"

it dosent work, or maybe the comand !test is wrong
Pages: 1 2 3