Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 04/05/21 in Posts

  1. It might just be a missing vertex color export feature with Kam's script. You would have to use Goldfish's scripts or The Hero's plugin for exporting lighting correctly
    1 point
  2. For Kam's script, when exporting you need to select VCol and deselect Nor.
    1 point
  3. Você pode usar o evento onElementModelChange. Caso o ID seja 200, use a função toggleControl no jogador, usando a propriedade "sprint" e definindo-o como false. Lembre-se de reverter caso não seja a skin 200. Recomendo criar uma tabela com os IDs.
    1 point
  4. De nada. Agradeço a oferta, mas no momento não.
    1 point
  5. Resuelvan sus problemas en privado, no hay necesidad de que el resto del foro tenga que aguantar sus problemas. Tema cerrado.
    1 point
  6. Si no quisieses buscar "líos y mierdas" no harías este tema en primer lugar, pero bueno. En este caso no estoy muy de acuerdo con lo que Shiro hace, pero si te metes en la boca del lobo es normal que asome las orejas...
    1 point
  7. 1.2v Download: Link removed Changelog: 1.2v Fixed Admin System Fixed Some Bugs Features: Jobs Unique Location Admin Commands Extra Admin Commands Roleplay Help Menu Area Restriction For Police Resource Area 51 Arrest Car Shop Boat Shop Airport Shop Factions Maps: Fort Carson Map Shops Garages Screenshots: Credits To Shodown Creator (Manish)
    1 point
  8. here's simple camera moving: local camera = {} local currentCameraView = 2 local cameraView = {} cameraView[1] = 5 cameraView[2] = 10 cameraView[3] = 15 cameraView[4] = 20 camera.dist = cameraView[currentCameraView] camera.speed = 10 camera.x = math.rad(60) camera.y = math.rad(60) camera.z = math.rad(15) camera.maxZ = math.rad(89) camera.minZ = math.rad(-45) addEventHandler("onClientPreRender", getRootElement(), function() local x, y, z = getElementPosition(localPlayer) z = z + 0.2 local camDist = camera.dist local cosZ = math.cos(camera.z) local camX = x + math.cos(camera.x)*camDist*cosZ local camY = y + math.sin(camera.y)*camDist*cosZ local camZ = z + math.sin(camera.z)*camDist --[[ local hit, hitX, hitY, hitZ = processLineOfSight(x, y, z, camX, camY, camZ, true, false, false, true, false, false, false, false) if(hit)then camDist = getDistanceBetweenPoints3D(x, y, z, hitX, hitY, hitZ) camDist = camDist - 2 if(camDist > camera.maxDist)then camDist = camera.maxDist end if(camDist < camera.minDist)then camDist = camera.minDist end end camX = x + math.cos(camera.x)*camDist*cosZ camY = y + math.sin(camera.y)*camDist*cosZ camZ = z + math.sin(camera.z)*camDist --]] setCameraMatrix(camX, camY, camZ, x, y, z) end) addEventHandler("onClientCursorMove", getRootElement(), function(curX, curY, absX, absY) local diffX = curX - 0.5 local diffY = curY - 0.5 local camX = camera.x - diffX*camera.speed local camY = camera.y - diffX*camera.speed local camZ = camera.z + (diffY*camera.speed)/math.pi if(camZ > camera.maxZ)then camZ = camera.maxZ end if(camZ < camera.minZ)then camZ = camera.minZ end camera.x = camX camera.y = camY camera.z = camZ end) bindKey("change_camera", "down", function() currentCameraView = currentCameraView - 1 if(currentCameraView < 1)then currentCameraView = #cameraView end camera.dist = cameraView[currentCameraView] end)
    1 point
  9. Hello and welcome to the Forums! To disable the respawn function in "play" gamemode ( resources/[gamemodes]/play ) you will have to edit the broph.lua file. You can simply comment/remove the 5 lines where the even handler is added. addEventHandler("onPlayerWasted", root, function() --setTimer(spawn, 1800, 1, source) -- you can comment it like this to prevent it from running end ) Also in your function respawnPlayerAfterDied the arguments in the spawnPlayer function are wrong. Please check the wiki documentation. It should be something like this: function respawnPlayerAfterDied(p) local x,y,z = getElementPosition(p) -- changed from "thePlayer" to "p" spawnPlayer(p, x, y, z) -- corrected the arguments fadeCamera(p, true, 5) outputChatBox("Tedavi oldun, hadi yine iyisin.",p,255,0,0) end
    0 points
×
×
  • Create New...