SerweryWłasny serwerDla twórcówForumFAQDokumentacjaBezpieczeństwo
Pobierz launcher
  1. Dokumentacja
  2. Zdarzenia serwera
  3. onConsole

Zdarzenie

onConsole

SerwerCzat i konsolaIdentyczne z MTA:SA

Ktoś wpisał tekst w konsoli: gracz w konsoli gry (F8) albo administrator w konsoli serwera.

Obsługa

addEventHandler("onConsole", root, function(theMessage) ... end)

Parametry

theMessagestring
Wpisany tekst.

Źródło

source to gracz albo root (konsola serwera).

Przykład

addEventHandler("onConsole", root, function(text)
    outputServerLog("konsola: " .. text)
end)

Zobacz też