{$CLEO .cs}
0000: NOP
repeat
wait 0
until SAMP.Available()
0BE4: raknet setup_incoming_packet_hook @hook_bullet
while true
wait 0
if 0AB0: 113
then
while 0AB0: 113
wait 0
end
0@ = true
repeat
wait 0
until 0AB0: 114
while 0AB0: 114
wait 0
end
0@ = false
end
end
:hook_bullet
if 0@ == true
then
0BE5: raknet 7@ = get_hook_param 1
if
7@ == 206
then
0BE5: raknet 8@ = get_hook_param 0
2@ = BitStream.GetDataPtr(8@)
0C0C: 6@ = struct 2@ offset 1 size 2 // Origin ID
0C0C: 9@ = struct 2@ offset 3 size 1 // Type
0C0C: 10@ = struct 2@ offset 4 size 2 // Target ID
0C0C: 11@ = struct 2@ offset 6 size 4 // Origin X
0C0C: 12@ = struct 2@ offset 10 size 4 // Origin Y
0C0C: 13@ = struct 2@ offset 14 size 4 // Origin Z
0C0C: 14@ = struct 2@ offset 18 size 4 // Target X
0C0C: 15@ = struct 2@ offset 22 size 4 // Target Y
0C0C: 16@ = struct 2@ offset 26 size 4 // Target Z
0C0C: 17@ = struct 2@ offset 30 size 4 // Center X
0C0C: 18@ = struct 2@ offset 34 size 4 // Center Y
0C0C: 19@ = struct 2@ offset 38 size 4 // Center Z
0C0C: 20@ = struct 2@ offset 42 size 1 // Weapon ID
21@ = SAMP.GetSAMPPlayerIDByActorHandle($PLAYER_ACTOR)
if
003B: 10@ == 21@
then
0BE0: raknet hook_ret 0
end
end
end
0BE0: raknet hook_ret 1