Raised This Month: $ Target: $400
 0% 

register touch


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Dr.G
Senior Member
Join Date: Nov 2008
Old 02-04-2009 , 10:37   Re: register touch
Reply With Quote #6

PHP Code:
register_forward(FM_Touch,"hook_touch"
PHP Code:
public hook_touch(ptr,id)
{
 if(
get_pcvar_num(p_enable) && is_user_connected(id) && is_user_alive(id))
 {
  static 
szClassName[32]
  
pev(ptrpev_classnameszClassNamesizeof szClassName 1)
  
  if(!
equal(szClassName"YOUR_CLASSNAME"))
   return 
FMRES_IGNORED
  
// do something, explode function ?????
  
 
}
 return 
FMRES_IGNORED

__________________
Dr.G 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 01:38.


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