Hello dear members, i finded
this tutorial on alliedmods, i wanna check when i hit TE_BEAMPOINTS a player take damage
Here is the code:
Code:
#include <amxmodx>
new g_Beam;
public plugin_init( )
{
register_clcmd( "test", "pTest" );
}
public plugin_precache()
{
g_Beam = precache_model( "sprites/zerogxplode4.spr" );
}
public pTest( id )
{
new I_player_origin[ 3 ], I_end_origin[ 3 ];
get_user_origin( id, I_player_origin, 1 );
get_user_origin( id, I_end_origin, 3 );
message_begin( MSG_BROADCAST, SVC_TEMPENTITY )
write_byte( 0 )
write_coord(I_player_origin[ 0 ] )
write_coord(I_player_origin[ 1 ] )
write_coord(I_player_origin[ 2 ] )
write_coord(I_end_origin[ 0 ] )
write_coord(I_end_origin[ 1 ] )
write_coord(I_end_origin[ 2 ] )
write_short( g_Beam )
write_byte( 1 )
write_byte( 1 )
write_byte( 2 )
write_byte( 40 )
write_byte( 2 )
write_byte( 255 )
write_byte( 255 )
write_byte( 255 )
write_byte( 200 )
write_byte( 0 )
message_end()
}
So, i wanna you help me use
this tutorial for create a damage to my te beampoints plugin.
( i dont have no idea how to use it )