Jump to content

Fox261098

Members
  • Posts

    83
  • Joined

  • Last visited

Everything posted by Fox261098

  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)
  15. Fox261098

    Help

    ill try to fix my own your is too buggy do debugscript 3 in mta and u will see
  16. Fox261098

    Help

    when i press any button nothing happens
  17. Fox261098

    Help

    I was trying too much but didnt fix it
  18. Fox261098

    Help

    I made vip panel but when i type /vip nothing happens here is code : GUIEditor = {button = {},window = {},edit = {}} Show = {} addEventHandler("onClientResourceStart", resourceRoot, function () GUIEditor.window[1] = guiCreateWindow(185, 5, 382, 600, "-x[ Vip Panel #By LuckyDude ]x-", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF19FBFF") GUIEditor.button[1] = guiCreateButton(17, 41, 165, 49, "Health +100", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFD0101") GUIEditor.button[2] = guiCreateButton(201, 41, 165, 49, "Armor +100", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF007577") GUIEditor.button[3] = guiCreateButton(18, 120, 348, 45, "Vip Car", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FF16EE10") GUIEditor.button[4] = guiCreateButton(18, 175, 348, 45, "Fly With Car", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFDCE916") GUIEditor.button[5] = guiCreateButton(18, 230, 348, 45, "Drive On Water", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FF0F0AF4") GUIEditor.button[6] = guiCreateButton(18, 285, 348, 45, "Invisible Skin", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFC928DC") GUIEditor.button[7] = guiCreateButton(18, 340, 348, 45, "Invisible Car", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[7], "NormalTextColour", "FF3493A4") GUIEditor.button[8] = guiCreateButton(18, 395, 348, 45, "Vip Weapon (Minigun)", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[8], "NormalTextColour", "FF68785F") GUIEditor.button[9] = guiCreateButton(18, 450, 348, 45, "Vip Skin", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[9], "NormalTextColour", "FF63B771") GUIEditor.button[10] = guiCreateButton(18, 505, 348, 45, "High Jump", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[10], "NormalTextColour", "FF4D2454") GUIEditor.label[1] = guiCreateLabel(18, 565, 235, 30, "Vip Panel by: LuckyDude", false, GUIEditor.window[1]) addCommandHandler ("skinpanel",gui) guiSetVisible (GUIEditor.window[1], false) --- Events addEventHandler("onClientGUIClick", GUIEditor.button[1], setCrysis, false) addEventHandler("onClientGUIClick", GUIEditor.button[2], regenArmor , false) addEventHandler("onClientGUIClick", GUIEditor.button[3], vipcar, false) addEventHandler("onClientGUIClick", GUIEditor.button[4], fly, false) addEventHandler("onClientGUIClick", GUIEditor.button[5], hover, false) addEventHandler("onClientGUIClick", GUIEditor.button[6], toggleInvis, false) addEventHandler("onClientGUIClick", GUIEditor.button[7], invisibility, false) addEventHandler("onClientGUIClick", GUIEditor.button[8], vipweap, false) addEventHandler("onClientGUIClick", GUIEditor.button[9], setvip, false) addEventHandler("onClientGUIClick", GUIEditor.button[10], highjump, false) end) --- function regenArmor() for _,player in ipairs(getElementsByType("player")) do local arm = getPedArmor(player); if arm < 100 then local nuarm = arm + 10; if nuarm > 100 then nuarm = 100; end setPedArmor(player,nuarm) end function fly() if not flyEnabled then setWorldSpecialPropertyEnabled ( "aircars", true ) flyEnabled = true else setWorldSpecialPropertyEnabled ( "aircars", false ) flyEnabled = false end function hover () if not isWorldSpecialPropertyEnabled( "hovercars" ) then outputChatBox("Water drive: on ", 255, 255, 0 ) else setWorldSpecialPropertyEnabled( "hovercars", false ) end function highjump () if not isWorldSpecialPropertyEnabled( "extrajump" ) then setWorldSpecialPropertyEnabled( "extrajump", true ) else setWorldSpecialPropertyEnabled( "extrajump", false ) end function invisibility () if(getElementAlpha(source) > 200) then setElementAlpha(getPedOccupiedVehicle(source), 0) else setElementAlpha(getPedOccupiedVehicle(source), 255) end function toggleInvis () if getElementAlpha( thePlayer ) == 0 then setElementAlpha ( thePlayer, 0 ) else setElementAlpha ( thePlayer, 255 end unction setvip () screamTXD = engineLoadTXD("vip.txd") engineImportTXD(vipTXD, 25 ) screamDFF = engineLoadDFF("vip.dff") engineReplaceModel(vipDFF, 25) setElementModel(localPlayer,25) end function vipcar () local luckyBugger = getLocalPlayer() local x, y, z = getElementPosition ( luckyBugger ) createVehicle ( 411, x, y, z + 10 ) end function vipweap () giveWeapon ( source, 38, 5000 ) end --- Show.dX_ = function() Show.dx = (not Show.dx) removeEventHandler("onClientRender",root, dx) if (Show.dx) then addEventHandler("onClientRender",root, dx) end end function gui( ) guiSetVisible (GUIEditor.window[1],not guiGetVisible (GUIEditor.window[1])) showCursor (guiGetVisible (GUIEditor.window[1])) Show.dX_() end
  19. Sell???? Half of those scripts are downloaded from MTA Ccommunity or other forums ....
  20. Fox261098

    3D Text

    Hello mta i want to create aduty script for dayz but i dont know how to make 3d text on players head can somone make me that?
  21. Works fine but i made setElementModel not setPedSkin cuz it wont work with setpedskin
  22. Ok i fixed it and its opening but it doesnt change the skin
×
×
  • Create New...