Jump to content

RandomRambo

Members
  • Posts

    71
  • Joined

  • Last visited

Everything posted by RandomRambo

  1. ye I put 30 mins delay And when i hit 5 times marker,on the sixth try it let me hit it again
  2. Doesn't work ? It lets people to hit marker unlimited times anyway ?
  3. Thanks,but how can I do that may be after 5 guys hit the marker it will be closed like this?(not 1 like now)
  4. Hi guys. Need some help with DX , I have some code and I need to put an image in the background of this window. Tryed guiCreateStaticImage But it doesn't work correctly or doesn't work at all ? I know that here is dxDrawRectangle but I need instead of this black "window" a transparent image behind this window. Help if u know how to do it. Code: function Render() if getElementData(localPlayer,"inMenu") == true then destroyWorkWindow() end dxDrawRectangle(x-450, y-292, 900, 400, tocolor ( 0, 0, 0, 210) ) dxDrawRectangle(x-410, y-242, 350, 320, tocolor ( 255, 255, 255, 80) ) twd = dxGetTextWidth(getElementData(isReal(),"name"), 1.3, "default-bold") dxDrawText(getElementData(isReal(),"name"),x-245-twd/2, y-272, 350, 500,tocolor (181,166,66, 255 ), 1.3, "default-bold") start = -10 for i, v in ipairs(works) do if i == qtLabelEntered and qtLabelSelected ~= i then dxDrawRectangle(x-410, y-232+start, 350, 35, tocolor ( 180, 180, 180, 210) ) elseif i == qLabelSelected then dxDrawRectangle(x-410, y-232+start, 350, 35, tocolor ( 181,166,66, 210) ) if qtAcceptEntered == 1 then dxDrawRectangle(x+10,y+28,400,50, tocolor( 181,166,66, 80)) else dxDrawRectangle(x+10,y+28,400,50, tocolor( 255, 255, 255, 80)) end local checkWork = getElementData(localPlayer,"works") or 0 if checkWork == v.works then twd = dxGetTextWidth("Accept",1.3,"default-bold") dxDrawText("Accept",x+210-twd/2,y+43,400,50,tocolor ( 255,255,255, 255 ), 1.3, "default-bold") else twd = dxGetTextWidth("Go",1.3,"default-bold") dxDrawText("Go",x+210-twd/2,y+43,400,50,tocolor ( 255,255,255, 255 ), 1.3, "default-bold") end end if getElementData(isReal(),"id") == v.works then twd = dxGetTextWidth(v.name,1.3,"default-bold") dxDrawText(v.name,x-245-twd/2, y-232+start+5, 350, 500,tocolor ( 255,255,255, 255 ), 1.3, "default-bold") start = start + 35 end end end
  5. Close this thread,found solution.
  6. Still searching better solution for this function.. If u can help,help please.
  7. Okay,but what with " I need everyone can see changed model (not only me)"?
  8. Thanks but I need everyone can see changed model (not only me) I checked ur script,u just hide models with empty dff but if I do this, original model of melee weapon (I have gun on original model) will hide too,am I right?
  9. Can u give me an example,please?
  10. Hello guys. I just tryed to do more weapons on DayZ mode. I downloaded some random DayZ mode and found system for weapons on 1 id. Tryed to move this function in my mode and I did it. Everything is good,but if I take this gun (which I added on 1 id with another model) I get 2 models in my hand (1 basic and 1 mine) (btw it's secondary melee weapon). How I can hide basic model of gun If I take weapon which I added on this same ID?Help,please. There is the function: elementWeaponRaplace = {} elementWeaponRaplace2 = {} raplaceSettings = { ["Hatchet Of God"] = { twohand = false, model = 2326 }, } function weaponReplace ( previousWeaponID, currentWeaponID ) local weapon1 = getElementData(source,"currentweapon_1") local weapon2 = getElementData(source,"currentweapon_2") if not weapon1 and not weapon2 then return end local ammoData1,weapID1 = getWeaponAmmoType(weapon1) local ammoData2,weapID2 = getWeaponAmmoType(weapon2) local x,y,z = getElementPosition(source) local rx,ry,rz = getElementRotation(source) local curweap if currentWeaponID == weapID1 then curweap = weapon1 elseif currentWeaponID == weapID2 then curweap = weapon2 end if isElement(elementWeaponRaplace[source]) then detachElementFromBone(elementWeaponRaplace[source]) destroyElement(elementWeaponRaplace[source]) elementWeaponRaplace[source] = false end if isElement(elementWeaponRaplace2[source]) then detachElementFromBone(elementWeaponRaplace2[source]) destroyElement(elementWeaponRaplace2[source]) elementWeaponRaplace2[source] = false end if curweap and raplaceSettings[curweap] then elementWeaponRaplace[source] = createObject(raplaceSettings[curweap].model,x,y,z) setElementData(source,"weaponSwithModel",elementWeaponRaplace[source]) attachElementToBone(elementWeaponRaplace[source],source,12,0,0,0,180,90,180) if raplaceSettings[curweap].twohand then elementWeaponRaplace2[source] = createObject(raplaceSettings[curweap].model,x,y,z) attachElementToBone(elementWeaponRaplace2[source],source,11,0,0.05,0,180,100,0) end end end addEventHandler ( "onPlayerWeaponSwitch", getRootElement(), weaponReplace ) weaponModels = { ---- ["Hatchet Of God"] = { coords = {14,0.11,0,0,180,90,270}, coords2 = {14,0.11,0,0,180,90,270}, id = 4, model = 2326}, ---- }
  11. Thanks a lot!Everything works perfectly!
  12. ye,it works ,thank you so much And I just realised,is it possible that when it shows notifications (it shows just HP of bot in numbers),is it possible to show like this - "Bot hp: "here is numbers"".I mean is it possbile to show also text "bot hp:" May be like this?: triggerClientEvent(source, "add:notification", source,"bot hp:", zombieHealth, "info", true) am I right?
  13. Should I just put this in fuction without deleting anything?
  14. hey,I have script of bots zombie ; I need to show info about their hp after player hit them. I tryed to show it in chat: outputChatBox("blood "..tostring(getElementData ( zomb,'blood' ))) And it works fine,but I want to do it in notifications: triggerClientEvent(source, "add:notification", source, "..tostring(getElementData ( zomb,'blood' ))", "info",true) But it doesn't work (I have this resource turned on notifications ) Help please,how I can show bot's HP with these notifications ?
  15. Im talking about custom voice to change (with mp3 or wav or ogg)
  16. Hello everyone,I need some help. How I can do that : I need this animation to last about 10 seconds for example setPedAnimation (getLocalPlayer(),"BOMBER","BOM_Plant",nil,false,false,nil,false) How to do this?Help please.
  17. Hello boys. Is it possible to change original voices of skins to custom one?
  18. RandomRambo

    Marker

    Hello guys. Is it real to make this thing. If someone moved on marker,is it possible to not let another player move to this marker (he needs to wait SOME TIME for example). (Marker teleports player to some place btw)
  19. Idk,just nothing happens ? I just reached 2500 opexp and nothing happened.Money didn't change
×
×
  • Create New...