Raised This Month: $ Target: $400
 0% 

Questions about scripting and HL engine


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
OlikA
Junior Member
Join Date: Aug 2009
Location: Caldeum
Old 08-18-2009 , 17:00   Re: Questions about scripting and HL engine
Reply With Quote #10

Quote:
Originally Posted by ot_207 View Post
#4
A. Yes there is, you can use 2 methods. It really depends on what you want to do.
One is to use the Hamsandwich module, and use or the Ham_TraceAttack or Ham_TakeDamage forward.
Or you can use Damage event.
PHP Code:
register_event("Damage","Event_Damage","b"
And get the details of it.
For the damage event more can be found here -> http://wiki.amxmodx.org/Half-Life_1_Game_Events
For the Hamsandwich module you should check ham_const.inc

Question B. Yes, there is a function although I would not recommend doing it on important messages, SVC_TEMPENTITY should be good but not all of them.
register_message ( iMsgId, szFunction[] )
For Question A: I want to do things BEFORE someone is about to shoot a bullet or slash the knife etc. And I want to "alter" or at least stop functions to be runned (I'm bad at english). For example (this isn't I want to do) kick a player if he wants to shoot a bullet and spawn a chicken for it's last origin. This should be my favourite plugin haha.

B: Yes, I think this is I wanted.

Overall: [+karma]
OlikA 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 15:06.


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