NetStats_ConnectionStatus

warning

This function was added in SA-MP 0.3z and will not work in earlier versions!

Description

Gets the player's current connection status.

NameDescription
playeridThe ID of the player to get the connection status of.

Returns

The player's connection status, as an integer value.

Examples

public OnPlayerCommandText(playerid,cmdtext[])
{
if (!strcmp(cmdtext, "/connectionstatus"))
{
new szString[144];
format(szString, sizeof(szString), "Your current connection status: %i.", NetStats_ConnectionStatus(playerid));
SendClientMessage(playerid, -1, szString);
}
return 1;
}

Related Functions