Pular para o conteúdo principal

SendChat

aviso

Esta função está obsoleta. Consulte SendPlayerMessageToAll.

Descrição

Isso enviará um texto ao jogador pelo bot, assim como usar SendPlayerMessageToAll, mas esta função deve ser usada dentro dos scripts NPC.

NomeDescrição
msg[]O texto a ser enviado pelo NPC.

Exemplos

public OnPlayerDeath(playerid)
{
new string[80], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "Oh no %s! I didn't want you to die that way!", name);
SendChat(string);
return 1;
}

Funções Relacionadas