Jump to content

1LoL1

Members
  • Posts

    944
  • Joined

  • Last visited

Everything posted by 1LoL1

  1. in client.lua is only info not script. Here DONE
  2. local amount = math.random(1,100)
  3. Set of true to false in all.
  4. 1LoL1

    Gate help

    function markerHitFunction(source) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)),aclGetGroup("Admin")) then if (state) then moveGate = moveObject(gateName, 3000, 411.89999389648, 2535.8000488281, 19.299999237061) else moveGate = moveObject(gateName, 3000, 412, 2533.8000488281, 19.299999237061) -- Original x, y, z coordinates end if (moveGate) then state = not state; end end end addEventHandler("onMarkerHit", markerName, markerHitFunction)
  5. 1LoL1

    Text

    Use: dxDrawText()
  6. 1LoL1

    Gate Help

    You are wrong here. Try this: local acc = getPlayerAccount(source) local playerclan = getAccountData(acc, "dayzclan")
  7. 1LoL1

    Gate Help

    Distance: getDistanceBetweenPoints3D()
  8. Download the resource and you will see that its not so easy as you think, Its more complicated. If i change i crosshairs position that will not change the shooting direction.. now my only question is: I want to set the projectiles direction to the turrets direction. Whats the problem in my script? function shootProjectile() local veh =getPedOccupiedVehicle(localPlayer) if(veh) and getVehicleModel(veh) == 601then local tx, ty = getVehicleTurretPosition (veh) createProjectile(veh, 19, tx,ty,2) endend function shootProjectile() local veh = getPedOccupiedVehicle(localPlayer) if(veh) and getVehicleModel(veh) == 601 then local tx, ty = getVehicleTurretPosition (veh) createProjectile(veh, 19, tx,ty,2) end end
  9. 1LoL1

    disable tab gui

    Try this: guiSetEnabled(tab, false)
  10. 1LoL1

    Solved..

    Solved
  11. he said "(theTeamYouWant)" he can simply rename that team as "Staff" or "Admins" and it will be only for the admins. Again i say this is for team.... not admin in acl.xml. 100% he don't want for team.. but for "Admin" in acl.xml.
  12. This is for team not admin Try this: if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)),aclGetGroup("Admin")) then
  13. giveWeapon is Server-only function.
  14. What do you want? When player dead he will add +1 deaths or When anyone dead in database will +1 deaths?
  15. Use: removeElementData
  16. wtf? this function doesn't exists. Use: getElementVelocity
  17. 1LoL1

    Chat command

    addCommandHandler("chat", function (thePlayer, ... ) if isPlayerMuted (thePlayer) then outputChatBox("You are muted!!!", thePlayer, 255, 0, 0) return end local message = table.concat ({ ... },"") for i, player in ipairs(getElementsByType("player")) do if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)),aclGetGroup("Admin")) then outputChatBox("AdminChat: "..string.gsub(getPlayerName(thePlayer), "#%x%x%x%x%x%x", "")..": ".. message, player, 255, 255, 255, true ) end end else outputChatBox("You don't have Admin Rights !!!", thePlayer, 255, 0, 0, true ) end end)
  18. 1LoL1

    Help

    Where is the problem?
  19. Post the code and wrong section.
  20. You are idiot? i already posted link.. here put in server-side this: function onResourceStart ( ) local players = getElementsByType ( "player" ) -- Store all the players in the server into a table for key, player in ipairs ( players ) do -- for all the players in the table setPlayerNametagShowing ( player, false ) -- turn off their nametag end end addEventHandler ( "onResourceStart", resourceRoot, onResourceStart ) function onPlayerJoin ( ) -- Whoever joins the server should also have their nametags deactivated setPlayerNametagShowing ( source, false ) end addEventHandler ( "onPlayerJoin", root, onPlayerJoin )
×
×
  • Create New...