Jump to content

manawydan

Members
  • Posts

    980
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by manawydan

  1. try function menuShow () visableornot = guiGetVisible (DXgui.fereastra[1]) if (visableornot == true) then guiSetVisible (DXgui.fereastra[1], false) showCursor (false) end if (visableornot == false) then guiSetVisible (DXgui.fereastra[1], true) showCursor (true) end end addEvent("SeeGui",true) addEventHandler("SeeGui",root,menuShow) -- server function open(P) triggerClientEvent(P,"SeeGui"P) end addCommandHandler("gui",open)
  2. voce fez login exatamente com o mesmo nick do acl? era pra ter funcionado
  3. voce tinha salvo o acl correto? tente fecha o server e abrir denovo
  4. o que a mensagen diz? ( quando vc tenta faze registro e login)
  5. foi fez registro e login? ( /register seunick pw:senha ) ( /login seunick pw:senha)
  6. Abra o acl e adicione isso : depois abra seu server, faça registro e login com o nick que voce coloco no seu acl
  7. manawydan

    Hiding GUI's

    i think guiSetVisible better
  8. manawydan

    god mode

    only example, try -- server local GodCommand = "god" -- command function SetGodAdmin(P) if isGuestAccount(getPlayerAccount(P)) then return outputChatBox("Only Adm can use",P) end -- guest if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(P)),aclGetGroup( "Admin" )) then -- is admin? local Is = getElementData(P,"GodAdmin") -- get data if Is then -- if data is true removeElementData(P,"GodAdmin") -- lets remove outputChatBox("God mod off",P) else -- else lets activate setElementData(P,"GodAdmin",true) outputChatBox("God mod on",P) end end end addCommandHandler(GodCommand,SetGodAdmin) -- client addEventHandler("onClientPlayerDamage",getLocalPlayer(), function() if getElementData(source,"GodAdmin") then cancelEvent() end end )
  9. https://community.multitheftauto.com/in ... ls&id=1129
  10. Você poderia fala sobre o server ou colocar imagens, acho que chamaria mais a atenção dos jogadores. Boa sorte!
  11. function ItemG(thePlayer,ID,dop) outputChatBox("LOL") exports [ "heroinventory" ]:addPlayerItem(thePlayer,ID,1) destroyElement(source) end addEventHandler("onPlayerPickupItem",root,ItemG) no work.
  12. tente isso: addEventHandler('onPlayerQuit', g_Root, function(reason) if (reason == "Quit") then local M = "Vontade Propria" outputChatBox('#9370DB[#008B8BINFO#9370DB]#FFD700: ' .. '#abcdec[#ffff00' .. M .. '#abcdec]#00FF00 ' .. getPlayerName(source) .. ' #FFFFFFSaiu do Servidor!', getRootElement(), 255, 0, 0, true) elseif (reason == "Timed out") then local M = "Erro conexao" outputChatBox('#9370DB[#008B8BINFO#9370DB]#FFD700: ' .. '#abcdec[#ffff00' .. M .. '#abcdec]#00FF00 ' .. getPlayerName(source) .. ' #FFFFFFSaiu do Servidor!', getRootElement(), 255, 0, 0, true) end end )
  13. try no tested --server function setMusicForPlayer(source, command, trackNumber) --Load player vehicle local playerVehicle = getPedOccupiedVehicle(source); --Is player driving a car now? if playerVehicle then --Is player entering a track number. if (trackNumber ~= '') then local TN = tonumber(trackNumber) --Is value of track number being a natural number and >= 1 and < 3. if (TN >= 1 and TN < 3) then --Get the coordinates of player vehicle local pvX, pvY, pvZ = getElementPosition(playerVehicle) Sound = triggerClientEvent(root,"StartSounds",source,TN,pvX,pvY,pvZ) --Check for successfull load. if (Sound) then attachElements(Sound,source,0,0,0) outputChatBox("Track #"..TN.." is now playing in a music player.", source, 255, 0, 0, true) else outputChatBox("Error loading tracks", source, 255, 0, 0, true) end else outputChatBox("Track number enters incorrect!", source, 255, 0, 0, true) end else outputChatBox("You didn't enter a track number!", source, 255, 0, 0, true) end else outputChatBox("You don't turn a music player if you are not in the vehicle!", source, 255, 0, 0, true) end end addCommandHandler("sm", setMusicForPlayer) --client addEvent("StartSounds",true) addEventHandler("StartSounds",root, function(track,pvX, pvY, pvZ) if not(Sound) then local Sound = playSound3D( 'music_tracks/'..track..'.mp3', pvX, pvY, pvZ) setSoundMaxDistance(Sound, 100) return Sound end end)
  14. try change "myFont" to myFont in dx
  15. try function setMusicForPlayer(source, command, trackNumber) --Load player vehicle local playerVehicle = getPedOccupiedVehicle(source); --Is player driving a car now? if playerVehicle then --Is player entering a track number. if (trackNumber ~= nil) then TN = tonumber(trackNumber) --Is value of track number being a natural number and >= 1 and < 3. if ((TN ~= nil) and (TN >= 1 and TN < 3)) then --Get the coordinates of player vehicle local pvX, pvY, pvZ = getElementPosition(playerVehicle) --Load sound file local Sound = playSound3D( 'music_tracks/'..TN..'.mp3', pvX, pvY, pvZ) attachElements(Sound,source,0,0,0) --Check for successfull load. if (Sound) then setSoundMaxDistance(Sound, 100); outputChatBox("Track #"..TN.." is now playing in a music player.", source, 255, 0, 0, true) else outputChatBox("Error loading tracks", source, 255, 0, 0, true) end else outputChatBox("Track number enters incorrect!", source), 255, 0, 0, true) end else outputChatBox("You didn't enter a track number!", source, 255, 0, 0, true) end local pvX, pvY, pvZ = getElementPosition(playerVehicle) else outputChatBox("You don't turn a music player if you are not in the vehicle!", source, 255, 0, 0, true) end end addCommandHandler("sm", setMusicForPlayer)
  16. acredito que o votemanager tem uma função que + ou - isso.
  17. whats is source? i think you can use one table with all players in the server.
  18. try use this https://community.multitheftauto.com/in ... ls&id=5957
×
×
  • Create New...