uniunicorn

Members
  • Content Count

    15
  • Joined

  • Last visited

Community Reputation

0 Neutral

About uniunicorn

  • Rank
    Square

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. You mean what? I didn't understand, can you edit my code ?
  2. Code: function checkCarJack(thePlayer, seat, jacked) veh = getPedOccupiedVehicleSeat(jacked) if jacked and veh == 0 then cancelEvent() outputChatBox("[!] #f0f0f0CarJack atmanız yasaklanmıştır!", 255, 0, 0,player, true) end end addEventHandler("onVehicleStartEnter", getRootElement(), checkCarJack) Console Error: Bad Argument @ 'getPedOccupiedVehicleSeat' [Expected ped at argument 1, got boolean] How can i solve this? Can you help me?
  3. For blocking players stealing items from car inventories "Sana ait olmayan araçtan eşya alamazsın" == "You can't get things from a car that doesn't belong to you"
  4. local function canAccessElement( player, element ) if getElementData(player, "dead") == 1 then return false end if getElementType( element ) == "vehicle" then local aracid,oyuncuid = tonumber(getElementData( element, "owner" )),tonumber(getElementData( player, "dbid" )) local aracfact,oyuncufact = tonumber(getElementData(element,"faction")) or false,tonumber(getElementData(player,"faction")) or false if aracid ~= oyuncuid then if aracfact and oyuncufact then if aracfact ~= oyuncufact then outputChatBox("#ee0000[!]#f1f1f1 Sana ait olmayan araçtan eşya alamazsın.", player, 255,0,0, true) return false end else outputChatBox("#ee0000[!]#f1f1f1 Sana ait olmayan araçtan eşya alamazsın.", player, 255,0,0, true) return false end end Guys this function doesn't work on sometimes, the players can steal items on other player's cars. Help me plz. Guys this function doesn't work on sometimes, the players can steal items on other player's cars. Help me plz.
  5. My Crawling script doesn't work, if time is end player still crawling. I want to make player anim "fall" for 60 seconds when he shot and fall. Where is that bug!! emekleyenler = {} function isEventHandlerAdded( sEventName, pElementAttachedTo, func ) if type( sEventName ) == 'string' and isElement( pElementAttachedTo ) and type( func ) == 'function' then local aAttachedFunctions = getEventHandlers( sEventName, pElementAttachedTo ) if type( aAttachedFunctions ) == 'table' and #aAttachedFunctions > 0 then for i, v in ipairs( aAttachedFunctions ) do if v == func then return true end end end end return false end function change()--animasyonu sıfırlama setPedAnimationProgress(localPlayer, "car_crawloutrhs", 0) end function degistir() if getElementData(localPlayer, "Emekleme") == true then local x, y, z, x1, y1, z1 = getCameraMatrix ( localPlayer ) local rx, ry, rz = findRotation(x, y, x1, y1) setElementRotation(localPlayer,0,0,rx+90) end end function render()--rotasyon setPedAnimationProgress(localPlayer, "car_crawloutrhs", 0) end function findRotation( x1, y1, x2, y2 ) local t = -math.deg( math.atan2( x2 - x1, y2 - y1 ) ) return t < 0 and t + 360 or t end function render2() -- local cam = getCamera() -- local x,y,z = getElementRotation(cam) -- setElementRotation(localPlayer,0,0,z+90) local x, y, z, x1, y1, z1 = getCameraMatrix ( localPlayer ) local rx, ry, rz = findRotation(x, y, x1, y1) setElementRotation(localPlayer,0,0,rx+90) end keys = { ["w"] = "forwards", } addEventHandler("onClientKey", root, function(key,press) if keys[key] then if emekleyenler[localPlayer] then if getKeyState(key) then setElementFrozen(localPlayer, false) setPedControlState(localPlayer, keys[key], true) if not isTimer(timer) and not isTimer(timertwo) then setPedAnimation(localPlayer, "ped", "car_crawloutrhs") timer = setTimer(change,600,0) --timertwo = setTimer(degistir,150,0) end if not isTimer(timertwo) then timertwo = setTimer(degistir,150,0) end removeEventHandler("onClientRender",root,render,true,"low") --removeEventHandler("onClientRender",root,render2,true,"low") else for i,v in pairs(keys) do if getKeyState(i) then return end end setPedControlState(localPlayer, keys[key], false) setElementFrozen(localPlayer, true) if isTimer(timer) then killTimer(timer) end if isTimer(timertwo) then killTimer(timertwo) end setPedAnimation(localPlayer, "ped", "car_crawloutrhs") --if isEventHandlerAdded( 'onClientRender', root, render) then return end addEventHandler("onClientRender",root,render,true,"low") --if isEventHandlerAdded( 'onClientRender', root, render2) then return end --addEventHandler("onClientRender",root,render2,true,"low") end end end end) function changeCheck(oyuncu) if isElement(oyuncu) and getPedControlState(oyuncu, "forwards") then --outputChatBox(getPlayerName(oyuncu)) setPedAnimationProgress(oyuncu, "car_crawloutrhs", 0) end end local timer2 = {} function emekletRender() local x,y,z = getElementPosition(localPlayer) for i,oyuncu in pairs(emekleyenler) do if isElement(oyuncu) then --local px,py,pz = getElementPosition(oyuncu) --if getDistanceBetweenPoints3D(x,y,z,px,py,pz) <= 30 then local blok, anim = getPedAnimation(oyuncu) if blok ~= "ped" and anim ~= "car_crawloutrhs" then setPedAnimation(oyuncu, "ped", "car_crawloutrhs") end if getPedControlState(oyuncu, "forwards") then if not isTimer(timer2[oyuncu]) then if oyuncu ~= localPlayer then timer2[oyuncu] = setTimer(changeCheck,600,0,oyuncu) end end else if isTimer(timer2[oyuncu]) then killTimer(timer2[oyuncu]) end setPedAnimationProgress(oyuncu, "car_crawloutrhs", 0) end --end end end end addEventHandler("onClientRender",root,emekletRender) addEvent("Emekleme:Emeklet", true) addEventHandler("Emekleme:Emeklet", root, function(deger) if deger == "Ekle" then emekleyenler[source] = source setElementData(source, "Emekleme",true) setPedAnimation(source, "ped", "car_crawloutrhs") setElementFrozen(source, true) --addEventHandler("onClientRender",root,render,true,"low") elseif deger == "Kaldır" then if emekleyenler[source] then emekleyenler[source] = nil end removeEventHandler("onClientRender",root,render,true,"low") removeEventHandler("onClientRender",root,render2,true,"low") setElementFrozen(source, false) setElementData(source, "Emekleme",nil) setPedAnimation(source, "", "") end end) addEventHandler( "onClientElementStreamIn", root, function() if getElementType(source) == "player" and emekleyenler[source] then setPedAnimation(source, "ped", "car_crawloutrhs") end end) triggerServerEvent("Emekleme:OyuncuGirdi", localPlayer)
  6. My Server got a little bit FPS problem.. I did a cpu stat script and.. The Anticheat script gotta %40 CPU!!! But i want to take it out, so i tried it. My server was down for the next start. So if Anticheat Script don't work the other scripts and systems crashes. Help me how can i solve the FPS problem? And what you gonna offer for optimizing my server's FPS. Thank you guys..
  7. I have a safezone script in my server but i want to use tazer or nightsticks for cops and Faction ID = 1 . So i got no idea how can i do this guys? Thanks you so much.
  8. Thank you so much! But the outputchatbox doesn't work!
  9. Can you help me? My server needs hood infos guys please.
  10. I didn't got that, so can you place it to code?
  11. Hi guys my Info-Point system is killing CPU! So i think i can use other things for hood infos but i didn't find that. Can you help me? I need give to player warn if he enter to the Hood Zone, thanks.
  12. Hi guys, i edited a little code for anti car-jack script. This script works but i want to block the car-jack while there's a driver. Please Help Me! function checkCarJack(thePlayer, seat, jacked) if (thePlayer == getLocalPlayer()) and (seat == 0) then cancelEvent() outputChatBox("[!] #f0f0f0CarJack atmanız yasaklanmıştır!", 255, 0, 0, true) end end addEventHandler("onClientVehicleStartEnter", getRootElement(), checkCarJack)
  13. Kalite ile kurulan sesli Roleplay Sunucusu. Siz de emeklerinizin karşılığını alamadığınız, yakında kapanacak olan ve adaletsiz sunucularda rol yapmaktan sıkılmadınız mı? Unicorn Roleplay size kaliteli bir rol ortamı, olgun bir oyuncu ortalaması ve adaletli rol imkanı sunuyor. Sunucumuza gelerek sesli veya yazılı olarak roller çevirebilir, gelen yeniliklerle eğlenebilirsin. Sen de emeklerinin karşılığını alacağın bir sunucuya bekleniyorsun. Discord: https://discord.gg/QVJPWTG IP: 185.120.5.237