Jump to content

Tekken

Helpers
  • Posts

    1,413
  • Joined

  • Last visited

  • Days Won

    19

Everything posted by Tekken

  1. Tekken

    help please

    Is that your full code?
  2. Tekken

    help please

    Just after this setTimer(function()
  3. Does this have to be a vehicle component ? If not you can create an object attach it to vehicle and apply rotation to abject when vehicle moves?
  4. Ohhh ok got it wait a sec Add this to onClientPlayerDamage if weapon == 51 then triggerEvent("killDayzPlayer", localPlayer); return; end This is already in your code but you don’t have the return thing, you mai just add that after the triggerEvent
  5. Well that should work, please note that if used on client side that returns the clients computer time witch might be different from server time! A work around will be to set the game time as the real time on server side and get the game time on the client. If not you can set it as an elementData on root element and update that data every hour on server
  6. Just add the isDead element data before triggering the event, also can you send a debugscript 3 img of when a veh explode with you driving it?
  7. Tekken

    help please

    Then you should start the timer when client streams in and not before, a simple if check should do such as if isElement(getLocalPlayer()) then
  8. Tekken

    help please

    Is this in server side or client side?
  9. Tekken

    help please

    Instead of outputChatBox("#d75959[Admin AFK]:#32b3ef " .. getLocalPlayer() .. "#ffffff 5 perce AFK dutyban.", getRootElement(), 255, 255, 255, true) Use: outputChatBox("#d75959[Admin AFK]:#32b3ef " .. getPlayerName(getLocalPlayer()) .. "#ffffff 5 perce AFK dutyban.", getRootElement(), 255, 255, 255, true
  10. addEventHandler("onVehicleExplode", root, function() local occupants = getVehicleOccupants(source); for i = 0, #occupants do local player = occupants[i]; setElementData(player, "isDead", true); triggerEvent("killDayZPlayer", player); end end); server ^ This should work, if not let me know. I wrote it on phone.
  11. Model is missing in second setElementModel
  12. ? SQL should do it! However if you’re not experienced I suggest searching on community for an already made script https://community.multitheftauto.com If you still want to give it a try, we’re here to help!
  13. local value = gettheranktype(); print(tostring(value)); This is called defining a variable
  14. Hello, I’ve moved your topic to the appropriate section for best results! To fade you can decrease alpha until completely disappeared ? Also you can use this function to create some nice effects https://wiki.multitheftauto.com/wiki/InterpolateBetween
  15. onPlayerQuit has an argument quitType you can check if quitType == "Kicked" and dbExec after ?
  16. @Bean666 might want to add <oop>true</oop> to meta.xml to make sure that works
  17. Hello, I’ve moved your topic to scripting section for best results! I cannot understand your question will you please develop?
  18. Hello and welcome! Will you please edit your topic and use the code tags <> for us to better understand your code? Greetings!
  19. Hello I’ve moved your topic to appropriate section! You need to set stats with https://wiki.multitheftauto.com/SetPedStat setPedStat(player, 77, 999) setPedStat(player, 78, 999) That will make it for AK47 and M4 Do this onPlayerSpawn/Join
  20. https://wiki.multitheftauto.com/wiki/SetCameraMatrix That should do what you want, it will require some math though.
  21. Your's is INSERT INTO `logging` SET name= 0, account= ?, type= ?, type2= ?, tick= ?, action= ?, serial= ? Notice the 0 for name where should be ?
  22. Make controller = ped in dvo.load function
  23. Change this: dvo.allowedElementType = { ["ped"] = true; } with this dvo.allowedElementType = { ["player"] = true, ["ped"] = true }
  24. So you are trying to apply this only to PEDS and not PLAYERS, I'm I right ? And this is only working for you? And not for other clients?
×
×
  • Create New...