Raised This Month: $12 Target: $400
 3% 

[Q] What is the event name?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Giass
Member
Join Date: Aug 2011
Location: {Israel}
Old 05-26-2017 , 13:50   [Q] What is the event name?
Reply With Quote #1

Hi!
I got this code
What do i need to write if i want to use the TriggerH when the player shoot??

HTML Code:
#include <amxmodx>
#include <fakemeta_util>
#include <hamsandwich>
#include <engine>

new laserspr;
new const laser[ ] = "sprites/dot.spr";

public plugin_init()
{
	///   ????
}

public plugin_precache()
{	
	laserspr = precache_model( laser );
}

public TriggerH(client)
{
	static iTarget, iBody;
	get_user_aiming( client, iTarget, iBody );
	static iOrigin[ 3 ];
	get_user_origin( client, iOrigin, 3 );		
	message_begin( MSG_BROADCAST, SVC_TEMPENTITY );
	write_byte( TE_BEAMENTPOINT );
	write_short( client | 0x1000 );
	write_coord( iOrigin[ 0 ] );
	write_coord( iOrigin[ 1 ] );
	write_coord( iOrigin[ 2 ] );
	write_short( laserspr );
	write_byte( 1 );
	write_byte( 10 );
	write_byte( 1 );
	write_byte( 5 );
	write_byte( 0 );
	write_byte( random_num(0,255) );
	write_byte( random_num(0,255) );
	write_byte( random_num(0,255) );
	write_byte( 150 );
	write_byte( 25 );
	message_end( );
}
__________________
All you need is carb

Last edited by Giass; 05-26-2017 at 13:58.
Giass 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 14:27.


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