18.07.2016, 16:55
Is it possible to have something like
? I don't really have idea how they are structured.
This:
Should return something like (as much details as possible, also with the meaning of all values):
last RPCs should be at the beggining of the array.
If this would use too many resources, there should be two functions like
which should be 0 by default.
Basically, what I want is a server-sided RakLogger+ : https://github.com/THE-FYP/rakloggerplus (you can see more in the source).
--------
How could this help anyone ? More internal debugging (could see why players timeout, or why they use a big bandwidth, etc.) ! Maybe you saw this topic: https://sampforum.blast.hk/showthread.php?tid=591057 . If not, read it a bit and you'll understand. I want to log the last 10-20 received packets and RPCs at OnPlayerDisconnect if they timeout. I guess that it may be an exploit and I wonder if they receive any custom RPCs/Packets.
EDIT: Maybe this could help you more: https://sampforum.blast.hk/showthread.php?tid=570188 .
pawn Код:
native GetLastReceived/SentRPC( playerid, array[ ][ ], maxrpc = sizeof array, maxlength = sizeof array[ ] );
native GetLastReceived/SentPackets( playerid, array[ ][ ], maxpackets = sizeof array, maxlength = sizeof array[ ] )
This:
pawn Код:
new array[ 1 ][ 128 ];
GetLastReceivedRPC( playerid, array );
Quote:
array[ 0 ] - "RPC_17(RPC_ScrSetPlayerWorldBounds): -50.0, -50.0, 50.0, 50.0" |
If this would use too many resources, there should be two functions like
pawn Код:
native EnableRPCLogging( bool:toggle );
native EnablePacketsLogging( bool:toggle );
Basically, what I want is a server-sided RakLogger+ : https://github.com/THE-FYP/rakloggerplus (you can see more in the source).
--------
How could this help anyone ? More internal debugging (could see why players timeout, or why they use a big bandwidth, etc.) ! Maybe you saw this topic: https://sampforum.blast.hk/showthread.php?tid=591057 . If not, read it a bit and you'll understand. I want to log the last 10-20 received packets and RPCs at OnPlayerDisconnect if they timeout. I guess that it may be an exploit and I wonder if they receive any custom RPCs/Packets.
EDIT: Maybe this could help you more: https://sampforum.blast.hk/showthread.php?tid=570188 .