Raised This Month: $ Target: $400
 0% 

Question about register_touch()


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Ang52
Member
Join Date: Jan 2012
Old 05-05-2012 , 11:37   Re: Question about register_touch()
Reply With Quote #4

Quote:
Originally Posted by claudiuhks View Post
I don't recommend to use Engine

Try hooking it with Ham Sandwich

PHP Code:
RegisterHamHam_Touch"weapon_hegrenade""OnHegreadeTouch" );

public 
OnHegrenadeTouchiTouchediToucher )
{
  static 
MaxClients; if( !MaxClients MaxClients get_maxplayers( );

  if( 
iTouched MaxClients )
  {
    
// iTouched is player and iToucher is hegrenade
  
}

  else if( 
iToucher MaxClients )
  {
    
// iTouched is hegrenade and iToucher is player
  
}

thanks for show me a second way.
but why you're not recommend to use Engine for this.
Ang52 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 00:29.


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