CLEO Help [Help]Bullet Data

CLEO related
Status
Not open for further replies.

KillerZ

Active member
Joined
Apr 6, 2014
Messages
73
Reaction score
0
Is it possible to disable incoming bullet data from certain a player? If so, how can I go about doing it.

Code:
:in_pckt
if
    0@ == 1
then
    0BE5: raknet 10@ = get_hook_param PARAM_PACKETID       
    if 
        10@ == 206 //Bullet data
    then
        0BE0: raknet hook_ret false 
    end
    0BE0: raknet hook_ret true
end
0BE0: raknet hook_ret true
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
272
[shcode=cpp]
:in_pckt
0BE5: raknet 0@ = get_hook_param PARAM_BITSTREAM
0BE5: raknet 1@ = get_hook_param PARAM_PACKETID
if 1@ == 206 //bullet packet id
then
0BEB: raknet bs 0@ ignoreBits 8
0BE7: raknet 2@ = bsRead 0@ type BS_TYPE_SHORT
0AF8: "bullet from player %d" -1 2@
//if 2@ == BAD_ID
//then 0BE0: raknet hook_ret false
//end
end
0BE0: raknet hook_ret true
[/shcode]
 
Status
Not open for further replies.
Top