giveplayerdamage NOP patch offset

Статус
В этой теме нельзя размещать новые ответы.

ultramishima

Новичок
Автор темы
7
0
Does anyone know the NOP patch offset?

i was trying this:

0B2E: 1@ = read_samp_memory 0x5BB0 size 2 // to read and store the original value of address.
0B2D: write samp_memory 0x5BB0 value C21000 size 2 // to NOP it. = ON.

but its outdated
 

itsLegend

Фонд борьбы за жуков 🐞
Администратор
2,696
1,469
Use hook:
CLEO:
{$INCLUDE SF}

0BE3: raknet setup_incoming_rpc_hook @in_rpc

0@ = false // skip

0BDE: pause_thread 0

:in_rpc
0BE5: raknet 1@ = get_hook_param PARAM_PACKETID
if 1@ == RPC_GIVETAKEDAMAGE
then
    0BE0: raknet hook_ret 0@
end
0BE0: raknet hook_ret true
 

ultramishima

Новичок
Автор темы
7
0
i tried already... didnt work:
115 is for givetakedamage, but did not work, it still sends givedamage data (tested on local server with code to print ongivedamage)

:HookGiveDMGON
0BE5: raknet 0@ = get_hook_param 1
0039: 0@ == 115
jf @HookGiveDMGOFF
0BE0: raknet hook_ret false

:HookGiveDMGOFF
0BE0: raknet hook_ret true
 

itsLegend

Фонд борьбы за жуков 🐞
Администратор
2,696
1,469
hook_ret true - send / recieve
hook_ret false - don't send / recieve.

Also, if you're send rpc - it's outcoming RPC; if you're recieve RPC - it's incoming RPC.
 

ultramishima

Новичок
Автор темы
7
0
its still not working ffs... i tried a lot of ways of disabling giveplayerdamage... is that asking too much to post a working code .cs that if it simply works i can pick the code and use it for my purpose?
 
Статус
В этой теме нельзя размещать новые ответы.