Quote:
Originally Posted by claudiuhks
I don't recommend to use Engine
Try hooking it with Ham Sandwich
PHP Code:
RegisterHam( Ham_Touch, "weapon_hegrenade", "OnHegreadeTouch" );
public OnHegrenadeTouch( iTouched, iToucher )
{
static MaxClients; if( !MaxClients ) MaxClients = get_maxplayers( );
if( 0 < iTouched < MaxClients + 1 )
{
// iTouched is player and iToucher is hegrenade
}
else if( 0 < iToucher < MaxClients + 1 )
{
// 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.