Перейти к основному содержимому

OnClientCheckResponse

Description​

This callback is called when a SendClientCheck request completes.

NameDescription
playeridThe ID of the player checked.
actionidThe type of check performed.
memaddrThe address requested.
retndataThe result of the check.

Returns​

It is always called first in filterscripts.

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​

warning

SA:MP Server: This callback is only called when it is in a filterscript.

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

The following function might be useful, as they're related to this callback in one way or another.

  • opcodes: Action opcodes IDs and their purpose.