11.07.2012, 17:50
pawn Код:
new str[350];
GetPlayerNetworkStats(0, str, 350);
new start = strfind(str, "Packetloss", false);
strmid(str, str, start + 12, strfind(str, "Messages", false, start) - 2);
new Float:packetloss = floatstr(str);
This should do it. Dont know what values packetloss will have, either 0-100 or 0.0-1.0 i guess.