Jump to content

manve1

Retired Staff
  • Posts

    1,283
  • Joined

  • Last visited

Everything posted by manve1

  1. tells us the problem if it didn't work
  2. local doormarker = createMarker ( -3743.6, -3022.52, 38, "cylinder", 10, 255, 0, 255, 255 ) local door = createObject( 971, -3743.3999023438, -3022.6999511719, 44.700000762939, 0, 0, 270 ) function moveIt( thePlayer, matchingDimension ) if isElementWithinMarker(thePlayer, doormarker) then moveObject ( door, 3743.3999023438, -3022.6999511719, 50 ) end end addEventHandler('onMarkerHit', doormarker, moveIt)
  3. go to your server ACL.xml and add a line in admin group section something like this:
  4. Yes, but its easier to create a vehicle with lines and turn them into a polygon then making a vehicle from a polygon. Tho from a few polygons you have to attach them and then link with textures or else you can see your vehicle pure white or grey
  5. You are right as far as i know, because mesh is to create polygons easier. I tried learning about dummy points, but found nothing tho.
  6. You have to give the rights to make new accounts to the login/register panel so you need to add it to your ACL
  7. sorry, bit drunk ... as it is new year guys so: Happy New Year!
  8. server.lua function Nemesisbymanawydan ( ) baz = createObject ( 360, -1935.5480957031, 665.44055175781, 48, 0, 0, 0 ) nemesi = exports [ "slothBot" ]:spawnBot ( -1935.5480957031, 665.44055175781, 47.0, 90, math.random ( 300, 303 ), 0, 0, Nemesis, 38, "hunting", true ) setElementModel ( nemesi, 107 ) outputChatBox ("#9E0000Nemesis: #0D9905STARS",getRootElement(), 255, 255, 255, true ) local myBlip = (createBlipAttachedTo ( nemesi, 0 )) attachElements ( baz, nemesi, 0.2, 0.1, 0.5, 0, 90, 0 ) triggerClientEvent ( "nsound", root ) triggerClientEvent ( "nemesismissel", root ) healthStop = setTimer( function() setElementHealth ( nemesi, 200 ) end, 1100, 0) if ( getElementHealth( nemesis ) == 0 ) and ( isTimer(healthStop) ) then killTimer( healthStop ) end end addEventHandler("onResourceStart", resourceRoot, Nemesisbymanawydan) addEvent("onBotWasted",true) addEventHandler("onBotWasted",getRootElement(), function (killer) if (source == nemesi) then givePlayerMoney(killer,math.random(4000,6000)) -- 4000, 6000 money for kill nemesis-- outputChatBox ( getPlayerName ( killer ) .. " #081DBFkilled Nemesis, congratulations",getRootElement(), 255, 255, 255, true ) setTimer(Nemesisbymanawydan, 1000, 1) -- 60000 time for nemesis respawn in milliseconds-- end end) try
  9. bargate = createObject (968,-1572.1999511719,658.90002441406,7.0999999046326,0,90,90) damarker = createMarker (-1572.1999511719,658.90002441406,7.0999999046326, "cylinder", 9.5, 255, 0, 0, 0 ) isMoving = false function gatefunc( hitPlayer ) if ( getElementType ( hitPlayer ) == "player" and isPedInVehicle( hitPlayer ) ) then local veh = getElementModel ( getPedOccupiedVehicle ( hitPlayer ) ) if ( veh == 597 ) and not isMoving then isMoving = true moveObject( bargate, 1500, -1572.1999511719,658.90002441406,7.0999999046326, 0, 0,90 ) end end end addEventHandler( "onMarkerHit", damarker, gatefunc ) function gatefuncclose( hitPlayer ) if ( getElementType( hitPlayer ) == "player" and isPedInVehicle( hitPlayer ) ) then local veh = getElementModel( getPedOccupiedVehicle( hitPlayer ) ) if ( veh == 597 ) and isMoving then isMoving = false moveObject( bargate, 1500, -1572.1999511719,658.90002441406,7.0999999046326, 0, 90, 90 ) end end end addEventHandler( "onMarkerLeave", damarker, gatefuncclose ) try this.
  10. Thanx, i will re-post when i have a try of putting them both together
  11. Sorry, i missed that part while looking at the script.
  12. yes. but define the 'hitPlayer'
  13. use: getPedOccupiedVehicle to check if a person is in a vehicle when he hits the marker
  14. manve1

    Help !

    Actually that's rude, and with Med you can get any object you need ... even 50p used/uses it to find any object he needs
  15. local bg_up = guiCreateStaticImage ( 0, 0.01, 1, 0.15, "menu/images/up.png", true ) bindKey("F7", "down", function () if panel then showCursor ( false ) panel = false else Animation.createAndPlay(bg_up, Animation.presets.guiMove( 0, 0.1 )) showCursor ( true ) panel = true end end ) try this
  16. manve1

    help needed

    This is because you can't find TXD files on map editor. only DFF use Med v0.32 beta to find any object/txd you need and any information about it.
  17. manve1

    Help !

    Each object has different file names like in TXD and DFF ... thats your problem, although you can use: Med v0.32 beta to find any object you need and any information like names of textures ect ...
  18. How could i make a vehicle move smoothly without a person/ped inside of it?
  19. 1. This is lithuanian board not english 2. You wrote it in ENGLISH language NOT Lithuanian
  20. manve1

    Question

    k, thanx
  21. manve1

    help needed

    txd = engineLoadTXD('cs_lod.txd') engineImportTXD( txd, [The objects ID which you want texture to be changed for] )
  22. manve1

    Question

    Z on the setCameraMatrix?
  23. manve1

    Help

    randomBind = function(player) if (getPlayerTeam(player) == getTeamFromName('team1') then unbindKey(player,"F4", "both") elseif (getPlayerTeam(player) == getTeamFromName('team2') then bindKey(player,"F4", "both") end randomBind() end randomBind() something like this?
  24. manve1

    Help

    and whats wrong with them?
  25. u should use something like this: if ( getPlayerTeam( player ) == getTeamFromName('Military') ) or ( getPlayerTeam == getTeamFromName('Police') ) then --code end NOTE: This is only an example.
×
×
  • Create New...