Jump to content

WWW

Members
  • Posts

    49
  • Joined

  • Last visited

  • Days Won

    2

WWW last won the day on March 6

WWW had the most liked content!

1 Follower

Recent Profile Visitors

2,592 profile views

WWW's Achievements

Rat

Rat (9/54)

7

Reputation

  1. local spawn = createMarker(0, 0, 0, "cylinder", 1, 255, 255, 255, 255) addEventHandler("onMarkerHit", spawn, function(element) if getElementType(element) == "player" then if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(element)), aclGetGroup("SAMU")) then setElementModel(element, 274) end end end) addEventHandler("onMarkerHit", spawn, function(element) if getElementType(element) == "player" then if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(element)), aclGetGroup("PM")) then setElementModel(element, 280) end end end)
  2. Coloque o código abaixo em servidor: local spawn = createMarker(0, 0, 0, "cylinder", 1, 255, 255, 255, 255) addEventHandler("onMarkerHit", spawn, function(element) if getElementType(element) == "player" then if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(element)), aclGetGroup("SAMU")) then if getPedOccupiedVehicle(element) == false then local x, y, z = getElementPosition(element) local v = createVehicle(551, x, y, z) warpPedIntoVehicle(element, v) end end end end) addEventHandler("onMarkerHit", spawn, function(element) if getElementType(element) == "player" then if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(element)), aclGetGroup("PM")) then if getPedOccupiedVehicle(element) == false then local x, y, z = getElementPosition(element) local v = createVehicle(551, x, y, z) warpPedIntoVehicle(element, v) end end end end)
  3. You should use client instead of source in the addEventHandler.
  4. Cliente: addEventHandler("onClientPlayerDamage", root, function() if bodypart == 9 then setElementHealth(source, getElementHealth(source) - 30) end end Meta: <meta> <script src="client.lua" type="client" /> </meta>
  5. Crie um recurso com o código abaixo em cliente, desative o recurso headshot também. addEventHandler("onClientPlayerDamage", root, function(attacker, damage_causing, bodypart, loss) if bodypart == 9 then setElementHealth(source, getElementHealth(source) - 30) end end
  6. addEventHandler("onClientPlayerDamage", root, function(attacker, damage_causing, bodypart, loss) if bodypart == 9 then cancelEvent() setElementHealth(source, getElementHealth(source) - 30) end end
  7. Client: addEventHandler("onClientChatMessage", root, function() if getElementData(source, "chat") == "local" then if source ~= getLocalPlayer() then cancelEvent() end end end) Server: setElementData(player, "chat", "local") setElementData(player, "chat", "everyone")
  8. You have to select the message, then cancel the event.
  9. We have this event on client. https://wiki.multitheftauto.com/wiki/OnClientChatMessage
  10. You should reinstall the server, I use this link below. https://nightly.multitheftauto.com/mtasa_x64-1.6-rc-22410-20240301.exe
  11. Uma solução é desativar o console. addEventHandler("onClientKey", root, function(button, pressOrRelease) if button == "F8" then cancelEvent() end end
  12. Conforme comentado no tópico abaixo, não tem como desativar um comando do cliente. https://forum.multitheftauto.com/topic/73065-question/
  13. Add a larger column to the database: VARCHAR(64)
  14. if sha256(pass) == result[1]["password"] then print("Sikeres bejelentkezés!") else print("Hibás jelszó!") end
  15. WWW

    Col Shape help

    https://wiki.multitheftauto.com/wiki/CreateColCuboid
×
×
  • Create New...