Jump to content

MACIEKW89

Members
  • Content Count

    117
  • Joined

  • Last visited

Community Reputation

0 Neutral

About MACIEKW89

  • Rank
    Sucka

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. MACIEKW89

    hi

    No, you can't. Try on server side with onPlayerClick event https://wiki.multitheftauto.com/wiki/OnPlayerClick .
  2. Hi, Try with that : function fanFunction() bindKey ( "lshift","down", function () local vehicle = getPedOccupiedVehicle(localPlayer) local sx,sy,sz = getElementVelocity ( vehicle ) setElementVelocity( vehicle ,sx, sy, sz+0.5 ) end) end addEventHandler("bindme",fanFunction)
  3. Hi, Try with that : local sirenSound function startSiren() sirenSound = playSound3D("siren.mp3", 2097.00, -1629.59, 18.79, true) setSoundVolume(sirenSound,100) end addCommandHandler("start", startSiren) function stopSiren() stopSound(sirenSound) end addCommandHandler("stop", stopSiren) Or try with that : addCommandHandler("start", function() local sirenSound = playSound3D("siren.mp3", 2097.00, -1629.59, 18.79, true) setSoundVolume(sirenSound,100) addCommandHandler("stop", function() stopSound(sirenSound) end)
  4. @spoty, why? He can name custom functions as he want.
  5. It will be somethink like that : addEventHandler("onPlayerLogin", root, function() local accName = getAccountName(getPlayerAccount(source)) if not accName then return end if isObjectInACLGroup("user."..accName, aclGetGroup("Admin")) then outputChatBox(getPlayerName(source).." has logged in as Admin!", root, 255, 255, 255, true) elseif isObjectInACLGroup("user."..accName, aclGetGroup("Moderator")) then outputChatBox(getPlayerName(source).." has logged in as Moderator!", root, 255, 255, 255, true) end end) And sorry for bad english ;b
  6. Try: function player_Wasted ( ammo, attacker, weapon, bodypart ) if attacker then if attacker==source then triggerClientEvent(source,"startRespawnShow",source,source,0) giveDeath(source) setkdr(source) else giveKill(attacker) setkdr(attacker) triggerClientEvent(source,"startRespawnShow",source,attacker,weapon) giveDeath(source) setkdr(source) setCameraTarget(source,attacker) end else triggerClientEvent(source,"startRespawnShow",sou
  7. Give us some code. Then we can try to help you.
  8. local screenW, screenH = guiGetScreenSize() addEventHandler("onClientResourceStart", resourceRoot, function() ventana = guiCreateWindow((screenW - 456) / 2, (screenH - 307) / 2, 456, 307, ".-Tienda Zenbeit-.", false) guiWindowSetSizable(ventana, false) botonvida = guiCreateButton(9, 22, 97, 21, "Vida [100]", false, ventana) botonarmadura = guiCreateButton(9, 53, 97, 21, "Armadura [100]", false, ventana) botonminigun = guiCreateButton(349, 25, 97, 18, "Minigun [100]", false, ventana) botonbazooka = guiCreateButton(349, 56, 97, 18, "Bazooka [10]", false, ventan
  9. Hi, Try with that: addEventHandler("onPlayerLogin", root, function() local accName = getAccountName(getPlayerAccount(source)) if not accName then return end if isObjectInACLGroup("user."..accName, aclGetGroup("Admin")) then outputChatBox(getPlayerName(source).." has logged in as Admin!", root, 255, 255, 255, true) end end)
  10. Hi, Try that code: local sW, sH = guiGetScreenSize() local dir = "img.png" --Your image directory addEventHandler("onClientRender", root, function() local i_w = 72 --Your image size (width) local i_h = 60 --Your image size (height) local i_ratio = i_w / i_h local iscale_w = 1700 / sW i_w = i_w / iscale_w i_h = i_w / i_ratio for i, v in ipairs(getElementsByType("marker")) do local x, y, z = getElementPosition(v) local cx, cy, cz = getCameraMatrix() if isLineOfSightClear(cx, cy, cz, x, y, z, false, false, false, false, fa
  11. Hi, Try that: local screenW, screenH = guiGetScreenSize() function tekst() dxDrawText("blablabla", (screenW * 0.0516) - 1, (screenH * 0.5130) - 1, (screenW * 0.3094) - 1, (screenH * 0.6130) - 1, tocolor(0, 0, 0, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("blablabla", (screenW * 0.0516) + 1, (screenH * 0.5130) - 1, (screenW * 0.3094) + 1, (screenH * 0.6130) - 1, tocolor(0, 0, 0, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("blablabla", (screenW * 0.0516) - 1, (scree
  12. Number 2 : meta.xml : <meta> <info author="Maciej 'MACIEKW89' Wituszyński" type="script" version="1.0"/> <script src="c.lua" type="client"/> <script src="s.lua" type="server"/> </meta> c.lua : addEventHandler("onClientPlayerDamage",root, function() if getElementData(source,"godmode") then cancelEvent() end end) addEventHandler("onClientPlayerStealthKill",localPlayer, function (targetPlayer) if getElementData(targetPlayer,"godmode") then cancelEvent() end end) s.lua :
×
×
  • Create New...