Przejdź do głównej zawartości

SendClientCheck

Description

Perform a memory check on the client.

NameDescription
playeridThe ID of the player to check.
typeThe type of check to perform. See here
memAddrThe base address to check.
memOffsetThe offset from the base address.
byteCountThe number of bytes to check.

Returns

1: The function was executed successfully.

0: The function failed to execute. The player is not connected.

Examples

public OnPlayerConnect(playerid)
{
SendClientCheck(playerid, 0x48, 0, 0, 2);
return 1;
}

public OnClientCheckResponse(playerid, actionid, memaddr, retndata)
{
if (actionid == 0x48) // or 72
{
print("The player is connecting using the PC client.");
}
return 1;
}

Notes

wskazówka
  • There are 6 types of requests that the client processes (2, 5, 69, 70, 71, 72)
  • Type 72 doesn't use any of the other arguments [arg | offset | size].
  • The arg returns the uptime of the computer.
warning

SA:MP Server: This function only works when it is in a filterscript.

Open Multiplayer Server: This functions normally inside a gamemode / filterscript.