Jump to content

MTA DayZ Admin Panel


Fist

Recommended Posts

Handy tool for DayZ servers, very easy to use and neat
looking DayZ Admin Panel. It's completly open source
feel free to edit it to your likings but please do not
remove original author (me) also credit goes to Superman
addon creator Ryden, without him this handy tool would
not be so cool. :)

Default open bind is O
Once you go in Duty Mod you are invincible and you can fly.

==-- To do
Inventory inspector
SuperAdmin features
Ban List (also unbaning)
Report system
Spectate (maybe?)

==-- Features
Duty Mode, Kick, Ban, Mute, Freeze, Warp,
Warp Player To, Set Stats, Change Weather, Kill Player,
Spawn Items, Spawn Vehicles, Send Global Message,
Fix Car, Destroy Car, Blow Car, See Stats about player.

If you find any bug report here or pm me, i'll fix it as soon as possible.

Download Link: https://community.multitheftauto.com/index.php?p=resources&s=details&id=14187

Link to comment
  • 7 years later...
On 22/02/2017 at 11:44, Fist said:

Handy tool for DayZ servers, very easy to use and neat
looking DayZ Admin Panel. It's completly open source
feel free to edit it to your likings but please do not
remove original author (me) also credit goes to Superman
addon creator Ryden, without him this handy tool would
not be so cool. :)

Default open bind is O
Once you go in Duty Mod you are invincible and you can fly.

==-- To do
Inventory inspector
SuperAdmin features
Ban List (also unbaning)
Report system
Spectate (maybe?)

==-- Features
Duty Mode, Kick, Ban, Mute, Freeze, Warp,
Warp Player To, Set Stats, Change Weather, Kill Player,
Spawn Items, Spawn Vehicles, Send Global Message,
Fix Car, Destroy Car, Blow Car, See Stats about player.

If you find any bug report here or pm me, i'll fix it as soon as possible.

Download Link: https://community.multitheftauto.com/index.php?p=resources&s=details&id=14187

 

 

I hate to bump this old script, but I've been trying to modify it to my liking, I would love to share it as well to the community if anyone needs it, but I need a little help.
I've been having errors when giving items to someone. If you can still respond to this, can you help me?

https://imgur.com/a/6WZ3KjU

 

 

server

function giveEvent(selectedPlayer,item,quantity)
	setElementData(selectedPlayer,item,getElementData(selectedPlayer,item)+quantity)
	outputChatBox(prefix.." Admin "..string.gsub(getPlayerName(source), "#%x%x%x%x%x%x", "").." gave you "..quantity.." "..item,selectedPlayer,0,0,0,true)
	outputChatBox(prefix.." You gave "..quantity.." "..item.." to "..string.gsub(getPlayerName(selectedPlayer), "#%x%x%x%x%x%x", ""),source,0,0,0,true)
end
addEvent("giveEvent",true)
addEventHandler("giveEvent",root,giveEvent)

 

 

client

function give()
		if (guiGridListGetSelectedItem(giveWindowGridlist) ~= -1) then
			local item = guiGridListGetItemText(giveWindowGridlist,guiGridListGetSelectedItem(giveWindowGridlist))
			local quantity = guiGetText(giveWindowEditboxQuant)
			local selectedPlayer = getPlayerFromName(guiGridListGetItemText(gridlistPlayers1,item,1))
			if selectedPlayer then
				triggerServerEvent("giveEvent",localPlayer,selectedPlayer,item,quantity)
			end
		end
	end

 

Link to comment
On 15/04/2024 at 04:23, Mischief-1 said:

 

 

I hate to bump this old script, but I've been trying to modify it to my liking, I would love to share it as well to the community if anyone needs it, but I need a little help.
I've been having errors when giving items to someone. If you can still respond to this, can you help me?

https://imgur.com/a/6WZ3KjU

 

 

server

function giveEvent(selectedPlayer,item,quantity)
	setElementData(selectedPlayer,item,getElementData(selectedPlayer,item)+quantity)
	outputChatBox(prefix.." Admin "..string.gsub(getPlayerName(source), "#%x%x%x%x%x%x", "").." gave you "..quantity.." "..item,selectedPlayer,0,0,0,true)
	outputChatBox(prefix.." You gave "..quantity.." "..item.." to "..string.gsub(getPlayerName(selectedPlayer), "#%x%x%x%x%x%x", ""),source,0,0,0,true)
end
addEvent("giveEvent",true)
addEventHandler("giveEvent",root,giveEvent)

 

 

client

function give()
		if (guiGridListGetSelectedItem(giveWindowGridlist) ~= -1) then
			local item = guiGridListGetItemText(giveWindowGridlist,guiGridListGetSelectedItem(giveWindowGridlist))
			local quantity = guiGetText(giveWindowEditboxQuant)
			local selectedPlayer = getPlayerFromName(guiGridListGetItemText(gridlistPlayers1,item,1))
			if selectedPlayer then
				triggerServerEvent("giveEvent",localPlayer,selectedPlayer,item,quantity)
			end
		end
	end

 

 

I was able to fix this error, I kinda had to rewrite it. 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...