NetStats MessagesRecvPerSecond

NetStats_MessagesRecvPerSecond

Description:
Function NetStats_MessagesRecvPerSecond gets the number of messages the player has received in the last second.
Function NetStats_MessagesRecvPerSecond was added in 0.3z and will not work in earlier versions!


Parameters:
(playerid)
int playerid The ID of the player to get the data from.


Return Values:
The number of messages the player has received in the last second.


Examples:
public OnPlayerCommandText(playerid,cmdtext[])
{    
    if(!strcmp(cmdtext, "/msgpersec"))
    {
        new szString[144];
        format(szString, sizeof(szString), "You have received %i network messages in the last second.", NetStats_MessagesRecvPerSecond(playerid));
        SendClientMessage(playerid, -1, szString);
    }
    return 1;
}


Related Functions
The following functions may be useful, as they are related to this function in one way or another.