Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 26/03/23 in all areas

  1. 1 point
  2. Use onClientKey e onPlayerCommand. Com o onClientKey você pode bloquear as teclas que quiser, assim deixando somente o f8 para digitar os seus comandos, assim quando ele apertar qualquer outra tecla que não for o f8 você pode retornar uma mensagem e assim vai. O onPlayerCommand você pode restringir quais comandos ele pode usar quando caido.
    1 point
  3. Mai usor e fara _ la numele functiilor function FindValueInTable function FindValuePosInTable
    1 point
  4. addEventHandler("onPlayerLogin", root, function(_, account) setAccountData(account, "lastconnection", getRealTime().timestamp) end ) addCommandHandler("login", function(player, _, accountName) if accountName then local account = getAccount(accountName) if account then local lastconnection = getAccountData(account, "lastconnection") if lastconnection then outputChatBox("Last Connection "..formatDate(lastconnection), player) end end end end ) function formatDate ( timestamp ) if ( tonumber ( timestamp ) ) then local time = getRealTime ( timestamp ) return string.format ( "%02d.%02d.%02d", time.monthday, time.month + 1, time.year + 1900, time.hour, time.minute ) end end you can guide yourself from this example
    1 point
×
×
  • Create New...