Jump to content

mint3d

Members
  • Posts

    425
  • Joined

  • Last visited

Everything posted by mint3d

  1. You're Welcome
  2. This makes a blip at x y z and the blip id createBlip ( x , y , z , 37 ) https://wiki.multitheftauto.com/wiki/CreateBlip
  3. mint3d

    Sleeping :D

    We will help you attempt it first
  4. mint3d

    Help Please

    Its for a login screen but when i hit login it still keeps moving and i have to wait for it to stop moving
  5. mint3d

    Help Please

    Ok i found a bug with the script it keeps moving when i click login how to stop that?
  6. whats your skype?
  7. mint3d

    Help Please

    Works great thanks i know you love GUI stuff maybe you can help me more if i need it
  8. mint3d

    Help Please

    local sm = {} sm.moov = 0 sm.object1, sm.object2 = nil, nil local function removeCamHandler () if(sm.moov == 1) then sm.moov = 0 removeEventHandler ( "onClientPreRender", getRootElement(), camRender ) end end local function camRender () local x1, y1, z1 = getElementPosition ( sm.object1 ) local x2, y2, z2 = getElementPosition ( sm.object2 ) setCameraMatrix ( x1, y1, z1, x2, y2, z2 ) end function smoothMoveCamera ( 1055.4643554688, -2122.0646972656, 83.747100830078, 1054.6900634766, -2121.4748535156, 83.517967224121, 1480, -1773, 108, 1480, -1688, 13, 200 ) if(sm.moov == 1) then return false end sm.object1 = createObject ( 1337, x1, y1, z1 ) sm.object2 = createObject ( 1337, x1t, y1t, z1t ) setElementAlpha ( sm.object1, 0 ) setElementAlpha ( sm.object2, 0 ) setObjectScale(sm.object1, 0.01) setObjectScale(sm.object2, 0.01) moveObject ( sm.object1, time, x2, y2, z2, 0, 0, 0, "InOutQuad" ) moveObject ( sm.object2, time, x2t, y2t, z2t, 0, 0, 0, "InOutQuad" ) addEventHandler ( "onClientPreRender", getRootElement(), camRender ) sm.moov = 1 setTimer ( removeCamHandler, time, 1 ) setTimer ( destroyElement, time, 1, sm.object1 ) setTimer ( destroyElement, time, 1, sm.object2 ) return true end Tried this
  9. mint3d

    Help Please

    I tried it i copied it all and replaces the x1 and stuff didnt work
  10. mint3d

    A Little help

    I have seen a system called rpmsystem it changes car sounds but has lots more know how they done it? https://community.multitheftauto.com/index.php?p= ... ls&id=7466
  11. mint3d

    A Little help

    Is it possible to replace the car engine sounds for everyone in the game if so how and what functions. Thanks.
  12. mint3d

    Help Please

    Nope thats the problem i don't know how
  13. Ye but hes using freeroam with play so he can just change the timer on the play setting to how many mins he wants but ye anyways
  14. mint3d

    Help Please

    *BUMP*
  15. mint3d

    Help Please

    I know its not but thats what i have already so ye i need help using the other one i Tried this function () setElementDimension ( getLocalPlayer(), 1 ) setElementInterior( getLocalPlayer(), 0 ) -- setCameraMatrix( 1055.4643554688, -2122.0646972656, 83.747100830078, 1054.6900634766, -2121.4748535156, 83.517967224121) smoothMoveCamera ( 1055.4643554688, -2122.0646972656, 83.747100830078, 1054.6900634766, -2121.4748535156, 83.517967224121, 1480, -1773, 108, 1480, -1688, 13, 200 ) setCloudsEnabled(false) fadeCamera(true) guiSetInputEnabled(true) clearChat() LoginScreen_openLoginScreen() end
  16. Its better than your attempt
  17. mint3d

    Help Please

    I couldn't get it to work but heres the script function () setElementDimension ( getLocalPlayer(), 1 ) setElementInterior( getLocalPlayer(), 0 ) setCameraMatrix( 1055.4643554688, -2122.0646972656, 83.747100830078, 1054.6900634766, -2121.4748535156, 83.517967224121) setCloudsEnabled(false) fadeCamera(true) guiSetInputEnabled(true) clearChat() LoginScreen_openLoginScreen() end );
  18. mint3d

    Help Please

    Ok Solid your good with this stuff so i made a login but i want the camera to move whiles it on the login screen how is this possible?
  19. mint3d

    help

    Ye i think he means that
  20. addEventHandler("onPlayerWasted", root, function() setTimer(spawn, 5000, 1, source) end ) You can add this to the image script if you wish or make it as a new file its client sided it should work timers in mil seconds or you can use this local spawnpoint addEventHandler("onResourceStart", resourceRoot, function() spawnpoint = getRandomSpawnPoint() resetMapInfo() for i,player in ipairs(getElementsByType("player")) do spawn(player) end end ) function spawn(player) if not isElement(player) then return end if get("spawnreset") == "onSpawn" then spawnpoint = getRandomSpawnPoint() end exports.spawnmanager:spawnPlayerAtSpawnpoint(player,spawnpoint,false) repeat until setElementModel(player,math.random(312)) fadeCamera(player, true) setCameraTarget(player, player) showChat(player, true) end function getRandomSpawnPoint () local spawnpoints = getElementsByType("spawnpoint") return spawnpoints[math.random(1,#spawnpoints)] end addEventHandler("onPlayerJoin", root, function() spawn(source) end ) addEventHandler("onPlayerQuit",root, function () if getPlayerCount() == 1 and get("spawnreset") == "onServerEmpty" then spawnpoint = getRandomSpawnPoint() end end ) addEventHandler("onPlayerWasted", root, function() setTimer(spawn, 5000, 1, source) end )
  21. I believe he is using freeroam so he is using default spawns for them
  22. Ye i will try tomorrow its pretty late its 4 am where i am
  23. Try this for respawn timer it set to 4 seconds addEventHandler( "onPlayerWasted", getRootElement( ), function() setTimer( spawnPlayer, 4000, 1 ) end ) If that doesn't work do this addEventHandler( "onPlayerWasted", getLocalPlayer( ), function() setTimer( spawnPlayer, 4000, 1 ) end )
  24. function showClientImage() guiCreateStaticImage( 0, 500, 800, 150, "image.png", false ) end addEventHandler ( "onClientPlayerWasted", getLocalPlayer(), showClientImage) function showClientImage() guiSetVisible (showClientImage, false) end local seconds = 50 setTimer ( showClientImage, ( seconds * 100 ), 1 ) Don't know if this will work try this and ill try make the other one you wanted
  25. What Spawns? You want to make something to respawn all players?
×
×
  • Create New...