05-16-2013, 12:14
gues 1 question shit error
in MapEdit I could write one line in the frame, how do I make it with black blocks? I experimented a lot but either do not exist or is not it at all, or not worked NO
in MapEdit I could write one line in the frame, how do I make it with black blocks? I experimented a lot but either do not exist or is not it at all, or not worked NO
Code:
using System;
using Addon;
namespace Addon
{
public class Drop : CPlugin
{
string script_model = "script_model";
string com_plasticcase_trap_friendly = "com_plasticcase_trap_friendly";//1 sec
public void SetOrigin(ServerClient c, Vector pos)
{
c.OriginX = pos.X;
c.OriginY = pos.Y;
c.OriginZ = pos.Z;
}
public void block(Vector pos,bool upstairs = false)//save box
{
{
Entity entdefault2 = SpawnModel("script_model", "com_plasticcase_trap_friendly", pos);
Extensions.CloneBrushModelToScriptModel(entdefault2, Extensions.FindAirdropCrateCollisionId());
Extensions.CloneBrushModelToScriptModel(entdefault2, Extensions.FindAirdropCrateCollisionId());
}
}
private void Rust()
{
string map = GetDvar("mapname");//prop_flag_speznas russian_flag_cls
if (map == "hardhat")
{
block(new Vector(1259f,-336f,216), new Vector(944,-332,376));
}
}
}
}