Jump to content

[SOLVED]help me with this code


MR.S3D

Recommended Posts

Try This

function startAzan() 
    local time = getRealTime() 
    local hours = time.hour 
    local minutes = time.minute 
    local seconds = time.second 
    if (hours == 5 and minutes == 13 and seconds == 0) then 
    playSound("azanfajr.mp3",false) 
    outputChatBox ( "Azan AlFajer") 
    elseif (hours == 12 and minutes == 08 and seconds == 0) then 
    playSound("azan.mp3",false) 
    outputChatBox ( "Azan AlDuhr") 
    elseif (hours == 3 and minutes == 20 and seconds == 0) then 
    playSound("azan.mp3",false) 
    outputChatBox ( "Azan Alasr") 
    elseif (hours == 5 and minutes == 43 and seconds == 0) then 
    playSound("azan.mp3",false) 
    outputChatBox ( "Azan AlMagreb") 
    elseif (hours == 7 and minutes == 13 and seconds == 0) then 
    playSound("azan.mp3",false) 
    end 
end 
addEventHandler( "onClientResourceStart", getRootElement(), startAzan) 
  
  
  

Link to comment

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...