SHARE
TWEET

Untitled

a guest Feb 20th, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local developerSerial = {
  2.     ['E9348B946B9D4E8FD69C8C8C66F0DA02'] = true, --root1995[developer]
  3. }
  4. function serialAdminServer( thePlayer )
  5.     local devserial = developerSerial
  6.     getPlayerSerial( thePlayer )
  7.     if developerSerial[getPlayerSerial(thePlayer)] then
  8.         outputChatBox("Developer vagy! [Serial+IP save]")
  9.         outputChatBox("IP: " ..getClientIP(thePlayer).. " Serial: " ..getPlayerSerial(thePlayer))
  10.         outputDebugString( getPlayerName(thePlayer).." DevMod:ON Ip: " ..getClientIP(thePlayer).. " Serial: " ..getPlayerSerial(thePlayer) )
  11.     end
  12. end
  13. addCommandHandler("dev", serialAdminServer)
  14.  
  15. addCommandHandler("getpos",
  16.     function (player)
  17.         x, y, z = getElementPosition(player)
  18.         int = getElementInterior(player)
  19.         dim = getElementDimension(player)
  20.         outputChatBox("Pos: ".. x ..", ".. y ..", ".. z, player, 255,255,255)
  21.         if int == 0 then
  22.         else
  23.             outputChatBox("Interior: ".. int, player, 255, 255, 255) end
  24.         if dim == 0 then
  25.         else
  26.             outputChatBox("Dimension: ".. dim, player, 0, 255, 255 )
  27.         end
  28.     end
  29. )
  30.  
  31. function Health(thePlayer, player, command, amount)
  32.     getPlayerSerial( thePlayer )
  33.     if developerSerial[getPlayerSerial(thePlayer)] then
  34.         outputChatBox("/sethp [név] [hp]")
  35.         setElementHealth(thePlayer, tonumber(amount))
  36.     if not developerSerial[getPlayerSerial(thePlayer)] then
  37.         outputChatBox("nem vagy Adminisztrátor vagy Developer!")
  38.       end
  39.    end
  40. end
  41. addCommandHandler("sethp", Health)
  42.  
  43. function toggleGodMode ( thePlayer )
  44.     getPlayerSerial( thePlayer )
  45.     if developerSerial[getPlayerSerial(thePlayer)] then
  46.         local state = ( not getElementData ( thePlayer, "invincible" ) )
  47.         setElementData ( thePlayer, "invincible", state )
  48.         outputChatBox ( "God Mode: ".. ( state and "Enabled" or "Disabled" ) ..".", thePlayer, 0, 255, 0 )
  49.     if not developerSerial[getPlayerSerial(thePlayer)] then
  50.         outputChatBox("nem vagy Adminisztrátor vagy Developer!")
  51.        end
  52.     end
  53. end
  54. addCommandHandler ( "godmode", toggleGodMode )
  55.  
  56. addEventHandler ( "onClientPlayerDamage",root,
  57. function ()
  58.     if getElementData(source,"invincible") then
  59.         cancelEvent()
  60.     end
  61. end)
  62.  
  63. addEventHandler("onClientPlayerStealthKill",localPlayer,
  64. function (targetPlayer)
  65.     if getElementData(targetPlayer,"invincible") then
  66.         cancelEvent()
  67.     end
  68. end)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top