Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 12/06/20 in all areas

  1. Thisdp's DirectX Graphical User Interface System ( MTASA 2D+3D DxLIB ) This dxlib provide dx gui functions and events to make it easier to use and alternative to change the style more flexibly. Features: 1. Update Check(DGS will notice you if there is a higher version, and you can choose to ignore it or disable it in the config file) Update Command: "updatedgs" 2. Dx GUI Types: Basic: Window Edit Box Button Grid List Image Scroll Bar Scroll Pane Text Label Tab Panel Detect Area Radio Button Combo Box Check Box Memo 3D Interface 3D Text Browser Switch Button Selector Plugin: Media Browser Color Picker Mask Remote Image QRCode Blur Box Rounded Rectangle Nine Slice Scaling Object Preview Support Canvas Scroll Pane's 3D Effect 3. Edit/Memo rewrite ( You can no longer find the problems in dgs, the problems which exist in cegui) 4. Detect Area is efficient when checking whether your cursor is in a complicated shape. 5. Debug Mode , Command: "debugdgs" 6. You can apply shader to the dxgui ( Compatible with some resources like Objec tPreview ). 7. Include CMD, Command: "dgscmd" ( For more help, please input "help" in the CMD ) 8. Memo/Edit rewritten. 9. Object Oriented Programming Class. 10. Render Target Failure Check ( Warns when there's no enough video memory to create render target ). 11. DGS resembles cegui, you can find the similar feeling when scripting with dgs. 12. 48-hour-response service, your suggestions and bug report will be dealt with in 48 hours ( or less, like 12 hours ? ) 13. Custom Style system 14. Built-in shader plugin 15. More properties 16. Built in multi-language support 17. Simple GUI To DGS (G2D) Notice:Do not close your server or stop the script when it is updating. Wiki: https://wiki.multitheftauto.com/wiki/Dgs ( Still Working In Process ) Auto Completion For N++ (Thanks To Ahmed Ly): http://www.mediafire.com/file/m6dm7815d5dihax/Lua.zip Discord Server: https://discord.gg/QEs8q6W Download DGS : https://github.com/thisdp/dgs Notice: Need acl rights to call fetchRemote/getPlayerIP. If you want to sell your script which involves DGS, please exclude DGS from your price. HurtWorld Backpack Panel(Example) DGS Network Monitor(Built-in)
    1 point
  2. السلام عليكم ورحمة الله وبركاته اليوم حابب اقولكم اني بفتح سيرفر وشغال علي السيرفر لي 3 شهور المهم قررت افتح السيرفر بكرا الساعة 7 بتوقيت مصر , والساعة 8 بتوقيت السعودية تنوروني كلكم ان شاء الله
    1 point
  3. Buenas! La solución para este problema, es obtener la dimensión y el interior del jugador y compararla con la del marker. Un breve ejemplo: playerMarker = createMarker(1601, 1212, 12.434, "cylinder", 15, 10, 244, 23, 2) setElementDimension(playerMarker, 43) setElementInterior(playerMarker, 1) addEventHandler("onMarkerHit", playerMarker, function(hitElement, matchingDimension) if getElementDimension(source) == getElementDimension(hitElement) && getElementInterior(source) == getElementDimension(hitElement) then outputChatBox("Estás dentro del marker.", hitElement, 0, 255, 0) end end) Sí que es cierto que en principio, debería de valer simplemente comparando la dimensión del jugador, y no el interior (esto es hilar más fino, nada más). Así, podemos hacerlo sólo comparando la dimensión del jugador respecto del marker, a través del 'matchingDimension' que nos llega. playerMarker = createMarker(1601, 1212, 12.434, "cylinder", 15, 10, 244, 23, 2) setElementDimension(playerMarker, 43) setElementInterior(playerMarker, 1) addEventHandler("onMarkerHit", playerMarker, function(hitElement, matchingDimension) if matchingDimension == true then outputChatBox("Estás dentro del marker.", hitElement, 0, 255, 0) end end) Lo que no va a funcionar nunca, o al menos como esperamos, es esto: playerMarker = createMarker(1601, 1212, 12.434, "cylinder", 15, 10, 244, 23, 2) setElementDimension(playerMarker, 43) setElementInterior(playerMarker, 1) addEventHandler("onMarkerHit", playerMarker, function(hitElement, matchingDimension) if getElementDimension(playerMarker) == 43 && getElementInterior(playerMarker) == 1 then -- Error, comparamos los datos del marker, pero no los del jugador. outputChatBox("Estás dentro del marker.", hitElement, 0, 255, 0) end end) ¿Por qué? Porque cuando un player que esté en la dimensión 50 pase por el marker, el 'getElementDimension(playerMarker)' va a devolver 43, que es donde está creado en teoría el marker, y no el 50 que es donde está el player. Así, le dirá al player que está dentro del marker, cuando en realidad no debería de estarlo. Saludos.
    1 point
  4. Você pode proteger seus scripts restringindo o funcionamento deles para que somente o IP que você definir possa executar ele. Obtenha o IP do servidor com GetServerConfigSetting
    1 point
  5. Ao trancar/destrancar o veículo da um setElementData para indicar o status e quando alguém entrar no veículo e ele estiver trancado, da TP no player pra fora do veículo, usando algo mais ou menos assim: x, y, z = getElementPosition(veiculo) e getElementPosition(player, x + 2, y + 2, z) Também da pra fazer algo mais ou menos assim: (é bom que não precisa dar TP no player porque ele nem vai ter tempo de subir na moto e se for um server de RP deixa mais realista). function carLock() if getVehicleType(source) == Bike then if getElementData(source, "trancado") == true then cancelEvent() end end end addEventHandler("onVehicleStartEnter", root, carLock)
    1 point
  6. Utiliza este , funciona correctamente : ------------------------- -- Criado por #Dr.zika -- -- Editado Por #Ennzo -- -- Editado Por #AaroN ------------------------- Drzika = {} function CreateVehicle (source) account = getPlayerAccount(source) accname = getAccountName(account) if( accname == "jose" ) then -- Ejemplo "Jose" es el nombre de la cuenta que tiene permitido usar el comando. if getElementData (source, "Pegou", true) then outputChatBox ('#FF7300Aguarde #ffffff1 #FF7300minuto.',source,255,255,255,true) return end if isElement(Drzika[source]) then destroyElement (Drzika[source]) Drzika[source] = nil end local x,y,z = getElementPosition (source) local Cars = 461 Drzika[source] = createVehicle (Cars,x,y,z) warpPedIntoVehicle (source,Drzika[source]) setElementData (source, "Pegou",true) setTimer (setElementData, 10000, 1, source, "Pegou", false) end end addCommandHandler ("get", CreateVehicle) -- Comando function DestroyVeiculo () destroyElement (Drzika[source]) end addEventHandler ("onPlayerLogout", root, DestroyVeiculo) addEventHandler ("onPlayerQuit", root, DestroyVeiculo) addEventHandler ("onPlayerWasted", root, DestroyVeiculo)
    1 point
  7. Всем привет. Совсем недавно скончался наш хороший друг, он участвовал во многих проектах в таких как: IV:MP и многих других. Также он был создателем AMX для MTA, который позволял запускать Pawn скрипты в MTA. О самой смерти передала его девушка: Давайте все вместе почтем память. Таких людей как он единицы. Он был хорошим, добрым, жизнерадостным человеком. Светлая память!
    0 points
×
×
  • Create New...