Raised This Month: $ Target: $400
 0% 

How to hook tempentities proberly?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
tolsty
Senior Member
Join Date: Feb 2008
Location: Latvia
Old 10-04-2009 , 09:19   How to hook tempentities proberly?
Reply With Quote #1

i want to block these messages, but i had no luck
TE_GUNSHOT 2
TE_SPARKS 9
TE_GUNSHOTDECAL 109
TE_ARMOR_RICOCHET 111
TE_MULTIGUNSHOT 126

PHP Code:
new const BULLETMSG = (TE_GUNSHOT TE_SPARKS TE_GUNSHOTDECAL TE_ARMOR_RICOCHET TE_MULTIGUNSHOT)
public 
plugin_init() {
 
register_messageSVC_TEMPENTITY ,"hidebullet"
}

public 
hidebullet msg_idmsg_typemsg_entity)
{

   if ( 
get_msg_arg_int ) == BULLETMSG )
   {
      
// Block
   

Please show me a full example how to Hook those messages and block them .

P.S. Admins, please correct the typo in the thread title
__________________
[IMG]http://img2.**************/img2/7173/signfp.jpg[/IMG]

Last edited by tolsty; 10-04-2009 at 09:25.
tolsty 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 22:40.


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