BOXES MAKER v1
hey hey, I made a boxmaker
How to use it?
1. move my plugin in the plugins folder
2. click to activate
3. build a bunker
4.open your plugin, select the txt file with the coordinates and save them!
CREATOR:
@E-losev (main)
@SailorMoon (the Fload )
@8q4s8 (Stream writer)
@99IRock (save boxes)
@master131 (extensions)
How save boxes? http://www.itsmods.com/forum/Thread-Rele...oxes.html/
How make plugin? How save boxes? http://www.itsmods.com/forum/Thread-how-...-mod.html/
Source?
Thx @8q4s8 for
use : put them after
hey hey, I made a boxmaker

How to use it?
1. move my plugin in the plugins folder
2. click to activate
3. build a bunker
4.open your plugin, select the txt file with the coordinates and save them!
CREATOR:
@E-losev (main)
@SailorMoon (the Fload )
@8q4s8 (Stream writer)
@99IRock (save boxes)
@master131 (extensions)
How save boxes? http://www.itsmods.com/forum/Thread-Rele...oxes.html/
How make plugin? How save boxes? http://www.itsmods.com/forum/Thread-how-...-mod.html/
Source?
Code:
using Addon;
using System;
using System.IO;
using System.Collections.Generic;
namespace bmaker
{
public class maker : CPlugin
{
int ent = 0;
public override void OnAddonFrame()
{
List<ServerClient> clients;
try
{
clients = GetClients();
if (clients != null && clients.Count > 0)
{
foreach (ServerClient c in GetClients())
{
if (c.Other.isAlive == true)
{
if (c.Other.ButtonPressed(Buttons.Activate))
{
float locationX = c.OriginX;
float locationY = c.OriginY;
float locationZ = c.OriginZ + 12f;
iPrintLnBold("^2+1!", c);
c.OriginZ += 40f;
Entity entdefault = SpawnModel("script_model", "com_plasticcase_trap_friendly", new Vector(locationX, locationY, locationZ));
Extensions.CloneBrushModelToScriptModel(entdefault, Extensions.FindAirdropCrateCollisionId());
ent = ent + 1;
int locx, locy, locz;
locx = Convert.ToInt32(locationX);
locy = Convert.ToInt32(locationY);
locz = Convert.ToInt32(locationZ);
string map = GetDvar("mapname");
StreamWriter writer = new StreamWriter("\\plugins\\" + map + ".txt", true);
writer.WriteLine("Entity ent" + ent + " = SpawnModel(" + "script_model" + "," + "com_plasticcase_trap_friendly" + "," + "new Vector(" + locx + "f" + "," + locy + "f" + "," + locz + "f" + "))" + ";");
writer.Dispose();
}
}
}
}
}
catch (Exception e)
{
ServerPrint("Error box maker: " + e.Message);
}
}
public override void OnServerLoad()
{
ServerPrint("Boxes maker by Egor L LOADED");
}
}
}PHP Code:
string script_model = "script_model";
string com_plasticcase_trap_friendly = "com_plasticcase_trap_friendly";
PHP Code:
public class Boxes : CPlugin // Always use : CPlugin behind your class name
{ /*this*/
![[Image: 6iiLEmPSEm0.jpg]](http://cs412822.vk.me/v412822257/282c/6iiLEmPSEm0.jpg)
skype egor2398los



thanks anyway @