Jump to content

My code is not running pls help me im too new in Lua thx :)


Recommended Posts

function AirTC (player, commandName)
    if commandName == "kalkış" then
        local getPlayerName = exports["global"]:findplayerpartialnick(thePlayer)
        outputChatBox(..thePlayer.."Burası RIHTIM kule takeoff çağrınız kabul edilmiştir takeoff için 69. pist başına yönlenebilirsiniz")
    end
else if commandName == "taxi" then
    local getPlayerName = exports["global"]:findplayerpartialnick(thePlayer)
    outputChatBox(..thePlayer.."Burası RIHTIM kule taxi çağrınız kabul edilmiştir taxi başı yapabilirsiniz hold short", thePlayer)
end
else if commandName == "yaklaşım" then
    local getPlayerName = exports["global"]:findplayerpartialnick(thePlayer)
    outputChatBox(..thePlayer.."Burası RIHTIM kule son yaklaşımlar için istediğiniz vektörden yaklaşıma devam edebilirsiniz.", thePlayer)
end
else if commandName == "iniş"
    local getPlayerName = exports["global"]:findplayerpartialnick(thePlayer)
    outputChatBox(..thePlayer.."Burası RIHTIM kule iniş izniniz verilmiştir iniş takımlarınızı kontrol edin.", thePlayer)
end
else if commandName == "emergency" then
    local getPlayerName = exports["global"]:findplayerpartialnick(thePlayer)
    outputChatBox(..thePlayer.."EMERGENCY ÇAĞRINIZ ALINMIŞTIR BÜTÜN VEKTÖRLERDEN YAKLAŞIM YAPABİLİRSİNİZ YER BİRİMLERİNE HABER VERİLDİ İYİ ŞANSLAR", thePlayer)
end
addCommandHandler("kalkış", AirTC)
addCommandHandler("taxi", AirTC)
addCommandHandler("yaklaşım", AirTC)
addCommandHandler("iniş", AirTC)
addCommandHandler("emergency", AirTC)

Hello everyone we are running the virtual air fleet and we are trying the make a Air Trafic Control Tower we are Turkish virtual fleet you cannot understand the strings that's not important btw but when i add the script in server it's not working can you boys help me thx for everything

Link to comment
function AirTC (thePlayer, commandName)
    if commandName == "kalkış" then getPlayerName_ = exports["global"]:findplayerpartialnick(thePlayer)
        outputChatBox(getPlayerName_.."Burası RIHTIM kule takeoff çağrınız kabul edilmiştir takeoff için 69. pist başına yönlenebilirsiniz")
elseif commandName == "taxi" then
    outputChatBox(getPlayerName_.."Burası RIHTIM kule taxi çağrınız kabul edilmiştir taxi başı yapabilirsiniz hold short", thePlayer)
elseif commandName == "yaklaşım" then
    outputChatBox(getPlayerName_.."Burası RIHTIM kule son yaklaşımlar için istediğiniz vektörden yaklaşıma devam edebilirsiniz.", thePlayer)
elseif commandName == "iniş" then
    outputChatBox(getPlayerName_.."Burası RIHTIM kule iniş izniniz verilmiştir iniş takımlarınızı kontrol edin.", thePlayer)
elseif commandName == "emergency" then
    outputChatBox(getPlayerName_.."EMERGENCY ÇAĞRINIZ ALINMIŞTIR BÜTÜN VEKTÖRLERDEN YAKLAŞIM YAPABİLİRSİNİZ YER BİRİMLERİNE HABER VERİLDİ İYİ ŞANSLAR", thePlayer)
    end
end
addCommandHandler("kalkış", AirTC)
addCommandHandler("taxi", AirTC)
addCommandHandler("yaklaşım", AirTC)
addCommandHandler("iniş", AirTC)
addCommandHandler("emergency", AirTC)

 

  • Thanks 1
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...