Raised This Month: $ Target: $400
 0% 

Questions about scripting and HL engine


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 08-18-2009 , 16:38   Re: Questions about scripting and HL engine
Reply With Quote #5

#2 pev_button works this way. To get it.

PHP Code:
new button pev(idpev_button
To set it.
PHP Code:
new button IN_ATTACK IN_BACK IN_ALT
set_pev
(idpev_buttonbutton
#3 Well there isn't a full list but you can do 2 things with this. You can check the header [.inc] files in the folder: "amxmodx/scripting/include/"
You can check this out, hasn't all of them but most could come in handy -> http://www.amxmodx.org/funcwiki.php
For the being spectated you should check out that plugin to understand the method.

#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

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[] )
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.

Last edited by ot_207; 08-18-2009 at 16:47.
ot_207 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