Help Spectate

Parazitas

Well-Known Member
Joined
Jan 2, 2017
Messages
676
Likes
2
Points
18
Location
Lithuania
Website
ugbase.eu
#3
Take This  , i create RPC Logger
[shcode=cpp]
{$CLEO}
0000:
 
REPEAT
   WAIT 0
UNTIL 0AFA:  SAMP_IS_READY

0BE3: raknet setup_incoming_rpc_hook @in_rpc

while true
wait 0
end

:in_rpc                  
0BE5: raknet [email protected] = get_hook_param 1
0BE5: raknet [email protected] = get_hook_param 0
0BF8: raknet [email protected] = get_rpc_name [email protected]
0BF8: raknet [email protected] = get_rpc_name [email protected]
chatmsg "RPC ID: {0000ff} %d RPC Name:{ff0000} %s RPC ID: {0000ff} %d Name:{ff0000}  %s" 0xffabc3de [email protected] [email protected] [email protected] [email protected]

/*
if or
[email protected] == rpc id
[email protected] == rpc id
then
      chatmsg "Now i speactating someone" 0xff0000
end
*/
0BE0: raknet hook_ret true
[/shcode]
 
OP
OP
Edvincik

Edvincik

Well-Known Member
Joined
Mar 15, 2016
Messages
332
Likes
0
Points
16
#4
Parazitas said:
Take This  , i create RPC Logger
[shcode=cpp]
{$CLEO}
0000:
 
REPEAT
   WAIT 0
UNTIL 0AFA:  SAMP_IS_READY

0BE3: raknet setup_incoming_rpc_hook @in_rpc

while true
wait 0
end

:in_rpc                  
0BE5: raknet [email protected] = get_hook_param 1
0BE5: raknet [email protected] = get_hook_param 0
0BF8: raknet [email protected] = get_rpc_name [email protected]
0BF8: raknet [email protected] = get_rpc_name [email protected]
chatmsg "RPC ID: {0000ff} %d RPC Name:{ff0000} %s RPC ID: {0000ff} %d Name:{ff0000}  %s" 0xffabc3de [email protected] [email protected] [email protected] [email protected]

/*
if or
[email protected] == rpc id
[email protected] == rpc id
then
      chatmsg "Now i speactating someone" 0xff0000
end
*/
0BE0: raknet hook_ret true
[/shcode]
Thank you my friend
 
Top