0 Üye ve 1 Ziyaretçi konuyu incelemekte.
local time = getRealTime()local hours = string.format("%02.f",time.hour)local minutes = string.format("%02.f",time.minute)function susturuldu(player)local account = getPlayerAccount( player )local playerName = getPlayerName( player ) setAccountData(account, "muteTarihi", hours .. ":" .. minutes) accdata = getAccountData (account, "muteTarihi" )endaddEventHandler("onPlayerMute", root, susturuldu)
Kod: lualocal time = getRealTime()local hours = string.format("%02.f",time.hour)local minutes = string.format("%02.f",time.minute)function susturuldu(player)local account = getPlayerAccount( player )local playerName = getPlayerName( player ) setAccountData(account, "muteTarihi", hours .. ":" .. minutes) accdata = getAccountData (account, "muteTarihi" )endaddEventHandler("onPlayerMute", root, susturuldu)Umarım işini görür denemedim.
local time = getRealTime()local monthday = string.format("%02.f",time.monthday)local month = string.format("%02.f",time.month)local year = string.format(time.year)function susturuldu(player)local account = getPlayerAccount( player )local playerName = getPlayerName( player ) setAccountData(account, "muteTarihi", monthday .. "/" .. month .. "/" .. year ) accdata = getAccountData (account, "muteTarihi" )endaddEventHandler("onPlayerMute", root, susturuldu)
Kod: lualocal time = getRealTime()local monthday = string.format("%02.f",time.monthday)local month = string.format("%02.f",time.month)local year = string.format(time.year)function susturuldu(player)local account = getPlayerAccount( player )local playerName = getPlayerName( player ) setAccountData(account, "muteTarihi", monthday .. "/" .. month .. "/" .. year ) accdata = getAccountData (account, "muteTarihi" )endaddEventHandler("onPlayerMute", root, susturuldu)Bunu da denemedim olmazsa dönersen sevinirim.
local time = getRealTime() local year = time.year + 1900 local month = time.month + 1 local monthday = time.monthdayoutputDebugString(monthday .. "/" .. month .. "/" .. year)function susturuldu(player)local account = getPlayerAccount( player ) setAccountData(account, "muteTarihi", monthday .. "/" .. month .. "/" .. year ) accdata = getAccountData (account, "muteTarihi" )endaddEventHandler("onPlayerMute", root, susturuldu)