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. I asked you a question.
  9. Why no't canceling instead ban?
  10. 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)
  11. the LUA in-game isn't need any experiences in scripting, i swear it's easy in this life Press me
  12. I know what to you want this function do in that codes.
  13. 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
  14. And why you want to use it for.
  15. You mean like this? addEventHandler("onPlayerLogout", getRootElement(), function() if isPlayerDead(source) then cancelEvent() end end )
  16. So, that's mean you solved the problem. And all thanks to TAPL too.
  17. No, open the gate and close it after 5 seconds in one command.
  18. 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)
  19. Why you posted it here then?
  20. It shall work, what is debug says?
  21. For dx use onClientRender
  22. What the hell is this
  23. oh an optional arguments
  24. WTF??????????? what did you just did.
×
×
  • Create New...