Raised This Month: $ Target: $400
 0% 

Traceline help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
swapped
BANNED
Join Date: Mar 2014
Location: OrpheuRegisterHook
Old 05-19-2014 , 02:51   Traceline help
Reply With Quote #1

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 )

Last edited by swapped; 05-19-2014 at 02:51.
swapped is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:00.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode