Jump to content

Search the Community

Showing results for tags 'getrealtime'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Multi Theft Auto: San Andreas 1.x
    • Support for MTA:SA 1.x
    • User Guides
    • Open Source Contributors
    • Suggestions
    • Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • MTA Community
    • Scripting
    • Maps
    • Resources
    • Other Creations & GTA modding
    • Competitive gameplay
    • Servers
  • Other
    • General
    • Multi Theft Auto 0.5r2
    • Third party GTA mods
  • Archive
    • Archived Items
    • Trash

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Gang


Location


Occupation


Interests

Found 3 results

  1. function verificarPag(player) local timer = getRealTime() local accName = getAccountName ( getPlayerAccount ( player )) if isObjectInACLGroup ("user."..accName, aclGetGroup("Mr")) then if timer.hour == 7 then --exports.Mr_Dxmessages:outputDx(player, "Seu pagamento está liberado , até as 08 horas! receba no /receber", "warning") else exports.Mr_Dxmessages:outputDx(player, "Você ainda não pode receber, somente as 08 horas!", "error") end end end addCommandHandler("receber", verificarPag) local money = createPickup (1542, -1684, 14, 3, 1274, 2000 ) function receber (player) local timer = getRealTime() local accName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Mr") ) then if timer.hour == 7 then exports.Mr_Dxmessages:outputDx(player, "Você recebeu seu pagamento $500 ", "success") givePlayerMoney(player, 500) end end end --addCommandHandler("receber", receber) addEventHandler ( "onPickupUse", money, receber )
  2. i'v a problem with getRealTime function i'm trying to use it in server side to get the time in hours but when i output it in chatbox it's give me a wrong time .. setTimer( function() local time = getRealTime() local hour = time.hour for _,player in ipairs(getElementsByType("player")) do if getPlayerSerial(player) == "AE29580EE667085A8A8DC0CEE2E53BE4" then outputChatBox(tostring(time.hour), player) end end if hour >= 17 and hour < 20 then outputChatBox("true", root) else outputChatBox("false", root) end end, 1000, 0)
  3. someone could provide me a function that checks how long a player is online'm working on a level of resource system and wanted to give xp to be a Serta contia time online n could not think of a way to do this using SetTimer. help me
×
×
  • Create New...