Jump to content

Tekken

Helpers
  • Posts

    1,423
  • Joined

  • Last visited

  • Days Won

    19

Everything posted by Tekken

  1. he didn't have any cod. @NoHope Wath you want to do is only for DECOMPILED version of DayZ and you can chage them in login.lua or spawn.lua.
  2. Thank you it worked ! #SOLVED Your welcome!
  3. Try this: function returnAdminBan(thePlayer) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup("Admin")) then cancelEvent() end end addEventHandler("onPlayerBan", getRootElement(), returnAdminBan)
  4. You need to setElementData to "parent" of vehicle. function vehicleInstantRepair(thePlayer) local playerVehicle = getPedOccupiedVehicle(thePlayer) local vehID = getElementModel(playerVehicle) if playerVehicle then if vehID == 422 then vehFuel = 80 engine = 1 tires = 4 parts = 1 elseif vehID == 470 then vehFuel = 100 engine = 1 tires = 4 parts = 1 elseif vehID == 468 then vehFuel = 30 engine = 1 tires = 2 parts = 1 elseif vehID == 433 then vehFuel = 140 engine = 1 tires = 6 parts = 1 elseif vehID == 437 then vehFuel = 140 engine = 1 tires = 6 parts = 1 elseif vehID == 453 then vehFuel = 60 engine = 1 tires = 0 parts = 1 elseif vehID == 509 then vehFuel = 0 engine = 0 tires = 0 parts = 0 elseif vehID == 487 then vehFuel = 60 engine = 1 tires = 0 parts = 1 elseif vehID == 497 then vehFuel = 60 engine = 1 tires = 0 parts = 1 else return end do setElementData((getElementData(playerVehicle, "parent")), "Tire_inVehicle", tonumber(tires)) setElementData((getElementData(playerVehicle, "parent")), "Engine_inVehicle", tonumber(engine)) setElementData((getElementData(playerVehicle, "parent")), "Parts_inVehicle", tonumber(parts)) setElementData((getElementData(playerVehicle, "parent")), "fuel", tonumber(vehFuel)) end end end addCommandHandler("fill", vehicleInstantRepair)
  5. Server function setPlayerDutyStats(thePlayer) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup("Admin")) then triggerClientEvent(thePlayer, "onPlayerOnDuty", thePlayer) end end addCommandHandler("aduty", setPlayerDutyStats) Client function startgm() if not getElementData(getLocalPlayer(), "onduty") then gmtimer = setTimer(gmforad, 2000, 0) outputChatBox ("You're now on-duty",255, 0, 0,true) setElementData(getLocalPlayer(), "onduty", true) else killTimer (gmtimer) setElementData(getLocalPlayer(),"blood", 12000) outputChatBox ("You're now off-duty!",255, 0, 0,true) setElementData(getLocalPlayer(), "onduty", false) end end addEvent("onPlayerOnDuty", true) addEventHandler("onPlayerOnDuty", root, startgm) function gmforad() if getElementData(getLocalPlayer(),"logedin") then setElementData(getLocalPlayer(),"blood", 500000) setElementData(getLocalPlayer(),"bleeding", 0) setElementData(getLocalPlayer(),"cold", false) setElementData(getLocalPlayer(),"temperature", 37) setElementData(getLocalPlayer(),"pain", false) setElementData(getLocalPlayer(),"brokenbone", false) setElementData(getLocalPlayer(),"thirst", 100) setElementData(getLocalPlayer(),"food", 100) end end
  6. Tekken

    Putin ajutor

    Ce modules ? Skype-ul meu e 'mihayy51'
  7. Tekken

    Putin ajutor

    Ai incercat si nu merge ? Daca nu ai incercat atunci incearca asa: muti baza de date, resursele, acl si mtaserver.conf. Cam asta e tot.
  8. Look here : function setPlayerOnDuty( player ) local accName = getAccountName(getPlayerAccount(player)) if isObjectInACLGroup ( "user." ..accName, aclGetGroup ( "Admin") ) then local duty = getElementData(player, "duty") or 0 if duty == 0 then outputChatBox("Admin "..getPlayerName(player).." Is Now OnDuty!",getRootElement(),255,0,0) outputChatBox("",getRootElement(),255,0,0) outputServerLog("Admin "..getPlayerName(player).." Is Now OnDuty!") setElementData( player, "blood", 999999999999999 ) setElementData( player, "duty", 1 ) else outputChatBox("Admin "..getPlayerName(player).." Is No Longer OnDuty!",getRootElement(),255,0,0) outputChatBox("",getRootElement(),255,0,0) outputServerLog("Admin "..getPlayerName(player).." Is No Longer OnDuty!") setElementData( player, "blood", 12000 ) setElementData( player, "duty", 0 ) end end end addCommandHandler("aduty",setPlayerOnDuty)
  9. Tekken

    Panel?

    Exactly and delete line where it say bindKey("p","down", "admin")
  10. Tekken

    Panel?

    https://wiki.multitheftauto.com/
  11. function heckACL() if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("Admin")) then --Here the code end end
  12. Still not working.. They walk but not sprint. Is there any way to force them sprint ?
  13. I used this for making them walk : function setPedZombiWalk() for i,ped in ipairs(getElementsByType("ped")) do local zombi = getElementData(ped,"zombie") if zombi then setPedWalkingStyle(ped, 120) end end end and this for sprint and didn't work: function setPedZombiSprint() for i,ped in ipairs(getElementsByType("ped")) do local zombi = getElementData(ped,"zombie") if zombi then setPedControlState(ped, "sprint", true) end end end Walking style is OLDMAN and walk ok but didn't sprint
  14. Yes but will this work with diferent walking style ?
  15. Tekken

    Panel?

    you can unbind 'p' and change the CommandHandler from "admin" to "support"
  16. Wath about this ? function takeWantedLvl(player) if getAccountName(getPlayerAccount(player)) == "Ville" then local money = getPlayerMoney(player) if (money >= 1000) then outputChatBox("* Police: You are clear now.", player, 0,255,0) takePlayerMoney(player, 1000) setPlayerWantedLevel(player, 0) elseif (money < 1000) then outputChatBox("* Police: You don't have enough money!", player, 255, 0, 0) end end end addCommandHandler("wantedoff", takeWantedLvl)
  17. try now: addCommandHandler("wantedoff", function() if getAccountName(getPlayerAccount(source)) == "Ville" then local money = getPlayerMoney(source) if (money >= 1000) then outputChatBox("* Police: You are clear now.", source, 0,255,0) takePlayerMoney(source, 1000) setPlayerWantedLevel(source, 0) elseif (money < 1000) then outputChatBox("* Police: You don't have enough money!", source, 255, 0, 0) return end end end )
  18. Look, but it have some bogs on MTA 1.4 with animation viewtopic.php?f=108&t=67901
  19. Tekken

    Safe Zone

    Ai nevoie de aceste functii: createColRectangle toggleControl "onElementColShapeHit" "onElementColShapeLeave"
×
×
  • Create New...