Jump to content

help


golanu21

Recommended Posts

addCommandHandler("gc", 
function(thePlayer) 
local result = mysql:query_fetch_assoc("SELECT jobid FROM characters WHERE id = " ..getElementData(thePlayer, "dbid") ) 
        if result then 
            jobid = result["jobid"]  
                if jobid == 'gc' then 
                    if FUNCTION WORKING then  
                    outputChatBox("Esti deja intr-o cursa", thePlayer, 255, 0, 0) -- i want to make that when the FUNCTION WORKING, is working... 
                    else 
                    initiateCleanerJob() 
                end 
        end 
    end 
end) 

i want to make command , and this command to work only when a function is not working..

Link to comment
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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