From 79796588a74c047d4a833cf05241425dcd31bd05 Mon Sep 17 00:00:00 2001 From: itsneufox Date: Sat, 15 Feb 2025 11:13:41 +0000 Subject: [PATCH] add Portuguese translation for SendClientCheck --- .../scripting/functions/SendClientCheck.md | 71 +++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 docs/translations/pt-BR/scripting/functions/SendClientCheck.md diff --git a/docs/translations/pt-BR/scripting/functions/SendClientCheck.md b/docs/translations/pt-BR/scripting/functions/SendClientCheck.md new file mode 100644 index 0000000000..2bd0d61663 --- /dev/null +++ b/docs/translations/pt-BR/scripting/functions/SendClientCheck.md @@ -0,0 +1,71 @@ +--- +title: SendClientCheck +description: Executa uma verificação de memória no cliente. +tags: [] +--- + +## Descrição + +Executa uma verificação de memória no cliente. + + +| Nome | Descrição | +| --------------- | -------------------------------------- | +| playerid | O ID do jogador a ser verificado. | +| type | O tipo de verificação a ser executada. [Veja aqui](../resources/opcodes)| +| memAddr | O endereço base para verificar. | +| memOffset | O deslocamento do endereço base. | +| byteCount | O número de bytes a serem verificados. | + + +## Retornos + +1: A função foi executada com sucesso. + +0: A função falhou ao executar. O jogador não está conectado. + +## Exemplos + +```c +public OnPlayerConnect(playerid) +{ + SendClientCheck(playerid, 0x48, 0, 0, 2); + return 1; +} + +public OnClientCheckResponse(playerid, actionid, memaddr, retndata) +{ + if (actionid == 0x48) // or 72 + { + print("O jogador está se conectando usando o cliente do PC."); + } + return 1; +} +``` + +## Nota + +:::tip + +- Existem 6 tipos de requisições que o cliente processa (2, 5, 69, 70, 71, 72) +- O tipo 72 não usa nenhum dos outros argumentos [arg | offset | size]. +- O arg retorna o uptime do computador. + +::: + +:::warning + +**SA:MP Server**: Esta função só funciona quando está em um filterscript. + +**Open Multiplayer Server**: Esta função funciona normalmente dentro de um gamemode/filterscript. + +::: + +## Funções Relacionadas + +- [IsPlayerUsingOfficialClient](IsPlayerUsingOfficialClient): Verifique se o jogador está usando o cliente oficial SA-MP. +- [IsPlayerUsingOmp](IsPlayerUsingOmp): Verifique se o jogador está usando o launcher open.mp. + +## Callbacks Relacionadas + +- [OnClientCheckResponse](../callbacks/OnClientCheckResponse): chamado quando uma solicitação SendClientCheck é concluída.