---
title: "IsPlayerSpawned | open.mp"
description: "Verifica se um jogador foi gerado."
canonical: https://omp.itsneufox.com/pt-BR/docs/scripting/functions/IsPlayerSpawned
language: pt-BR
---

# IsPlayerSpawned

aviso

Esta função foi adicionada no omp v1.1.0.2612 e não funcionará em versões anteriores!

## Descrição

Verifica se um jogador foi gerado.

| Nome | Descrição |
| --- | --- |
| playerid | O ID do jogador a ser verificado. |

## Retornos

**true** - O jogador é gerado.

**false** - O jogador não é gerado.

## Exemplos

```c
public OnPlayerText(playerid, text[])
{
    if (!IsPlayerSpawned(playerid))
    {
        SendClientMessage(playerid, COLOR_RED, "ERROR: You must be spawned to send messages.");
        return 0;
    }
    return 1;
}
```

## Funções Relacionadas

-   [SpawnPlayer](https://omp.itsneufox.com/pt-BR/docs/scripting/functions/SpawnPlayer): (Re)gera um jogador.
