Szerző Téma: Mire jó ez a script?!  (Megtekintve 626 alkalommal)

Mire jó ez a script?!
« Dátum: 2016. Február 26. - 16:04:16 »
0 Show voters
Mire használható ez a kis script?
 
function checkData(dataName, oldValue)
if getElementType(source) == \"player\" then
  if dataName == \"bankmoney\" then
   local newValue = getElementData(source, \"bankmoney\")
   if oldValue == \"nil\" then
    local oldValue = \"~New Value~\"
   end
   if client == \"nil\" then
    local client = \"server\"
   end
   if isElement(client) then
    outputDebugString(\"Old Bankmoney for \"..getPlayerName(source)..\" \"..tostring(oldValue)..\" New value \"..tostring(newValue)..\" changed by: \"..tostring(getResourceName(sourceResource))..\" User changed by: \"..tostring(getPlayerName(client)))
   else
    outputDebugString(\"Old Bankmoney for \"..getPlayerName(source)..\" \"..tostring(oldValue)..\" New value \"..tostring(newValue)..\" changed by: \"..tostring(getResourceName(sourceResource))..\" User changed by: \"..tostring(client))
   end
  end
end
end
addEventHandler(\"onElementDataChange\", getRootElement(), checkData)

Mire jó ez a script?!
« Válasz #1 Dátum: 2016. Február 27. - 18:01:41 »
0 Show voters
Lekérdez valami bankmoney cuccot, majd debugstringbe kiírja(/debugscript 3-ban láthatod)

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal