Jump to content

Fox261098

Members
  • Posts

    83
  • Joined

  • Last visited

Recent Profile Visitors

759 profile views

Fox261098's Achievements

Transformer

Transformer (11/54)

0

Reputation

  1. Im new at scripting so can u help me put it in my script ?
  2. Hello i made a gate the gate is in lv but i can open it in ls so how to make so it opens just when u in front of the gate local gate = createObject(10828,1838.3000488281,908.90002441406,22.10000038147,0,0,90); local thegang = "TheGhosts"; addCommandHandler("ogate", function(player) local gang = getElementData(player, "gang") or false; if (gang and gang == thegang) then moveObject(gate, 4000,1838.3000488281,941.79998779297,22.10000038147); end end); addCommandHandler("cgate", function(player) local gang = getElementData(player, "gang") or false; if (gang and gang == thegang) then moveObject(gate, 4000,1838.3000488281,908.90002441406,22.10000038147); end end);
  3. local gate = createObject ( 980,214,1875.5,13.800000190735,0,0,0) function opengate(player) moveObject ( gate, 4000, 204,1876.0999755859,13.800000190735) end addCommandHandler ("ogate", opengate) function closegate (player) moveObject ( gate, 4000, 214,1875.5,13.800000190735) end addCommandHandler("cgate", closegate ) now its better
  4. Hello i a gate script but donk know how to make it for a group on dayz i uses regular dayz gang sistem Code local gate = createObject ( 980,214,1875.5,13.800000190735,0,0,0) function opengate(player) moveObject ( gate, 4000, 204,1876.0999755859,13.800000190735) end addCommandHandler ("ogate", opengate) function closegate (player) moveObject ( gate, 4000, 214,1875.5,13.800000190735) end addCommandHandler("cgate", closegate )
  5. Hello i made a script when somone kills a other player he will get random money but i made it on tablet adn i cant test it can somone test it for me rmoney = { [1]=1210, [2]=6325, [3]=3629, [4]=2958, [5]=591, } money = math.random (1,5) function player_Wasted ( ammo, attacker, weapon, bodypart ) if ( attacker and attacker ~= source ) then givePlayerMoney ( attacker, rmoney[money] ) end end addEventHandler ( "onPlayerWasted", getRootElement(), player_Wasted )
  6. Hmm, now its better ty
  7. i didnt understand you so well can u explain a bit better
  8. Fox261098

    [HELP] :v

    he said help me he didnt say can somone make a script for me -.-
  9. Hello, i made an gate for admin base and i want on top of the gate to be text i was trying something but no luck can somone help me with that... local gate = createObject ( 980,214,1875.5,13.800000190735,0,0,0) function opengate(player) local accName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then moveObject ( gate, 4000, 204,1876.0999755859,13.800000190735) else outputChatBox ("You are not admin! Go away from admin base") my3dtext = dxDraw3DText ("Admin Base",213.76439,1875.05225,17.64063,2,"default",255,255,255,10) end end addCommandHandler ("ogate", opengate) function closegate (player) local accName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then moveObject ( gate, 4000, 214,1875.5,13.800000190735) else outputChatBox ("You are not admin! Go away from admin base") end end addCommandHandler("cgate", closegate )
  10. It works! But tabPanel is on top. Just start editing coordinates and you will find the right one
  11. Fox261098

    help me

    how can i add rights to this script so just admins can open it local gate = createObject ( 980,214,1875.5,13.800000190735,0,0,0) function opengate(player) moveObject ( gate, 4000, 204,1876.0999755859,13.800000190735) end addCommandHandler ("ogate", opengate) function closegate (player) moveObject ( gate, 4000, 214,1875.5,13.800000190735) end addCommandHandler("cgate", closegate )
  12. Fox261098

    Help

    nothing in debugscript 3
  13. Fox261098

    help

    now the marker is not showing up
  14. Fox261098

    help

    i made tp script but when i go to marker nothing happens marker = createMarker (177.48828125, 1453.826171875, 10.591223716736,"cylinder",1.5,255,0,111,255) function teleport (hitElement) local accName = getAccountName ( getPlayerAccount (player) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then setElementPosition (hitElement,182.4287109375, 1451.6865234375, 33.012893676758) else outputChatBox ("#123456Fuck off!You are not admin.") end addEventHandler ("onMarkerHit",marker,hitElement)
×
×
  • Create New...