Thread Rating:
  • 2 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Request [PROBLEM RESOLVED, plugin with what I need have been released] Help with pluginmaker
#1
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
Reply

#2
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
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#3
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

Reply

#4
(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)
(08-10-2011, 12:58)Pozzuh Wrote:
Se7en Wrote:Stealed, from cod4 mod ...
look who's talking

[Release] Old School Mod v2.2
[Release] Scroll menu

Reply

#5
which version of server addon do you have?
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#6
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
Reply

#7
(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
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#8
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
Reply

#9
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"





Attached Files
.rar   promodlikeMW3.rar (Size: 1.19 KB / Downloads: 26)
Reply

#10
(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
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Help Android problem Yamato 12 7,512 04-25-2014, 04:49
Last Post: ScHmIdTy56789
Wink Plugin with !ban !kick and !tampban clemi555 3 3,913 11-09-2013, 09:21
Last Post: clemi555
  AntiNoScope Plugin clemi555 5 4,384 11-08-2013, 19:13
Last Post: clemi555
  [Release] Bunker Plugin 1.3 archit 68 38,588 10-30-2013, 11:59
Last Post: clacki
  Problem with Rain Effects on Maps mitchhacker 5 4,470 10-22-2013, 00:46
Last Post: mitchhacker
  Help Modifying plugin maverigh 5 5,290 10-19-2013, 10:29
Last Post: Nekochan
Shocked [Request] Switch plugin axel-le-meilleur 6 4,672 10-19-2013, 06:59
Last Post: iRoNinja
  [Release] Yurio Map Plugin Yurio 101 58,014 09-26-2013, 13:38
Last Post: First_Semyon
Brick [Release] v1.1 ChangeMap/NextMap Plugin without any configuration milchshake 23 17,472 09-23-2013, 13:18
Last Post: SgtLegend
  Help !say Plugin (like the !say from GodPlugin) Hallla 0 2,544 09-13-2013, 09:31
Last Post: Hallla

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.