 
        1LoL1
Members- 
                Posts944
- 
                Joined
- 
                Last visited
Everything posted by 1LoL1
- 
	However, it's just that I know that it can be decrypted?
- 
	player was shown the IP and password but the password is encoded as you probably already wrote ..
- 
	And you can not decode it somehow?
- 
	Hello community, I have only one question .. can or where to find accounts? supposedly username password etc. .. When someone registers on the server so that it saves the password and name to the database so I heard it but do not know where is it Please advise?
- 
	It still does not add anything ..
- 
	Adds nothing at all to kill them and 50 and nothing ..
- 
	But dayz but not Health Blood
- 
	Hi, So I have one prozby can not remake this script? as instead of $ 100 would be added 100Blood I tried to remake it does not work if someone knew Please advise and if I could pray that it works on DayZ zombie Script: addEvent( "onZombieWasted" ); addEventHandler( "onZombieWasted", getRootElement(), function( killer ) givePlayerBlood( killer, 100 ); end )
- 
	If that help me better .. I do not know what to do
- 
	Please, someone knows where to download the script to save this for DayZ? Please awful you please or if anyone was willing to create the script, and yet it could not be done this so that when I will restart the server so save all the cars that I have through this script spawn this is the script https://community.multitheftauto.com/index.php?p=resources&s=details&id=8860 it's not the only reproduce this bug in the script as the patriots that I corrected myself .. so you please help me.
- 
	Ok this is my last issue can not be made Admin script that will see the player writes to TeamChatu "Y"?? Please only write if hey .. I never did and still do not even know I just heard it somewhere ..
- 
	If i know it is because I am asking for help ...
- 
	But as I wanted all the code so I know nothing by code it and learn not only so that you write something .. so please if you could be so all the code .. It is also better to learn ..
- 
	So here I am again, and perhaps the last posts I need you once knew someone please delete these hexes that struck me And this I can not fix it so please help And here is the client -- Client g_LocalPlayer = getLocalPlayer() g_Root = getRootElement() g_ThisResource = getThisResource() g_ResourceRoot = getResourceRootElement(getThisResource()) chat = {} -- table to store chat windows in newmsg = {show=false, tick=getTickCount(), showtime=5000, img=nil, lbl=nil } -- new msg table anims = {} function buildPlayerList() local x,y = guiGetScreenSize() local width,height = 175,350 x = x-width y = (y-height)/2 newmsg.lbl = guiCreateLabel(553.0000,175.0000, 244.0000, 19.0000, "", false) guiLabelSetColor(newmsg.lbl,0, 170, 255) guiLabelSetHorizontalAlign(newmsg.lbl, "right", true) guiSetAlpha(newmsg.img, 0) --guiSetAlpha(newmsg.lbl, 0) wndPlayers = guiCreateWindow(-1,256,222,343, "~ Private Chat ~", false) grdPlayers = guiCreateGridList(0.0991,0.2449,0.8108,0.6968, true, wndPlayers) colPlayers = guiGridListAddColumn(grdPlayers, "Players", 0.85) local players = getElementsByType("player") for k,v in ipairs(players) do addPlayerToList(v) end guiSetProperty(fond,"Disabled","true") guiWindowSetSizable(wndPlayers, false) guiSetProperty(wndPlayers, "RollUpEnabled", "true") guiSetProperty(wndPlayers, "Dragable", "true") guiSetAlpha(wndPlayers, 0) -- create animations for it anims.plfadein = Animation.create(wndPlayers, Animation.presets.guiFadeIn(1000)) anims.plfadeout = Animation.create(wndPlayers, Animation.presets.guiFadeOut(1000)) anims.nmfadein = Animation.create(newmsg.img, Animation.presets.guiFadeIn(1000)) anims.nmfadeout = Animation.create(newmsg.img, Animation.presets.guiFadeOut(1000)) anims.nmtextin = Animation.create(newmsg.lbl, Animation.presets.guiFadeIn(1000)) anims.nmtextout = Animation.create(newmsg.lbl, Animation.presets.guiFadeOut(1000)) --[[ local x,y = guiGetPosition(newmsg.img) outputDebugString("guigetPostions: " ..tostring(x).." "..tostring(y)) local scrx,scry = guiGetScreenSize() anims.nmslidein = Animation.create(newmsg.img, Animation.presets.guiMove(x,y))--, 1000,false, scrx,scry, false)) anims.nmslideout = Animation.create(newmsg.img, Animation.presets.guiMove(scrx,scry))--, 1000,false, x,y, false)) ]] bindKey("F4", "down", togglePmGui) end function addPlayerToList(ply) --outputDebugString("addPlayerToList:" ..getPlayerName(ply)) local row = guiGridListAddRow(grdPlayers) local name = getPlayerName(ply) guiGridListSetItemText(grdPlayers,row,colPlayers, name, false, false) end function removePlayerFromList(ply) --outputDebugString("removePlayerFromList:" ..getPlayerName(ply)) local name=getPlayerName(ply) for row=0,guiGridListGetRowCount(grdPlayers) do if guiGridListGetItemText(grdPlayers, row, colPlayers) == name then guiGridListRemoveRow(grdPlayers, row) outputDebugString("remove row" ..tostring(row)) end end end function showPmGui(state) if state == true then anims.plfadein:play() for k,v in pairs(chat) do guiSetVisible(chat[k].wnd,true) end showCursor(true) elseif state == false then anims.plfadeout:play() for k,v in pairs(chat) do guiSetVisible(chat[k].wnd,false) end showCursor(false) guiSetInputEnabled(false) end end function togglePmGui() if not anims.plfadein:isPlaying() and not anims.plfadeout:isPlaying() then if guiGetAlpha(wndPlayers) > .1 then showPmGui(false) else showPmGui(true) end end end function buildChatWindow(ply) local x,y = guiGetScreenSize() local width,height = 300,250 x = x*.5 y = y*.5 chat[ply] = {} chat[ply].wnd = guiCreateWindow(337,277,395,252, getPlayerName(ply) , false) chat[ply].memo = guiCreateMemo(0.043,0.1746,0.9089,0.623, "", true, chat[ply].wnd) chat[ply].edit = guiCreateEdit(0.043,0.8214,0.7089,0.1111, "", true, chat[ply].wnd) chat[ply].btnX = guiCreateButton(0.9215,0.0754,0.0557,0.0794, "X", true, chat[ply].wnd) chat[ply].btnSend = guiCreateButton(0.757,0.8135,0.2127,0.1429, "Send", true, chat[ply].wnd) guiSetProperty(chat[ply].img,"Disabled","true") guiMemoSetReadOnly(chat[ply].memo, true) guiWindowSetSizable(chat[ply].wnd, false) guiSetProperty(chat[ply].wnd, "RollUpEnabled", "true") guiSetProperty(chat[ply].wnd, "Dragable", "true") if anims.plfadein:isPlaying() then-- in process of fading in guiSetVisible(chat[ply].wnd, true) elseif anims.plfadeout:isPlaying() then -- in process of fading out guiSetVisible(chat[ply].wnd, false) else -- not in process of either if guiGetAlpha(wndPlayers) > .1 then guiSetVisible(chat[ply].wnd, true) -- is showing else guiSetVisible(chat[ply].wnd, false) -- isnt showing end end end function destroyChatWindow(ply) if chat[ply] and isElement(chat[ply].wnd) then destroyElement(chat[ply].wnd) chat[ply] = nil end end function sendChatMessage(ply) --outputDebugString("sendChatMessage: " .. tostring(ply)) if chat[ply] and isElement(chat[ply].wnd) then local newText = guiGetText(chat[ply].edit) if newText and string.len(newText) > 0 then local oldText = guiGetText(chat[ply].memo) if not oldText then oldText = "" end oldText = oldText .. getPlayerName(g_LocalPlayer):gsub("#%x%x%x%x%x%x","") .. ": " .. newText .. "\n" guiSetText(chat[ply].memo, oldText) guiSetText(chat[ply].edit, "") guiMemoSetCaretIndex(chat[ply].memo, string.len(oldText)) triggerServerEvent("onGUIPrivateMessage", g_LocalPlayer, ply,newText) end end end function recieveChatMessage(ply, msg) --outputDebugString("recieveChatMessage: " .. msg) if not chat[ply] then buildChatWindow(ply) end newmsg.show = true newmsg.tick = getTickCount() ---guiSetText(newmsg.lbl, getPlayerName(ply) .. ": " .. msg .. "\n") guiSetText(newmsg.lbl, " Message from " .. getPlayerName(ply):gsub("#%x%x%x%x%x%x","") .. "\n") outputChatBox("",255,255,255,true) local sound = playSound("GatkResalh~.mp3",false) setSoundVolume(sound, 0.2) anims.nmfadein:play() anims.nmtextin:play() --anims.nmslidein:play() local oldText = guiGetText(chat[ply].memo) if not oldText then oldText = "" end oldText = oldText .. getPlayerName(ply):gsub("#%x%x%x%x%x%x","") .. ": " .. msg .. "\n" guiSetText(chat[ply].memo, oldText) guiMemoSetCaretIndex(chat[ply].memo, string.len(oldText)) end event_resource_start = function(res) buildPlayerList() end event_resource_stop = function(res) unbindKey("F3", "down", togglePmGui) showPmGui(false) end event_player_join = function() --outputDebugString("onClientPlayerJoin") addPlayerToList(source) end event_player_quit = function() --outputDebugString("onClientPlayerQuit") removePlayerFromList(source) destroyChatWindow(source) end event_gui_click = function(button, state, absx, absy) if button == "left" and state == "up" then if getElementType(source) == "gui-button" then local parent = getElementParent(source) if parent ~= false then local ply = getPlayerFromName(guiGetText(parent)) if ply then if source == chat[ply].btnX then destroyChatWindow(ply) guiSetInputEnabled(false) elseif source == chat[ply].btnSend then sendChatMessage(ply) guiSetInputEnabled(false) end end end elseif getElementType(source) == "gui-edit" then local parent = getElementParent(source) if parent ~= false then local ply = getPlayerFromName(guiGetText(parent)) if source == chat[ply].edit then guiSetInputEnabled(true) end end else guiSetInputEnabled(false) end end end event_gui_doubleclick = function(button, state, absx, absy) if button == "left" and state == "up" then if source == grdPlayers then local row, col = guiGridListGetSelectedItem(grdPlayers) --outputDebugString("double clicked row: "..tostring(row)) if row == -1 or col == -1 then return end local name = guiGridListGetItemText(grdPlayers, row, col) local ply = getPlayerFromName(name) if not chat[ply] then buildChatWindow(ply) end guiBringToFront(chat[ply].wnd) end end end event_gui_accepted = function(element) local parent = getElementParent(source) if parent ~= false then
- 
	False. You don't steal if you copy/paste a script that doesn't belongs to you . But you DO steal if you copy/paste a script that doesn't belongs to you , but you claim that the script is yours and you made that script. He didn't said anything about the ownership of the script , but you shouldn't banish him for something he didn't do. The same thing happens in music , have you ever heard of mixtape ? It's basically a singer who doesn't have money to buy beats , and uses free ones , that can be downloaded from a public space . (In our case , MTA:SA Community ) I write rather let someone lock ...
- 
	Stolen? : o You mean when I download a script so steal? : O: O: O There is a difference between leaked and stolen code. A leaked code is the source code of something that shouldn't be available to the public. A stolen code is a source code that you found on the internet and you just copied and pasted. We sometimes help scripters with stolen code if we know they are getting better by really watching the wiki and if we see he learned the basis. And yeah, this is not your case, you are just stealing code and try to put them on your server without learning at all by creating a new topic on this forum almost twice a day. https://wiki.multitheftauto.com/wiki/Main_Page When you need help here so I can create a theme and 5 times but prefer to let someone lock ..
- 
	Stolen? : o You mean when I download a script so steal? : O: O: O
- 
	Please someone help me at all it does not unmute here is my client and server, and even who will spam my GlobalChate so that it's even there could Mute -- Client ------------------------------------------------------------------------------------ local spamCount = 0 local repeatedMessages = { } local repeatedMessageCount = 0 local banCount = 5 local muteCount = 3 local decreaseTime = 4 local oldTick local warned = false function resetRepeatedMessages ( ) repeatedMessages = nil repeatedMessages = { } end setTimer ( resetRepeatedMessages, 15000, 0 ) ---------------------------------------------------- function getPlayerUncoloredName (player) local nick = string.gsub(getPlayerName(player), "#%x%x%x%x%x%x", "") return nick end function echo (message) outputChatBox(message, 255,0,0) end function antispamCheckFunc ( message ) if string.find(message, "say") then if spamCount > banCount then decreaseSpamCount ( ) end local newTick = getTickCount ( ) if spamCount == 0 then oldTick = getTickCount ( ) end if spamCount > 0 and newTick-oldTick > 15000 then spamCount = 0 triggerServerEvent ( 'onPlayerSpam', getLocalPlayer ( ), 'mute', 60*3, '[!] #ff5500'..getPlayerUncoloredName ( getLocalPlayer ( ) ) ..' #ff5500has been muted for 3 minutes', 'Spam') end if spamCount > 5 and ( newTick-oldTick ) < spamCount * 600 then spamCount = 0 if warned then triggerServerEvent ( 'onPlayerSpam', getLocalPlayer ( ), 'mute', 120*60, '[!] #ff5500 '..getPlayerUncoloredName ( getLocalPlayer ( ) ) ..' #ff5500has been muted for 30 minutes', 'Repeated Spam flood' ) else warned = true triggerServerEvent ( 'onPlayerSpam', getLocalPlayer ( ), 'mute', 10*60, '[!] #ff5500 '..getPlayerUncoloredName ( getLocalPlayer ( ) ) ..' #ff5500has been muted for 10 minutes', 'Spam flood' ) echo ( "*Warning: Next time ban for 1 hour!" ) end return 1 end local found = false for k, var in ipairs ( repeatedMessages ) do --outputDebugString ( 'Message: "'..tostring ( var [ 1 ] )..'" called ' ..tostring ( var [ 2 ] )..' times ', 0, 60, 60, 220 ) if var [ 1 ] == message then if not type ( var [ 2 ] ) == "number" then var [ 2 ] = 0 end var [ 2 ] = var [ 2 ] + 1 if var [ 2 ] > 10 then triggerServerEvent ( 'onPlayerSpam', getLocalPlayer ( ), 'mute', 5*60, '[!] #ff5500'..getPlayerUncoloredName ( getLocalPlayer ( ) ) ..'#FE4141 has been muted for 5 minutes', 'Repeating the same phrase' ) var [ 2 ] = 7 elseif var [ 2 ] > 6 then --echo ( "*Warning: Do not say the same again and again!" ) end found = true break end end if not found then table.insert ( repeatedMessages, { message, 0 } ) end spamCount = spamCount + 1 setTimer ( decreaseSpamCount, decreaseTime * 1000, 1 ) end end --addEvent ( "onLocalPlayerChat", true ) addEventHandler ( "onClientConsole", root, antispamCheckFunc ) ------------------------------------------------------------------------------------ function decreaseSpamCount ( ) if spamCount > 0 then if spamCount > banCount then spamCount = 0 if warned then triggerServerEvent ( 'onPlayerSpam', getLocalPlayer ( ), 'mute', 30*60, '[!] #ffffff'..getPlayerUncoloredName ( getLocalPlayer ( ) ) ..'#4876FF has been muted for 30 minutes', 'Repeated Spam flood' ) else warned = true triggerServerEvent ( 'onPlayerSpam', getLocalPlayer ( ), 'mute', 10*60, '[!] #ffffff'..getPlayerUncoloredName ( getLocalPlayer ( ) ) ..'#4876FF has been muted for 10 minutes', 'Spam flood' ) echo ( "*Warning: Next time ban for 2 hours!" ) end elseif spamCount > muteCount then triggerServerEvent ( 'onPlayerSpam', getLocalPlayer ( ), 'mute', 3*60, '[!] #ffffff '..getPlayerUncoloredName ( getLocalPlayer ( ) ) ..'#4876FF has been muted for 3 minutes', 'Spam' ) spamCount = 0 end spamCount = spamCount - 1 end end -- Server function unmuteSpammer (serial, account) --if isPlayerMuted(player) then --setPlayerMuted(player, false) --outputChatBox("#41FE5B[!]#84F994 " .. string.gsub(getPlayerName(player), "#%x%x%x%x%x%x", "") .. " #41FE5Bhas been automatically unmuted!",getRootElement(), 255,0,0,true) --end mysql_query(handle, "UPDATE prohresky SET muted = 'false' WHERE prohresky.serial = '" .. serial .. "'") end addEvent("onPlayerSpam", true) addEventHandler("onPlayerSpam", getRootElement(), function (action, time, message, reason) if (isPlayerMuted(source) == false) then outputChatBox(message .. " (" .. reason .. ")", getRootElement(), 255,0,0,true) if action == "mute" then local time2 = time * 1000 setPlayerMuted(source, true) --outputChatBox(time2) serialu = serialu + 1 serialy[serialu] = getPlayerSerial(source) local nick = string.gsub(getPlayerName(source), "#%x%x%x%x%x%x", "") setTimer(unmuteSpammer, time2, 1, serialy[serialu], getPlayerAccount(source)) setElementData(source, "muted", true) mysql_query(handle, "INSERT INTO `DM_svr`.`prohresky` (`serial`, `muted`) VALUES ('" .. getPlayerSerial(source) .. "', 'true')") elseif action == "ban" then --outputChatBox("Mas ban..") end end end) addCommandHandler("testing", function(player) outputChatBox(tostring(isPlayerMuted(player))) end) addEventHandler("onPlayerJoin", getRootElement(), function () local result = mysql_query(handle,"SELECT * FROM prohresky WHERE serial='"..getPlayerSerial(source).."'") --if mysql_result(result,1,1)==login then for i,v in mysql_rows(result) do if (v[1] == getPlayerSerial(source)) and not (v[2] == "false") then setPlayerMuted(source, true) outputChatBox("[!] #ff5500" .. string.gsub(getPlayerName(source), "#%x%x%x%x%x%x", "") .. " #ff5500has been automatically muted!", getRootElement(), 255,0,0,true) end end --end mysql_free_result(result) end) function unmutePlayers () players = getElementsByType("player") for _, player in ipairs(players) do --outputDebugString("unmutePlayers spusteno") local serial = getPlayerSerial(player) if isPlayerMuted(player) then result = mysql_query(handle, "SELECT * FROM prohresky WHERE prohresky.serial = '" .. serial .. "'") for i,v in mysql_rows(result) do if (v[1] == getPlayerSerial(player)) and (v[2] == "false") then setPlayerMuted(player, false) mysql_query(handle, "DELETE FROM prohresky WHERE prohresky.serial = '" .. serial .. "'") outputChatBox("#ff5500[!]#ff5500 " .. string.gsub(getPlayerName(player), "#%x%x%x%x%x%x", "") .. " #ff5500has been automatically unmuted!",getRootElement(), 255,0,0,true) end end end end end setTimer(unmutePlayers, 30000, 0) voice = true function adminChangeVoice (player, cmd) if hasObjectPermissionTo ( player, "command.toggleVoice", false ) then if voice then voice = false outputChatBox("#FE4141[!] Administrator #FF6F6F" .. string.gsub(getPlayerName(player), "#%x%x%x%x%x%x", "") .. " #FE4141has disabled voice chat!", getRootElement(), 255, 0,0,true) else voice = true outputChatBox("#41FE5B[!] Administrator #84F994" .. string.gsub(getPlayerName(player), "#%x%x%x%x%x%x", "") .. " #41FE5B has enabled voice chat!", getRootElement(), 255, 0,0,true) end end end addCommandHandler("voice", adminChangeVoice) addEventHandler("onPlayerVoiceStart", getRootElement(), function () if not voice then cancelEvent() return end for i,player in ipairs(getElementsByType("player")) do if tonumber(getElementData(player, "adminlvl")) > 1 then outputChatBox("Hrac " .. string.gsub(getPlayerName(source), "#%x%x%x%x%x%x", "") .. " spustil voice!", player) end end end) function countThat (msg, type) if type == 0 then if string.find(msg, "!count") then setTimer(outputChatBox, 100, 1, "#ff5500* " .. getPlayerCount(), root, 255, 0, 0, true) end end end addEventHandler("onPlayerChat", getRootElement(), countThat) -- GlobalChat Server function globalMessage ( thePlayer, cmd, ... ) if isPlayerMuted ( thePlayer ) then outputChatBox ( "You are muted!", thePlayer, 255, 0, 0 ) return end local message = table.concat ( { ... }, " " ) local name = getPlayerName ( thePlayer ) outputChatBox ( "#009BFFGlobalChat: #FFFFFF".. name ..": #99FF00".. message, getRootElement(), 255, 255, 255, true ) end addCommandHandler ( "global", globalMessage )
- 
	But I know just do /blood and /fix single player but for the entire server I do not know but I tried hopelessly These are the scripts function kill (source) setElementData ( source, "blood", -2000 ) end addCommandHandler ( "kill", kill ) function fix (playerSource) local theVehicle = getPedOccupiedVehicle (playerSource) if theVehicle and getVehicleController ( theVehicle ) == playerSource then fixVehicle (theVehicle) outputChatBox ("" , thePlayer) end end addCommandHandler ("fix" , fix)
- 
	But I'm learning to script but somehow I do not ..
- 
	You better lock still do not understand
