View Single Post
K.K.Lv
Veteran Member
Join Date: Aug 2008
Location: GameFolder
Old 08-22-2012 , 23:45   Re: [IDA/DHooks]How to get vtable offsets
Reply With Quote #8

how to get the offset of the object ?
code from your tut about DHooks:
Code:
public MRESReturn:OnTakeDamage(this, Handle:hReturn, Handle:hParams) {     PrintToServer("DHooksHacks = Victim %i, Attacker %i, Inflictor %i, Damage %f", this, DHookGetParamObjectPtrVar(hParams, 1, 40, ObjectValueType_Ehandle), DHookGetParamObjectPtrVar(hParams, 1, 36, ObjectValueType_Ehandle), DHookGetParamObjectPtrVar(hParams, 1, 48, ObjectValueType_Float));         if(this <= MaxClients && this > 0 && !IsFakeClient(this))     {         DHookSetParamObjectPtrVar(hParams, 1, 48, ObjectValueType_Float, 0.0);         PrintToChat(this, "Pimping your hp");     } }
__________________
QQ:116268742
K.K.Lv is offline
Send a message via MSN to K.K.Lv