Jump to content

[HELP]Real time Script


MrKAREEM

Recommended Posts

Posted (edited)
Hello guis I need help getting real time
I want to get the time for example 5:30 then play sound
and output chat u have a game or other and thank you in advance  and please help me 

 

 

Edited by MrKAREEM
Posted
15 minutes ago, NeXuS™ said:

Use getRealTime. For the sound, you can use playSound, chat is outputChatBox.

i get this code but it doesnt work please help :\ i want the time 5:30

 

function etkinlik (player)
local time = getRealTime ()
local hours = time.hour
local minutes = time.minute
        if hours > 5 and 30 > minute then
        sound = playSound("MrKAREEM.mp3")
        outputChatBox ( "This is the time for your game !",player, 255, 0, 0, true )

        end
    end

Posted
1 minute ago, NeXuS™ said:

Use [ code] tags please.


if hours == 5 and minute == 30 then

 

Thnx pro i forget put it , i check it now and it works ^_^

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...