There's probably a plugin that you can enter some co-ords and it will draw a box for you.
If not I may be able to write one.
PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#if !defined charsmax
#define charsmax(%1) sizeof(%1)-1
#endif
enum coords
{
x1,
y1,
z1,
x2,
y2,
z2
}
new box_origins[coords];
public plugin_init()
{
register_plugin("Draw a box", "1.0", "Pixie")
register_concmd("amx_box_coord","box",ADMIN_ALL,"amx_box <coord> <location> e.g. amx_box x1 100, or amx_box z2 234")
register_concmd("amx_draw_box","draw_box",ADMIN_ALL)
}
public box(id,level,cid)
{
static arg1[3] ;
static arg2[10] ;
static coords:coord=x1;
read_argv(1,arg1,charsmax(arg1))
if ( arg1[1] != '1' && arg1[1] != '2' )
{
console_print(id,"Invalid co-ord specifier: %s",arg1)
return PLUGIN_HANDLED ;
}
switch ( arg1[0] )
{
case 'x': coord = x1 ;
case 'y': coord = y1 ;
case 'z': coord = z1 ;
default:
{
console_print(id,"Invalid co-ord specifier: %s",arg1)
return PLUGIN_HANDLED ;
}
}
if ( arg1[1] == '2' )
{
coord += x2 ; // switch from x1 to x2 et c.
}
read_argv(2,arg2,charsmax(arg2))
box_origins[coord] = str_to_num(arg2) ;
return PLUGIN_HANDLED ;
}
public draw_box()
{
static coords:i ;
message_begin(MSG_BROADCAST,SVC_TEMPENTITY,{0,0,0},0)
write_byte(TE_BOX)
for ( i = x1 ; i <= z2 ; i ++ )
{
write_coord(box_origins[i])
}
write_short(100) ; // life ( in 0.1 seconds )
write_byte(0) ; // R
write_byte(255) ; // G
write_byte(0) ; // B
message_end() ;
}
Vet, if you are interested feel free to bundle this with your plugin.
I'm not really an ownership kind of guy when it comes to code.
Particularly such simple code.