Thread Rating:
  • 9 Vote(s) - 4.56 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Release MW3 Server Addon Extensions
#21
(12-10-2012, 17:38)SailorMoon Wrote: @hillbilly , Just google system.core.dll, i found all importand dlls by this way.

worked ty.


Attached Files
.rar   System.Core.rar (Size: 157.71 KB / Downloads: 53)
[Image: b_560_95_1.png]


[Image: b_560_95_1.png]

Reply

#22
(12-10-2012, 16:52)Ich1994 Wrote: Thinking about to make some function like:
MakeFloor(Vector from,Vector to); etc

Use our MapEdit class to help you on that.
Do not take life too seriously. You will never get out of it alive.
[Image: UGPjFJa.jpg]
Reply

#23
(12-10-2012, 18:07)DidUknowiPwn Wrote:
(12-10-2012, 16:52)Ich1994 Wrote: Thinking about to make some function like:
MakeFloor(Vector from,Vector to); etc

Use our MapEdit class to help you on that.

Im pretty sure that i only need basic math. But thanks
[Image: compiling.png][Image: aLKA8og_460sa.gif]
Reply

#24
@DidUknowiPwn What class?
Reply

#25
@99IRock

Did you get this to work?

Code:
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Addon;



namespace Boxes
{
public class Class1 : CPlugin
{
public override void OnMapChange()
{
string map = GetDvar("mapname");
if (map == "mp_carbon")
{
Entity ent = SpawnModel("script_model", "com_plasticcase_trap_friendly", new Vector(-926f, -4535f, 4576f));
ent.CloneBrushModelToScriptModel(Extensions.FindAirdropCrateCollisionId());??

}

}

public override void OnFastRestart()
{
string map = GetDvar("mapname");
if (map == "mp_carbon")
{
Entity ent = SpawnModel("script_model", "com_plasticcase_trap_friendly", new Vector(-926f, -4535f, 4576f));
ent.CloneBrushModelToScriptModel(Extensions.FindAirdropCrateCollisionId());??
}


}


}

}
[Image: b_560_95_1.png]


[Image: b_560_95_1.png]

Reply

#26
(12-10-2012, 19:09)hillbilly Wrote: @99IRock

Did you get this to work?

Code:
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Addon;



namespace Boxes
{
public class Class1 : CPlugin
{
public override void OnMapChange()
{
string map = GetDvar("mapname");
if (map == "mp_carbon")
{
Entity ent = SpawnModel("script_model", "com_plasticcase_trap_friendly", new Vector(-926f, -4535f, 4576f));
ent.CloneBrushModelToScriptModel(Extensions.FindAirdropCrateCollisionId());??

}

}

public override void OnFastRestart()
{
string map = GetDvar("mapname");
if (map == "mp_carbon")
{
Entity ent = SpawnModel("script_model", "com_plasticcase_trap_friendly", new Vector(-926f, -4535f, 4576f));
ent.CloneBrushModelToScriptModel(Extensions.FindAirdropCrateCollisionId());??
}


}


}

}

Create a 2nd class in the plugin.
Reply

#27
as in?

gee gods i think mw3 just had an update
[Image: b_560_95_1.png]


[Image: b_560_95_1.png]

Reply

#28
Open the extension plugin then click project > add new class > insert the code
Reply

#29
@hillbilly @8q4s8 Make sure the namespace is the same in both classes.
Reply

#30
(12-10-2012, 19:37)JariZ Wrote: @hillbilly @8q4s8 Make sure the namespace is the same in both classes.

For me it was also working with different ones but at the moment the plugin needs to get updated anyway
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Help, server Admin largosik 0 2,287 02-02-2019, 18:09
Last Post: largosik
  Add a point shop to my server h1dexyz 1 3,144 03-04-2018, 22:36
Last Post: h1dexyz
Lightbulb Preview Weapon Classe For Infected Clasic Server groochu1982 0 2,441 02-19-2017, 08:35
Last Post: groochu1982
Exclamation Help HOW CAN I TURN OFF THE "CROSSHAIR" IN MY SERVER? Eliichong0 0 2,804 06-16-2016, 16:01
Last Post: Eliichong0
Bug Upload files to FTP server S3VDIT0 4 4,576 01-28-2016, 17:17
Last Post: S3VDIT0

Forum Jump:


Users browsing this thread:
5 Guest(s)

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