View Single Post
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 10-19-2009 , 05:12   Re: [EXTENSION] SDK Hooks
#15

Quote:
Originally Posted by FoxMulder View Post
Thanks man, in your example please update:
public OnTakeDamage(...) -> public Action:OnTakeDamage(...)
Yeah I saw that, will fix it in a bit too. And yes, DukeHacks uses the same defines, but I didn't think it would be a problem as long as you don't both include sdkhooks.inc and dukehacks.inc in one script.
Quote:
Also can I hook enities other than clients like:
SDKHook(entity, SDKHook_OnTakeDamage, OnTakeDamage);
Yes, I know I kind of poorly named the entity index "victim", implying it only works for clients, but OnTakeDamage works for all entities.
Quote:
Originally Posted by Someone78 View Post
please add Weapon_CanUse
Is there anything Weapon_CanUse does that one of the other weapon hooks can't do already? You can already block people from equipping a weapon with Weapon_Equip, and block them from switching to it with Weapon_Switch.
Quote:
Originally Posted by CrimsonGT View Post
*Sticked the thread
Love you long time

Edit: SetTransmit should be fixed now
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.

Last edited by DJ Tsunami; 10-19-2009 at 06:06.
DJ Tsunami is offline