Jump to content

neves768

Members
  • Posts

    93
  • Joined

  • Last visited

Everything posted by neves768

  1. Here is the solution: Only one file by server-side -- CRIATE BY *SpoC^ for TWD -- local PraiaProtegidax = createMarker (191, -1797, 4, "cylinder", 25, 255,0,0,0) function Protect1(source,dimens) local veh = getPedOccupiedVehicle(source) outputChatBox('#00bfff* Entrou na Área de Proteção: #ffffffSeu veículo ficou indestrutível!',source,255,255,255,true) setElementData(veh,"godmode",true) toggleControl(source,"fire",true) toggleControl(source,"aim_weapon",true) end addEventHandler("onMarkerHit",PraiaProtegidax,Protect1) function godmodeveh() godvar = getElementData(source,"godmode") if godvar and godvar == true then setVehicleDamageProof(source,true) setElementHealth(source,1000) cancelEvent() end end addEventHandler("onPlayerDamage",getRootElement(),godmodeveh) function Protect21(source,dimens) local veh = getPedOccupiedVehicle(source) outputChatBox ('#00bfff* Saiu da Área de Proteção: #ffffffSeu veículo não esta mais indestrutível!',source,255,255,255,true) setVehicleDamageProof (veh,false) setElementData(veh,"godmode",false) toggleControl(source, "fire", true) toggleControl(source, "aim_weapon", true) end addEventHandler("onMarkerLeave",PraiaProtegidax,Protect21)
  2. Na verdade eu só esqueci o cancelEvent que o pedro colocou ali, sei que não é permitido cancelar e o correto é usar removePedFromVehicle ^^
  3. O que o Banex quis dizer em código: Obs.: o elemento criado é para uma referência futura, se necessário. -- Server-side function pacoca(theVehicle,seat,jacked) if getElementHealth(theVehicle) <= 400 then setVehicleEngineState(theVehicle, false) setElementData(theVehicle,"estanaFAIXA",true) setVehicleDamageProof(theVehicle, true) end end addEventHandler("onPlayerVehicleEnter",getRootElement(),pacoca) function deliciadeoco() if getElementHealth(source) <= 400 then setElementData(source,"estanaFAIXA",true) setVehicleDamageProof(source, true) cancelEvent() end end addEventHandler("onVehicleDamage",getRootElement(),deliciadeoco) @EDIT Coloquei a função de ficar indestrutível
  4. use only Example --------------------- very nice job, man I tried to add a resize parameter, but i need to upload it again (this time at tinypic).
  5. Hi, much people known the addon_give as the main option to give items to players, but i'm here to post my new resource to MTA:DayZ which allows you to give, remove or edit items from players. Printscreen: What's new: -You can see what a player have in inventory -You also can see player details like blood, MAX_Slots and more! -Allows you to give, remove or edit items of players -Friendly UI * Type /abrirf or press F4 to open the panel(Configurable command in config.lua)[/left] Download: https://www.mediafire.com/?iz2fuvbs2o7834xpassword: neves768.com Originally posted on a MTA:DayZ Brazilian forum named mta[z] in 5 Feb 2015 - 16:24 If you have modified items, please open the file config.lua.
  6. #Universal Chat was disabled! Needs Rights for ban and kick Informations: [ltr]The resource Nevesy Admin Panel (or Nevesy Advanced Admin Panel [N.A.A.S]) is an administration panel to the MTA:DayZ, complete and with a user-friendly interface. The panel come with new features and a new method to the administration of your server, features like: Custom Vehicle System which allow you to spawn a new vehicle without configuration of MTA:DayZ.[/ltr] NapalmExtreme video(it's in portuguese language, but you can see the tutorial to install in the end[You need that installation if you will use the Custom Vehicle System]): Installing: See the swf demo: http://neves768.com/mtasa/howto.swf.html File: vehicle_spawns.lua Explaining: look(search) for:[/center] setVehiclesFuelPerMinute, onPlayerEnterDayzVehicle And change with: if not getElementData(veh,"newveh") == true then end Download: http://www.mediafire.com/download/0cxph ... 6/naas.rar To get admin: 1- /add admin account (MTA:DayZ Admin system) 2- /pegar or /reconnect 3- /naas or F10 -- to open Printscreens of the newer version(All, except Universal Chat tab): http://prntscr.com/4jqsxo http://prntscr.com/4jqt55 http://prntscr.com/4jqtc9 http://prntscr.com/4jqttq http://prntscr.com/4jqtwc http://prntscr.com/4jqu64 http://prntscr.com/4jqu85[/b][/center] This is an older resource, originally posted at a MTA:DayZ BRAZILIAN Forum community named mta[z](Date: 18 Jun 2014 - 13:44). Latest version: v1.8.1.0 -> 19 Set 2014 - 10:14. It's compiled and you need some caution with vehicle spawner system, default save system of MTA:DayZ can't save and i lost the source-code of that version to make a new save system(i will remake it). If someone decompile it, please send to me in PM(i really lost the uncompiled code). This feature needs to be in Admin ACL Group, because this needs: function.banPlayer and function.kickPlayer... You can also create a new ACL group with permissions specified
  7. #ON Apoiado! Precisa fazer uma 'Community' de resources BR também ^^ #OFF @Adissonboy11 O fórum puxado para MTA:DayZ Brasil não gira em torno dos admins, posto resources lá e nunca vi algo de errado com a administração.
  8. i think he wants a "camera zoom" like DayZ:SA when press the right mouse button.
  9. No. MTA's hardcoded whitelist supports wildcard domains, but allowing wildcards to be requested is a security risk. We might reduce the security restrictions later a bit, but it's usually better to start with too many than with insufficient security restrictions. People doing intensive testing. My ToDo list is atm nearly empty. I'm back to the post. You see the mouse position? When you click at a position with your mouse the action will be a little up
  10. Needs subdomain too. Okay! You can add something like *.domain.ext/* ? TY for the fast reply and solution Now i understand the needs of the system. What's missing for the release? Optimization?
  11. 1- http://prntscr.com/64nc2r 2- restart woovies_browser on console 3- Press 'b' in-game and oppear a window, but with blank page. Youtube and default websites from webswitcher resource are working normally.
  12. I tested it too. http://twitch.tv/ return a blank page, i can't close the window and i can't change the URL(woovies_browser). I'm using MTA:SA 1.5 from https://nightly.multitheftauto.com/mtasa-1.5-full ... 150205.exe
  13. Your 2D Code from https://wiki.multitheftauto.com/wiki/User:Jusonex works? Newest updated code from github is working now?
  14. A "fake signal" is not possible as the GUI window is created by MTA. With my tests, i can't access nyan.cat: I allow, but the page don't load. I tested with your scripts examples.
  15. Jusonex, allow any websites like: own websites, Google, Bing and others. Freedom!
  16. (Code by Justus). function saveClothes() local account = getPlayerAccount(source) if ( not isGuestAccount(account) ) and ( getElementModel(source) == 0 ) then local texture = {} local model = {} for i=0, 17, 1 do local clothesTexture, clothesModel = getPedClothes(source, i) if ( clothesTexture ~= false ) then table.insert(texture, clothesTexture) table.insert(model, clothesModel) else table.insert(texture, " ") table.insert(model, " ") end end local allTextures = table.concat(texture, ",") local allModels = table.concat(model, ",") outputChatBox(allModels) setAccountData(account, "Clothessaver:Texture", allTextures) setAccountData(account, "Clothessaver:Model", allModels) texture = {} model = {} end end addEventHandler("onPlayerQuit", getRootElement(), saveClothes) addEventHandler("onClientResourceStop", getRootElement(), saveClothes) When i execute a command to save: outputChatBox(allModels) return only 4 values, but don't save the 4 values and others clothes types. How to solve? Resolved
  17. Save when player disconnect/quit from server or when your server stop! It's the best method... Timers can delay or flood MySQL with requests.
  18. "The (light) nightly installer from https://nightly.multitheftauto.com/ is already containing CEF (even though the required data files are missing yet)." - Jusonex Work without the missing files?
  19. Ty and sorry for creating an other topic before searching.
  20. Please help-me! The bone_attach resource don't work with CJ skin on MTA:DayZ. I need some help before start creating a new(if have a solution, i don't need to script a new)... Solution?
  21. Thank you for reply! Sorry for the simple question. I will try to change objects models.
  22. I can't create Object with ID of CJ Cloth. Code: function createpick(thePlayer) x,y,z = getElementPosition(thePlayer) createObject(30537,x,y,z) end addCommandHandler("c1",createpick) Error: [2015-01-23 14:06:16] WARNING: testcj\server.lua:32: Bad usage @ 'createObject' [invalid model id] How to fix?
  23. Desculpe por reviver o tópico(melhor do que criar outro igual), mas se algum modelador estiver disponível: Também preciso.
  24. Updated(Second link) @Woovie Preventing txd, can not prevent wallhack hack... If someone develop a wallhack without mods method, can be more harder to kick the hack out.
  25. I am thinking about detection method for wallhack, this feature is not released.
×
×
  • Create New...