Skip to main content

NetStats_MessagesRecvPerSecond

คำอธิบาย

Gets the number of messages the player has received in the last second.

NameDescription
playeridThe ID of the player to get the data from.

ส่งคืน

the number of messages the player has received in the last second.

ตัวอย่าง

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;
}

ฟังก์ชั่นที่เกี่ยวข้องกัน