Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add Portuguese translation for SendClientCheck #1112

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 71 additions & 0 deletions docs/translations/pt-BR/scripting/functions/SendClientCheck.md
Original file line number Diff line number Diff line change
@@ -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.