Jump to content

iMr.3a[Z]eF

Members
  • Posts

    862
  • Joined

  • Last visited

Everything posted by iMr.3a[Z]eF

  1. Ok, try to delete at the line 399 in the freeroam file Delete this: addEventHandler('onPlayerChat', g_Root, function(msg, type) if type == 0 then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox(getPlayerName(source) .. '#FFFFFF: #FFFFFF' .. msg:gsub('#%x%x%x%x%x%x', ''), g_Root, r, g, b, true) outputServerLog( "CHAT: " .. getPlayerName(source) .. ": " .. msg ) end end )
  2. Rules are rules, if you tried we will do this for you.
  3. Oh ok do as Castillo said, post the freeroam the file "fr_server.lua"
  4. I'm mean if you merge the codes with freeroam maybe it will works
  5. Why not set the code at the freeroam?
  6. "onClientMouseEnter" dxSetPixelColor-- alpha argument to 0.75 "onClientMouseLeavr" dxSetPixelColor-- alpha argument to 1.00
  7. As you said, when you are connecting by Computer post what you tried.
  8. Why no't canceling instead ban?
  9. An example for table local table = { [1] = 123,4567890, [2] = 0987,654321 } function a() for i,v in ipairs (position) do if isPlayerDead(source) then spawnPlayer(source, math.random([1],[2])) end end end addEventHandler("onPlayerWasted", getRootElement(), a)
  10. the LUA in-game isn't need any experiences in scripting, i swear it's easy in this life Press me
  11. I know what to you want this function do in that codes.
  12. Try if the first one is rotates try the second one function createTheGate () myGate = createObject ( 971 ,-3258.5517578125, 751.85546875, 116.78617095947, 0, 0, 9 ) end addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createTheGate ) function openMyGate ( ) moveObject ( myGate, 3000, -3258.5517578125, 751.85546875, 90.78617095947 ) setTimer ( movingMyGateBack, 5000, 1 ) end addCommandHandler("swat",openMyGate) function movingMyGateBack () moveObject ( myGate, 3000, -3258.5517578125, 751.85546875, 116.78617095947 ) end the second one function createTheGate () myGate = createObject ( 971 ,-3258.5517578125, 751.85546875, 116.78617095947 ) end addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createTheGate ) function openMyGate ( ) moveObject ( myGate, 3000, -3258.5517578125, 751.85546875, 90.78617095947 ) setTimer ( movingMyGateBack, 5000, 1 ) end addCommandHandler("swat",openMyGate) function movingMyGateBack () moveObject ( myGate, 3000, -3258.5517578125, 751.85546875, 116.78617095947 ) end
  13. And why you want to use it for.
  14. You mean like this? addEventHandler("onPlayerLogout", getRootElement(), function() if isPlayerDead(source) then cancelEvent() end end )
  15. So, that's mean you solved the problem. And all thanks to TAPL too.
  16. No, open the gate and close it after 5 seconds in one command.
  17. He don't want to close the gate by command, he wants to close by timer Try this function createTheGate () myGate = createObject ( 971 ,-3258.5517578125, 751.85546875, 116.78617095947, 0, 0, 90 ) end addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createTheGate ) function openMyGate ( ) moveObject ( myGate, 3000, -3258.5517578125, 751.85546875, 90.78617095947, 0, 0, 90 ) setTimer ( moveObject ( myGate, 3000, -3258.5517578125, 751.85546875, 116.78617095947, 0, 0, 90 ), 5000, 1 ) end addCommandHandler("swat",openMyGate)
  18. It shall work, what is debug says?
  19. For dx use onClientRender
  20. WTF??????????? what did you just did.
×
×
  • Create New...