Jump to content

Simple0x47

Members
  • Posts

    1,518
  • Joined

  • Last visited

  • Days Won

    8

Everything posted by Simple0x47

  1. Mi pregunta es, para que ... lo quieres hacer en cliente.
  2. Această situație explică perfect dece comunitatea Română îi dusă dracu.
  3. This is one similar to GTA V. https://community.multitheftauto.com/index.php?p=resources&s=details&id=10497
  4. Usas un addEventHandler con onPlayerDamage para obtener la acción de atacar, ahí miras la dimensión del atacador con getElementDimension, luego compruebas si emplea el rifle francotirador comparando el weapon id del francotirador con el parametro dado por onPlayerDamage "attackerweapon", y si no es el francotirador cancelas el evento con cancelEvent. Esto es el método redactado :v function sniperKill( attacker, attackerWeapon ) local d = getElementDimension(attacker) if d == ciertaDimension then if attackerWeapon ~= 34 then cancelEvent() end end end addEventHandler("onPlayerDamage", root, sniperKill)
  5. Ways to do it: 1st. setTimer 2nd. interpolateBetween
  6. Yeah it's possible, there is a resource which makes easier this change
  7. Simple0x47

    Fugitive

    Explain better what you're looking for exactly.
  8. It's not impossible. But you'll have to make your own script with exports to make something like that
  9. Why do you need it on client side? Client Side function killSuckers() triggerServerEvent('onPlayerWantsToKillSuckas', localPlayer) end addCommandHandler('killSuckas', killSuckers) Server Side addEvent('onPlayerWantsToKillSuckas', true) function killSuckas() local suckas = getElementsByType('ped') for i = 1, #suckas do killPed(suckas[i], suckas[i]) end end addEventHandler('onPlayerWantsToKillSuckas', root, killSuckas)
  10. Try this on server side :v function killAllPlayers() local players = getElementsByType("ped") for I = 1, #players do local p = players[I] killPed( p, p ) end end addCommandHandler( "k", killAllPlayers )
  11. I'll give you a tip :v getElementsByType("ped")
  12. Va fii in Liberty City, din cel din GTA III. Pentru ca daca ar fi ala din GTA IV descarcarea ar fi mai mult de 2GB si cel mai probabil ar provoca mult lag
  13. Intenta leer de nuevo mi metodo a ver si entiendes lo que digo :v
  14. În Curând! Meniu Principal [Terminat] Sistem Gui [În construcție] Sistem mySQL [Terminat] Forum [În proces de actualizare!] (Pentru a vedea imagini-le complete: Click Dreapta asupra imagini -> Vezi imaginea *View Image*)
  15. ¡Próximamente! Menu Principal [Terminado] Interfaz del Gráfica del Usuario [En Construcción] Sistema mySQL [Terminado] Foro [En proceso de actualización] (Para ver las imagenes completas, haz lo siguiente: Click Derecho sobre la Imagen -> Ver Imagen)
  16. It occurs when you assign the Window as the Parent Gui of a button. Try to idepentize it and it should work without problems
  17. Try converting the new item to a lower quality (8 BPP).
  18. Start to make things on your own and don't steal from others one
  19. can you post some screenshots of your problem?
  20. Simple0x47

    Una pregunta

    Te pase la respuesta a tu duda y ni la usas...
  21. Simple0x47

    Una pregunta

    Podrías emplear la función que ha creado xScatta. function getElementsInDimension(theType,dimension) local elementsInDimension = { } for key, value in ipairs(getElementsByType(theType)) do if getElementDimension(value)==dimension then table.insert(elementsInDimension,value) end end return elementsInDimension end function dimensions() for I = 1, 65535 do local p = getElementsInDimension("player", I) if not p then setElementDimension(source, I) break end end end addCommandHandler("si", dimensions) Ahi tendrías una base, con falta de adaptación a lo que quieres llevar a cabo (el jugador es automaticamente dirigido a la dimensión que se encuentra libre).
×
×
  • Create New...