Jump to content

DonOmar

Members
  • Posts

    96
  • Joined

  • Last visited

Everything posted by DonOmar

  1. I got a server from 2/3 years , this server got closed in 2017 , now someone called Zelda made a resources and used my server name to Bring players or i don't know why he wants to open a server using my server name, in 2018 i decided to open my server back and improving it , now this guy opened a local mta server from his pc and working on it , Can someone stop him ?
  2. bindKey(source,"f", "down", detach)
  3. function detach() local attachedelem = getAttachedElements ( source ) for i,v in ipairs ( attachedelem ) do detachElementFromElement(v, source) end end bindKey("f", "down", detach)
  4. only change the positions and the size of the line.
  5. +1 @SuperCroz , using colshapes easier. check this topic you will find a resource to make col shapes and you will find all the instructions you need.
  6. you can edit it from <allow_gta3_img_mods>none</allow_gta3_img_mods> in ur mtaserver.conf file. [only if u wanna prevent players who are using mods to join.] or if u wanna restore it then use engineRestoreModel(id) like what @SuperCroz said.
  7. try this: and don't forget to change positions. function line3d() dxDrawLine3D(-1196.956, -1065.557, 128.218, -1196.686, -909.289, 128.200, tocolor(255, 255, 0, 255 ), 3) end addEventHandler("onClientRender", root, line3d)
  8. DonOmar

    Wasted script

    @viktoras705 https://community.multitheftauto.com/index.php?p=resources&s=details&id=8085
  9. DonOmar

    [HELP] Save

    Only Giving more info @LopSided_
  10. DonOmar

    [HELP] Save

    this is a simple code to save : local redfirst,greenfirst,bluefirst,redsecond,greensecond,bluesecond,redthird,greenthird,bluethird,redfourth,greenfourth,bluefourth = getVehicleColor(veh, true) local color = toJSON({redfirst,greenfirst,bluefirst, redsecond,greensecond,bluesecond, redthird,greenthird,bluethird, redfourth,greenfourth,bluefourth}) and this is a code to load the color: local redfirst,greenfirst,bluefirst,redsecond,greensecond,bluesecond,redthird,greenthird,bluethird,redfourth,greenfourth,bluefourth = unpack(fromJSON(color)) setVehicleColor(veh, redfirst,greenfirst,bluefirst,redsecond,greensecond,bluesecond,redthird,greenthird,bluethird,redfourth,greenfourth,bluefourth)
  11. DonOmar

    [HELP] Save

    I don't understand you but you can use [ setAccountData ]
  12. Use DB Browser for SQLite program and edit the database with it then reupload it to your ftp.
  13. Thanks @TheMOG and Everyone tried to help me. i used SQL saving better .
  14. When i reconnected while dead i lost my weapons .
  15. You can use addEvent in the client side and triggerClientEvent in the serverside.
  16. it doesn't work. also i wanna save fix my save system.
  17. Hello there i used Account and Element data to make a weapon save system and works fine , but if someone dead and disconnected from the server His weapons will be lost. Here is the code : function onPlayerQuitWeaponSave() local playeraccount = getPlayerAccount(source) if (playeraccount) and not isGuestAccount(playeraccount) then if getElementData(source,"22") == false then local ca = 3 setAccountData(playeraccount, "cadd", ca) else if getElementData(source,"22") == true then local caa = 2 setAccountData(playeraccount, "cadd", caa) end end if getElementData(source,"24") == false then local da = 3 setAccountData ( playeraccount, "dadd", da ) else if getElementData(source,"24") == true then local daa = 2 setAccountData ( playeraccount, "dadd", daa ) end end if getElementData(source,"23") == false then local sila = 3 setAccountData ( playeraccount, "siladd", sila ) else if getElementData(source,"23") == true then local silaa = 2 setAccountData ( playeraccount, "siladd", silaa ) end end if getElementData(source,"25") == false then local sha = 3 setAccountData ( playeraccount, "shadd", sha ) else if getElementData(source,"25") == true then local shaa = 2 setAccountData ( playeraccount, "shadd", shaa ) end end if getElementData(source,"26") == false then local swa = 3 setAccountData ( playeraccount, "swadd", swa ) else if getElementData(source,"26") == true then local swaa = 2 setAccountData ( playeraccount, "swadd", swaa ) end end if getElementData(source,"27") == false then local spa = 3 setAccountData ( playeraccount, "spadd", spa ) else if getElementData(source,"27") == true then local spaa = 2 setAccountData ( playeraccount, "spadd", spaa ) end end if getElementData(source,"30") == false then local aka = 3 setAccountData ( playeraccount, "akadd", aka ) else if getElementData(source,"30") == true then local akaa = 2 setAccountData ( playeraccount, "akadd", akaa ) end end if getElementData(source,"31") == false then local ma = 3 setAccountData ( playeraccount, "madd", ma ) else if getElementData(source,"31") == true then local maa = 2 setAccountData ( playeraccount, "madd", maa ) end end if getElementData(source,"28") == false then local ua = 3 setAccountData ( playeraccount, "uadd", ua ) else if getElementData(source,"28") == true then local uaa = 2 setAccountData ( playeraccount, "uadd", uaa ) end end if getElementData(source,"32") == false then local ta = 3 setAccountData ( playeraccount, "tadd", ta ) else if getElementData(source,"32") == true then local taa = 2 setAccountData ( playeraccount, "tadd", taa ) end end if getElementData(source,"29") == false then local mpa = 3 setAccountData ( playeraccount, "mpadd", mpa ) else if getElementData(source,"29") == true then local mpaa = 2 setAccountData ( playeraccount, "mpadd", mpaa ) end end if getElementData(source,"33") == false then local ra = 3 setAccountData ( playeraccount, "radd", ra ) else if getElementData(source,"33") == true then local raa = 2 setAccountData ( playeraccount, "radd", raa ) end end if getElementData(source,"34") == false then local sna = 3 setAccountData ( playeraccount, "snadd", sna ) else if getElementData(source,"34") == true then local snaa = 2 setAccountData ( playeraccount, "snadd", snaa ) end end if getElementData(source,"38") == false then local mia = 3 setAccountData ( playeraccount, "miadd", mia ) else if getElementData(source,"38") == true then local miaa = 2 setAccountData ( playeraccount, "miadd", miaa ) end end end end addEventHandler("onPlayerQuit", getRootElement(), onPlayerQuitWeaponSave) function onPlayerLoginWeaponSave(_, playeraccount) if ( playeraccount ) then local ca = getAccountData ( playeraccount, "cadd" ) if (ca == 2 ) then setElementData (source, "22", true) end local da = getAccountData ( playeraccount, "dadd" ) if (da == 2 ) then setElementData (source, "24", true) end local sila = getAccountData ( playeraccount, "siladd" ) if (sila == 2 ) then setElementData (source, "23", true) end local sha = getAccountData ( playeraccount, "shadd" ) if (sha == 2 ) then setElementData (source, "25", true) end local swa = getAccountData ( playeraccount, "swadd" ) if (swa == 2 ) then setElementData (source, "26", true) end local spa = getAccountData ( playeraccount, "spadd" ) if (spa == 2 ) then setElementData (source, "27", true) end local aka = getAccountData ( playeraccount, "akadd" ) if (aka == 2 ) then setElementData (source, "30", true) end local ma = getAccountData ( playeraccount, "madd" ) if (ma == 2 ) then setElementData (source, "31", true) end local ua = getAccountData ( playeraccount, "uadd" ) if (ua == 2 ) then setElementData (source, "28", true) end local ta = getAccountData ( playeraccount, "tadd" ) if (ta == 2 ) then setElementData (source, "32", true) end local mpa = getAccountData ( playeraccount, "mpadd" ) if (mpa == 2 ) then setElementData (source, "29", true) end local ra = getAccountData ( playeraccount, "radd" ) if (ra == 2 ) then setElementData (source, "33", true) end local sna = getAccountData ( playeraccount, "snadd" ) if (sna == 2 ) then setElementData (source, "34", true) end local mia = getAccountData ( playeraccount, "miadd" ) if (mia == 2 ) then setElementData (source, "38", true) end end end addEventHandler("onPlayerLogin", getRootElement(), onPlayerLoginWeaponSave) i tried to use addEventHandler("onPlayerWasted", getRootElement(), onPlayerQuitWeaponSave) but it didnt work with me .
  18. setWeaponProperty (weaponID/weaponName, weaponSkill, property, theValue )
  19. I'am asking if anyone have resource to replace CJ clothes texture?
  20. Done , then anyone have it ?
  21. i'am asking now if anyone have House robbery resource or no ?
  22. When i'am trying to join my server or any server in mta i can't i mean Getting much Freeze in downloading maps and got a freeze in a point. then got a problem : Disconnected : Connection to the server was lost ! its with all mta servers.
×
×
  • Create New...