Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local developerSerial = {
- ['E9348B946B9D4E8FD69C8C8C66F0DA02'] = true, --root1995[developer]
- }
- function serialAdminServer( thePlayer )
- local devserial = developerSerial
- getPlayerSerial( thePlayer )
- if developerSerial[getPlayerSerial(thePlayer)] then
- outputChatBox("Developer vagy! [Serial+IP save]")
- outputChatBox("IP: " ..getClientIP(thePlayer).. " Serial: " ..getPlayerSerial(thePlayer))
- outputDebugString( getPlayerName(thePlayer).." DevMod:ON Ip: " ..getClientIP(thePlayer).. " Serial: " ..getPlayerSerial(thePlayer) )
- end
- end
- addCommandHandler("dev", serialAdminServer)
- addCommandHandler("getpos",
- function (player)
- x, y, z = getElementPosition(player)
- int = getElementInterior(player)
- dim = getElementDimension(player)
- outputChatBox("Pos: ".. x ..", ".. y ..", ".. z, player, 255,255,255)
- if int == 0 then
- else
- outputChatBox("Interior: ".. int, player, 255, 255, 255) end
- if dim == 0 then
- else
- outputChatBox("Dimension: ".. dim, player, 0, 255, 255 )
- end
- end
- )
- function Health(thePlayer, player, command, amount)
- getPlayerSerial( thePlayer )
- if developerSerial[getPlayerSerial(thePlayer)] then
- outputChatBox("/sethp [név] [hp]")
- setElementHealth(thePlayer, tonumber(amount))
- if not developerSerial[getPlayerSerial(thePlayer)] then
- outputChatBox("nem vagy Adminisztrátor vagy Developer!")
- end
- end
- end
- addCommandHandler("sethp", Health)
- function toggleGodMode ( thePlayer )
- getPlayerSerial( thePlayer )
- if developerSerial[getPlayerSerial(thePlayer)] then
- local state = ( not getElementData ( thePlayer, "invincible" ) )
- setElementData ( thePlayer, "invincible", state )
- outputChatBox ( "God Mode: ".. ( state and "Enabled" or "Disabled" ) ..".", thePlayer, 0, 255, 0 )
- if not developerSerial[getPlayerSerial(thePlayer)] then
- outputChatBox("nem vagy Adminisztrátor vagy Developer!")
- end
- end
- end
- addCommandHandler ( "godmode", toggleGodMode )
- addEventHandler ( "onClientPlayerDamage",root,
- function ()
- if getElementData(source,"invincible") then
- cancelEvent()
- end
- end)
- addEventHandler("onClientPlayerStealthKill",localPlayer,
- function (targetPlayer)
- if getElementData(targetPlayer,"invincible") then
- cancelEvent()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement