Guest User

Untitled

a guest
Dec 7th, 2019
92
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local gm_state = false
  2.  
  3. function main()
  4. repeat wait(0) until isSampAvailable()
  5. sampRegisterChatCommand("eda", function()
  6. lua_thread.create(function()
  7. sampSendClickTextdraw(numbereda)
  8. wait(155)
  9. taskPlayAnim(PLAYER_PED, "WF_FWD", "WAYFARER", 1, false, false, true, false, 0)
  10. end)
  11. end)
  12.  
  13. sampRegisterChatCommand("hp", function()
  14. sampSendClickTextdraw(numberhp)
  15. end)
  16.  
  17. sampRegisterChatCommand("gm", function()
  18. gm_state = not gm_state
  19. if gm_state then
  20. printStringNow("ON", 1500)
  21. else
  22. printStringNow("OFF", 1500)
  23. end
  24. end)
  25. ip, port = sampGetCurrentServerAddress()
  26. name = sampGetCurrentServerName()
  27. server = ip..':'..port
  28.  
  29. if server == '185.169.134.3:7777' then numberhp = 642 end -- Pheonix
  30. if server == '185.169.134.4:7777' then numberhp = 642 end -- Tucson
  31. if server == '185.169.134.43:7777' then numberhp = 642 end -- Scottdale
  32. if server == '185.169.134.44:7777' then numberhp = 642 end -- Chandler
  33. if server == '185.169.134.45:7777' then numberhp = 642 end -- Brainburg
  34. if server == '185.169.134.5:7777' then numberhp = 655 end -- Saintrose
  35. if server == '185.169.134.59:7777' then numberhp = 642 end -- Mesa
  36. if server == '185.169.134.61:7777' then numberhp = 653 end -- RedRock
  37. if server == '185.169.134.107:7777' then numberhp = 642 end -- Yuma
  38. if server == '185.169.134.109:7777' then numberhp = 642 end -- Surprise
  39. ------------------------------------------------------------------------
  40. if server == '185.169.134.3:7777' then numbereda = 646 end -- Pheonix
  41. if server == '185.169.134.4:7777' then numbereda = 646 end -- Tucson
  42. if server == '185.169.134.43:7777' then numbereda = 646 end -- Scottdale
  43. if server == '185.169.134.44:7777' then numbereda = 646 end -- Chandler
  44. if server == '185.169.134.45:7777' then numbereda = 646 end -- Brainburg
  45. if server == '185.169.134.5:7777' then numbereda = 659 end -- Saintrose
  46. if server == '185.169.134.59:7777' then numbereda = 646 end -- Mesa
  47. if server == '185.169.134.61:7777' then numbereda = 657 end -- RedRock
  48. if server == '185.169.134.107:7777' then numbereda = 646 end -- Yuma
  49. if server == '185.169.134.109:7777' then numbereda = 646 end -- Surprise
  50.  
  51.  
  52. while true do wait(0)
  53. if gm_state then
  54. local _, myid = sampGetPlayerIdByCharHandle(PLAYER_PED)
  55. if sampGetPlayerHealth(myid) < 100 then
  56. sampSendClickTextdraw(numberhp)
  57. wait(10)
  58. end
  59. end
  60. end
  61. end
  62.  
  63. function onReceiveRpc(id, bitStream)
  64. if id == 88 then
  65. local actionId = raknetBitStreamReadInt8(bitStream)
  66. if actionId == 23 then
  67. return false
  68. end
  69. end
  70. end
RAW Paste Data