Jump to content

Shady1

Members
  • Posts

    906
  • Joined

  • Last visited

  • Days Won

    61

Everything posted by Shady1

  1. Você pode tentar editá-lo como "player" em vez de "thePlayer"
  2. I forgot to add, don't place any suffocating lights as an extra,For example, you can place leftovers in front of the houses,You can place a pool garden in some houses...
  3. I will try to serve you better, I hope your server gets better
  4. you're welcome,I am happy that you have re-entered the game after your problem has been resolved,I'm ready for any kind of help, just give me a call..
  5. Hey @Nixon I reported the same and admins on both accounts
  6. Hello ,Disable antivirus during installation,missing file kicks you out of game due to installation
  7. your work is very nice, thank you, but I want to give some advice,For example, instead of placing random objects, you can reflect the real places in the world to the inner world of MTA. eg (USA,UK,DE,TR,FR) like the places of these countries, I have not seen a cartographer who made these, if you can do it, this could be a very interesting work. I wish you continued success
  8. Hello, I was interested in your topic and I would like to express that I want to help. i have multiple languages (Turkish,English,German,French) I am a German Translator for MTA.crowdin and I can help you,I am good at translation. Discord : [F2B]Shady#5809
  9. @CitizenJ'ai compris ce qu'il voulait, je voulais juste quelques détails, si je peux je l'aiderai
  10. Bonjour @Kratos_26000, Si vous donnez plus d'informations sur le système, nous pourrons mieux comprendre, par exemple, quel type de systèmes souhaitez-vous ?
  11. Hallo @Otto vn sakoa , ich habe ein Abstimmungssystem für dich, ich kann es mit dir teilen, wenn es dir gefällt, kannst du es zeigen, indem du meine Nachricht magst. setElementData(resourceRoot,"VotesYes",0) setElementData(resourceRoot,"VotesNo",0) setElementData(resourceRoot,"VoteStarted",false) setElementData(resourceRoot,"Question","") setElementData(resourceRoot,"voteYesLabelText","") setElementData(resourceRoot,"voteNoLabelText","") function createVote(playerSource) if getElementData(resourceRoot,"VoteStarted") == true then return end setElementData(resourceRoot,"VoteStarted",true) local accountName = (getAccountName(getPlayerAccount(playerSource))) if isObjectInACLGroup("user."..accountName,aclGetGroup("Console")) or isObjectInACLGroup("user."..accountName,aclGetGroup("Admin")) then triggerClientEvent("showCreateVoteGuiEvent",playerSource) end end addCommandHandler("createvote",createVote) function closeVote(playerSource) if getElementData(resourceRoot,"VoteStarted") == false then return end setElementData(resourceRoot,"VoteStarted",false) local accountName = (getAccountName(getPlayerAccount(playerSource))) if isObjectInACLGroup("user."..accountName,aclGetGroup("Console")) or isObjectInACLGroup("user."..accountName,aclGetGroup("Admin")) then accountNameTable = {} setElementData(resourceRoot,"VotesYes",0) setElementData(resourceRoot,"VotesNo",0) triggerClientEvent("closeVoteScoreGuiEvent",root) end end addCommandHandler("closevote",closeVote) accountNameTable = {} function voteYes(playerSource) if getElementData(resourceRoot,"VoteStarted") == false then return end local accountName = (getAccountName(getPlayerAccount(playerSource))) for key,value in pairs(accountNameTable) do if accountName == value then outputChatBox("You already voted.",playerSource) return end end accountNameTable[#accountNameTable + 1] = accountName setElementData(resourceRoot,"VotesYes",getElementData(resourceRoot,"VotesYes") + 1) triggerClientEvent("updateVoteYesEvent",root) end addCommandHandler("voteyes",voteYes) function voteNO(playerSource) if getElementData(resourceRoot,"VoteStarted") == false then return end local accountName = (getAccountName(getPlayerAccount(playerSource))) for key,value in pairs(accountNameTable) do if accountName == value then outputChatBox("You already voted.",playerSource) return end end accountNameTable[#accountNameTable + 1] = accountName setElementData(resourceRoot,"VotesNo",getElementData(resourceRoot,"VotesNo") + 1) triggerClientEvent("updateVoteNoEvent",root) end addCommandHandler("voteno",voteNO) function showVoteScore() Question = getElementData(resourceRoot,"Question") YES = getElementData(resourceRoot,"voteYesLabelText") NO = getElementData(resourceRoot,"voteNoLabelText") for i = 1,#getElementsByType("player") do triggerClientEvent("showVoteScoreGuiEvent",getElementsByType("player")[i],Question,YES,NO) end end addEvent("showVoteScoreEvent",true) addEventHandler("showVoteScoreEvent",resourceRoot,showVoteScore) function bindVoteKeys() bindKey(source,"F3","down","voteyes") bindKey(source,"F4","down","voteno") if getElementData(resourceRoot,"VoteStarted") == true then triggerClientEvent("showVoteScoreGuiEvent",source,getElementData(resourceRoot,"Question"),getElementData(resourceRoot,"voteYesLabelText"),getElementData(resourceRoot,"voteNoLabelText")) end end addEventHandler("onPlayerLogin",root,bindVoteKeys) function bindVoteStartup() for i = 1,#getElementsByType("player") do bindKey(getElementsByType("player")[i],"F3","down","voteyes") bindKey(getElementsByType("player")[i],"F4","down","voteno") end end addEventHandler("onResourceStart",resourceRoot,bindVoteStartup) Dieser Code befindet sich auf der server.lua-Seite function showVoteScoreGui(Question,Yes,No) guiSetText(voteQuestionLabel,Question) if string.len(guiGetText(voteQuestionLabel)) > 35 then guiSetPosition(voteQuestionLabel,0.35,0.17,true) elseif string.len(guiGetText(voteQuestionLabel)) < 14 then guiSetPosition(voteQuestionLabel,0.43,0.17,true) else guiSetPosition(voteQuestionLabel,0.4,0.17,true) end guiSetText(voteYesLabel,Yes..": "..getElementData(resourceRoot,"VotesYes")) guiSetText(voteNOLabel,No..": "..getElementData(resourceRoot,"VotesNo")) guiSetVisible(voteYesLabel,true) guiSetVisible(voteNOLabel,true) guiSetVisible(voteQuestionLabel,true) guiSetVisible(voteF3Label,true) guiSetVisible(voteF4Label,true) end addEvent("showVoteScoreGuiEvent",true) addEventHandler("showVoteScoreGuiEvent",localPlayer,showVoteScoreGui) function closeVoteScoreGui() guiSetVisible(voteYesLabel,false) guiSetVisible(voteNOLabel,false) guiSetVisible(voteQuestionLabel,false) guiSetVisible(voteF3Label,false) guiSetVisible(voteF4Label,false) end addEvent("closeVoteScoreGuiEvent",true) addEventHandler("closeVoteScoreGuiEvent",root,closeVoteScoreGui) function updateVoteYes() guiSetText(voteYesLabel,getElementData(resourceRoot,"voteYesLabelText")..": "..getElementData(resourceRoot,"VotesYes")) end addEvent("updateVoteYesEvent",true) addEventHandler("updateVoteYesEvent",root,updateVoteYes) function updateVoteNo() guiSetText(voteNOLabel,getElementData(resourceRoot,"voteNoLabelText")..": "..getElementData(resourceRoot,"VotesNo")) end addEvent("updateVoteNoEvent",true) addEventHandler("updateVoteNoEvent",root,updateVoteNo) function voteButtonAction() if source == voteButton1 then showCursor(false) guiSetInputEnabled(false) guiSetVisible(voteEdit1,false) guiSetVisible(voteEdit2,false) guiSetVisible(voteEdit3,false) guiSetVisible(voteButton1,false) guiSetVisible(voteButton2,false) setElementData(resourceRoot,"Question",guiGetText(voteEdit1)) setElementData(resourceRoot,"voteYesLabelText",guiGetText(voteEdit2)) setElementData(resourceRoot,"voteNoLabelText",guiGetText(voteEdit3)) triggerServerEvent("showVoteScoreEvent",resourceRoot) end if source == voteButton2 then showCursor(false) guiSetInputEnabled(false) guiSetVisible(voteEdit1,false) guiSetVisible(voteEdit2,false) guiSetVisible(voteEdit3,false) guiSetVisible(voteButton1,false) guiSetVisible(voteButton2,false) setElementData(resourceRoot,"VoteStarted",false) end end function createVoteGui() voteYesLabel = guiCreateLabel(0.4,0.2,0.3,0.05,"",true) voteNOLabel = guiCreateLabel(0.5,0.2,0.3,0.05,"",true) voteQuestionLabel = guiCreateLabel(0.4,0.17,1,0.05,"",true) voteF3Label = guiCreateLabel(0.445,0.95,1,0.05,"Press F3 to vote option 1.",true) voteF4Label = guiCreateLabel(0.445,0.97,1,0.05,"Press F4 to vote option 2.",true) guiSetVisible(voteYesLabel,false) guiSetVisible(voteNOLabel,false) guiSetVisible(voteQuestionLabel,false) guiSetVisible(voteF3Label,false) guiSetVisible(voteF4Label,false) voteEdit1 = guiCreateEdit(0.3,0.3,0.3,0.05,"Vote Question",true) voteEdit2 = guiCreateEdit(0.415,0.355,0.073,0.05,"YES",true) voteEdit3 = guiCreateEdit(0.49,0.355,0.073,0.05,"NO",true) guiEditSetMaxLength(voteEdit1,50) guiEditSetMaxLength(voteEdit2,10) guiEditSetMaxLength(voteEdit3,10) voteButton1 = guiCreateButton(0.305,0.355,0.05,0.05,"Accept",true) voteButton2 = guiCreateButton(0.36,0.355,0.05,0.05,"Cancel",true) guiSetVisible(voteEdit1,false) guiSetVisible(voteEdit2,false) guiSetVisible(voteEdit3,false) guiSetVisible(voteButton1,false) guiSetVisible(voteButton2,false) addEventHandler("onClientGUIClick",voteButton1,voteButtonAction,false) addEventHandler("onClientGUIClick",voteButton2,voteButtonAction,false) end createVoteGui() function showCreateVoteGui() showCursor(true) guiSetInputEnabled(true) guiSetVisible(voteEdit1,true) guiSetVisible(voteEdit2,true) guiSetVisible(voteEdit3,true) guiSetVisible(voteButton1,true) guiSetVisible(voteButton2,true) end addEvent("showCreateVoteGuiEvent",true) addEventHandler("showCreateVoteGuiEvent",localPlayer,showCreateVoteGui) fileDelete("gui_client.lua") Dieser Code befindet sich auf der Seite gui_client.lua. Ich hoffe, es wird für Sie funktionieren. <meta> <info type="script"/> <script src="gui_client.lua" type="client"/> <script src="server.lua" type="server"/> </meta> meta.xml
  12. Merhaba @Felixe Yukarıda Tut'un bahsettiğini türkçe çeviriyorum, bize geri dönüş yapmanızı bekliyoruz. English : I've moved this post into the Turkish support section. Your serial is not banned by MTA, but it does appear you've been having a client issue when connecting to a server. If you could please post the error you're getting when trying to MTA, someone will be able to help you further. Turkish : Bu gönderiyi Türkçe destek bölümüne taşıdım. Seriniz MTA tarafından yasaklanmadı, ancak bir sunucuya bağlanırken bir istemci sorunu yaşıyormuşsunuz gibi görünüyor. MTA'yı denerken aldığınız hatayı yazarsanız, birisi size daha fazla yardımcı olabilir.
  13. merhaba @asd123asd göndermiş olduğunuz konuda, youtube video link gözükmüyor, eğer nasil bir şey istediğinizi buradan belirtirseniz, sizin için yapabilirim.
  14. Merhaba@BurakAKSAKAL sizin sorununz için bir kaç metin ayarladım, bu şekilde düzenlemeler yapabilirsiniz, eğer başka sorunların olursa lütfen yeni bir konu açarak Beni çağırınız ve beni bekleyin. "call" fonksiyonu biraz eskide kaldı,addEventHandler kullanmanızı tavsiye edebilirim. addEvent("setAnimatedProgressBarProgress", true) addEventHandler("setAnimatedProgressBarProgress", getRootElement(), setAnimatedProgressBarProgress) Bu iki satır, işlev bittikten sonra istemci tarafına gidin,ve if den sonra sunucu tarafına: if ( rafalh_shared_res and optionData.bar ) then triggerServerEvent ( "setAnimatedProgressBarProgress", ...(ARGUMENTS) )
  15. ola bom dia, me adicione como amigo no meu Discord e deixe uma mensagem para o mod do DayZ, posso te ajudar [F2B]Shady#5809
  16. ethernet kablosun'dan kaynaklana bilir, isterseniz forum'da konu aratma bölümünden CD16 ile ilgili hataları arayabilir ve daha fazla sonuçlar görebilirsiniz, ama benim çözümüm ethernet kablosunu değiştirmek oldu.
  17. merhaba, internetinizi kontrol etmenizi ve ethernet kablonuzu düzeltmenizi tavsiye ederim. iyi günler.
  18. Shady1

    Voice Chat

    local g_screenX,g_screenY = guiGetScreenSize() local BONE_ID = 8 local WORLD_OFFSET = 0.4 local ICON_PATH = "images/voice.png" local ICON_WIDTH = 0.35*g_screenX -- local ICON_HEIGHT = 0.213333333333*g_screenY -- local iconHalfWidth = ICON_WIDTH/2 -- local iconHalfHeight = ICON_HEIGHT/2 local ICON_DIMENSIONS = 16 local ICON_LINE = 20 local ICON_TEXT_SHADOW = tocolor ( 0, 0, 0, 255 ) --Draw the voice image addEventHandler ( "onClientRender", root, function() local index = 0 if not bShowChatIcons then return end for player in pairs(voicePlayers) do local color = tocolor(getPlayerNametagColor ( player )) dxDrawVoiceLabel ( player, index, color ) index = index + 1 while true do --is he streamed in? if not isElementStreamedIn(player) then break end --is he on screen? if not isElementOnScreen(player) then break end local headX,headY,headZ = getPedBonePosition(player,BONE_ID) headZ = headZ + WORLD_OFFSET --is the head position on screen? local absX,absY = getScreenFromWorldPosition ( headX,headY,headZ ) if not absX or not absY then break end local camX,camY,camZ = getCameraMatrix() --is there anything obstructing the icon? if not isLineOfSightClear ( camX, camY, camZ, headX, headY, headZ, true, false, false, true, false, true, false, player ) then break end dxDrawVoice ( absX, absY, color, getDistanceBetweenPoints3D(camX, camY, camZ, headX, headY, headZ) ) break end end end ) function dxDrawVoice ( posX, posY, color, distance ) distance = 1/distance dxDrawImage ( posX - iconHalfWidth*distance, posY - iconHalfWidth*distance, ICON_WIDTH*distance, ICON_WIDTH*distance, ICON_PATH, 0, 0, 0, color, false ) end function dxDrawVoiceLabel ( player, index, color ) local sx, sy = guiGetScreenSize () local scale = sy / 800 local spacing = ( ICON_LINE * scale ) local px, py = sx - 200, sy * 0.7 + spacing * index local icon = ICON_DIMENSIONS * scale dxDrawImage ( px, py, icon, icon, ICON_PATH, 0, 0, 0, color, false ) px = px + spacing -- shadows dxDrawText ( getPlayerName ( player ), px + 1, py + 1, px, py, ICON_TEXT_SHADOW, scale ) -- text dxDrawText ( getPlayerName ( player ), px, py, px, py, color, scale ) end I forgot to specify the icon and it's set to be just above your head
  19. hello, your work is really nice.
  20. You created your topic in the wrong section, but I will help you with this, I have prepared a code for you and I will send it in the private messages section. Please next time I tell you to open a new thread in the Script Section
  21. I would like to present to you the Zombie package that I used in the pastino errors and all corrections have been made. I have prepared a link for the mod, all the explanations and information are in the link I sent you. (If you have an extra question, you can contact me via discord, I'm doing request MOD assistance.) I would like to state that I will help you with your extra script request for DayZ mode. - Discord Address : shady.lua
  22. It's a really successful job, I wish you success.
  23. There are new broken buildings and loot in the area I marked with red lines We have named the War System in the area that I have indicated with the red zone, this is the war zones.
×
×
  • Create New...