Pular para o conteúdo principal

NPC_IsPlayingPlayback

aviso

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

Descrição

Verifica se um NPC está reproduzindo uma gravação.

NomeDescrição
npcidO ID do NPC

Retornos

Retorna true se NPC estiver reproduzindo uma reprodução, caso contrário, false.

Exemplos

public OnPlayerCommandText(playerid, cmdtext[])
{
if (!strcmp(cmdtext, "/checkplayingplayback", true))
{
new npcid = PlayerNPC[playerid];
if (npcid == INVALID_NPC_ID)
return SendClientMessage(playerid, 0xFF0000FF, "You are not debugging a NPC.");

if (!NPC_IsValid(npcid))
return SendClientMessage(playerid, 0xFF0000FF, "Invalid NPC.");

new bool:isPlayingPlayback = NPC_IsPlayingPlayback(npcid);

SendClientMessage(playerid, 0x00FF00FF, "NPC %d is playing playback: %s", npcid, isPlayingPlayback ? "Yes" : "No");
return 1;
}
return 0;
}

Notas

  • Retorna true quando NPC está reproduzindo ativamente uma gravação

Funções Relacionadas

Callbacks Relacionadas