Jump to content

zThyPvpTK

Members
  • Posts

    61
  • Joined

  • Last visited

Everything posted by zThyPvpTK

  1. bom formatei meu pc esses dias ent to instalando tudo ent n tenho o codico que tinha usado mais eu tinha colocado na acl de admin (resource.nome da pasta que ta o resource)
  2. no caso na acl eu ja coloquei n vai
  3. Bom baixei um progama mt usado pra fazer painel dx no caso e um script n um plugin e bom eu tentei colocar imagem e deu esse erro http://prntscr.com/okyvlt n sei como resolver queria saber se alguem sabe como resolver
  4. bom agr n copiei eu escrevi na mao e vo abrir meu srv pra testar agr
  5. http://prntscr.com/ohk05g local screenW,screenH = guiGetScreenSize() local resW, resH = 1365,767 local x, y = (screenW/resW), (screenH/resH) function Pdx () dxDrawRectangle(25, 147, 319, 414, tocolor(0, 0, 0, 161), false) dxDrawRectangle(23, 147, 321, 55, tocolor(255, 255, 255, 255), false) dxDrawText("Policia Militar Fenix", 22, 147, 344, 202, tocolor(0, 0, 0, 255), 1.40, "pricedown", "center", "center", false, false, false, false, false) dxDrawRectangle(194, 212, 150, 46, tocolor(64, 64, 64, 255), false) dxDrawRectangle(25, 212, 150, 46, tocolor(64, 64, 64, 255), false) dxDrawText("SKIN 1", 23, 212, 175, 258, tocolor(246, 246, 246, 255), 1.00, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("SKIN 2", 194, 212, 346, 258, tocolor(246, 246, 246, 255), 1.00, "pricedown", "center", "center", false, false, false, false, false) dxDrawRectangle(194, 278, 150, 46, tocolor(64, 64, 64, 255), false) dxDrawText("Heli", 192, 278, 344, 324, tocolor(246, 246, 246, 255), 1.00, "pricedown", "center", "center", false, false, false, false, false) dxDrawRectangle(25, 278, 150, 46, tocolor(64, 64, 64, 255), false) dxDrawText("VTR 1", 23, 278, 175, 324, tocolor(246, 246, 246, 255), 1.00, "pricedown", "center", "center", false, false, false, false, false) dxDrawRectangle(85, 334, 199, 54, tocolor(64, 64, 64, 255), false) dxDrawText("ROCAM", 86, 334, 284, 384, tocolor(255, 255, 255, 255), 1.20, "pricedown", "center", "center", false, false, false, false, false) dxDrawRectangle(85, 404, 199, 54, tocolor(64, 64, 64, 255), false) dxDrawText("Armas", 86, 404, 284, 454, tocolor(255, 255, 255, 255), 1.20, "pricedown", "center", "center", false, false, false, false, false) dxDrawRectangle(85, 475, 199, 54, tocolor(64, 64, 64, 255), false) dxDrawText("APAISANA", 86, 475, 284, 525, tocolor(255, 255, 255, 255), 1.20, "pricedown", "center", "center", false, false, false, false, false) dxDrawRectangle(306, 530, 23, 21, tocolor(255, 255, 255, 255), false) dxDrawText("X", 306, 530, 334, 551, tocolor(0, 0, 0, 255), 1.00, "pricedown", "center", "center", false, false, false, false, false) end function abrir () if (painel) then showCursor(false) removeEventHandler("onClientRender", root, Pdx) painel = false else showCursor(true) addEventHandler("onClientRender", root, Pdx) painel = true end end addEvent ("painelpmf", true) addEventHandler ("painelpmf", root , abrir) function togglePanel() if getElementData(localPlayer,nomeDaACL_Comandante) then if not isEventHandlerAdded("onClientRender",root,onClientRender) then guiGridListClear(playerList) for id, player in ipairs(getElementsByType("player")) do guiGridListSetItemText(playerList, guiGridListAddRow(playerList), 1, getPlayerName(player):gsub('#%x%x%x%x%x%x', ''), false, false) end guiSetVisible(playerList,true) guiSetVisible(edit,true) aVisible = true rVisible = true addEventHandler("onClientRender",root,onClientRender) showCursor(true) else guiSetVisible(playerList,false) guiSetVisible(edit,false) removeEventHandler("onClientRender",root,onClientRender) showCursor(false) end end end function isCursorOnElement(x,y,w,h) local mx,my = getCursorPosition () local fullx,fully = guiGetScreenSize() cursorx,cursory = mx*fullx,my*fully if cursorx > x and cursorx < x + w and cursory > y and cursory < y + h then return true else return false end end function skin1 (_,state) if painel == true then if ( state == "down" ) then if ( isCursorOnElement(194, 212, 150, 46)) then triggerServerEvent ("skin1", localPlayer) end end end end addEventHandler ("onClientClick", root, skin1) function skin2 (_,state) if painel == true then if state == "down" then if isCursorOnElement(25, 212, 150, 46) then triggerServerEvent ("skin2", localPlayer) end end end end addEventHandler ("onClientClick", root, skin2) function xxxxxx2 (_,state) if painel == true then if state == "down" then if isCursorOnElement(306, 530, 23, 21) then triggerServerEvent ("xxxxxx", localPlayer) end end end end addEventHandler ("onClientClick", root, xxxxxx2) function carro1 (_,state) if painel == true then if state == "down" then if isCursorOnElement(25, 278, 150, 46) then triggerServerEvent ("vtr1", localPlayer) end end end end addEventHandler ("onClientClick", root, carro1) function carro2 (_,state) if painel == true then if state == "down" then if isCursorOnElement(194, 278, 150, 46) then triggerServerEvent ("vtr2", localPlayer) end end end end addEventHandler ("onClientClick", root, carro2) function moto (_,state) if painel == true then if state == "down" then if isCursorOnElement(85, 334, 199, 54) then triggerServerEvent ("vtr3", localPlayer) end end end end addEventHandler ("onClientClick", root, moto) function armas (_,state) if painel == true then if state == "down" then if isCursorOnElement(85, 404, 199, 54) then triggerServerEvent ("armsss", localPlayer) end end end end addEventHandler ("onClientClick", root, armas) function apais (_,state) if painel == true then if state == "down" then if isCursorOnElement(85, 475, 199, 54) then triggerServerEvent ("apais", localPlayer) end end end end addEventHandler ("onClientClick", root, apais)
  6. ta ok e que to no meu srv e ele tem mt mod dai fica dando erros alguns mods e n consigo ver vo ir no meu srv privado e vo ver
  7. bom testei aqui e deu erro o marker n apareceu
  8. ata me desculpe eu não sabia vo testar aqui
  9. Ola bom fiz um painel dx com marker e o player quando ele passa a primeira vez ele n aparece mais na 2 aparece pode me ajudar pra fazer o painel dx aparecer na primeira tentativa n na segunda esses sao os 2 codicos desv = createMarker (1584.6145019531,-1678.8831787109,5.8976788520813 -1, "cylinder", 2, 254 ,0 ,0, 255) myMarker = createMarker (1571.0413818359,-1682.8901367188,16.191499710083 -1, "cylinder", 1.5, 254 ,0 ,0, 255) function showPanellr(thePlayer) accountname = getAccountName(getPlayerAccount(thePlayer)) if isObjectInACLGroup("user." .. accountname, aclGetGroup("PMF")) then ---So Mude "PCC" Grupo que vai poder abrir o painel ! triggerClientEvent(thePlayer, "painelpmf", getRootElement()) end end veh = {} function vtr1 () if veh[source] and isElement( veh[source] ) then destroyElement( veh[source] ) veh[source] = nil end veh[source] = createVehicle(596, 1598.3981933594,-1676.1922607422,5.8913125991821) warpPedIntoVehicle (source,veh[source]) end addEvent("vtr1",true) addEventHandler("vtr1",root,vtr1) veh = {} function vtr2 () if veh[source] and isElement( veh[source] ) then destroyElement( veh[source] ) veh[source] = nil end veh[source] = createVehicle(401, 1598.3981933594,-1676.1922607422,5.8913125991821) warpPedIntoVehicle (source,veh[source]) end addEvent("vtr2",true) addEventHandler("vtr2",root,vtr2) veh = {} function vtr3 () if veh[source] and isElement( veh[source] ) then destroyElement( veh[source] ) veh[source] = nil end veh[source] = createVehicle(523, 1598.3981933594,-1676.1922607422,5.8913125991821) warpPedIntoVehicle (source,veh[source]) end addEvent("vtr3",true) addEventHandler("vtr3",root,vtr3) function skin1 () setPedSkin ( source, 281 ) outputChatBox ('( #00ff00INFO#ffffff )#ffff00Voce Pegou #00ff00Skin !',source,255,255,255,true) end addEvent("skin1",true) addEventHandler ( "skin1", getRootElement(), skin1 ) function skin2 () setPedSkin ( source, 280 ) outputChatBox ('( #00ff00INFO#ffffff )#ffff00Voce Pegou #00ff00Skin !',source,255,255,255,true) end addEvent("skin2",true) addEventHandler ( "skin2", getRootElement(), skin2 ) function apss () takeAllWeapons ( source ) setPedSkin ( source, 17 ) giveWeapon( source, 24, 999, true ) outputChatBox ('( #00ff00INFO#ffffff )#ffff00Voce Esta Apaisana !',source,255,255,255,true) end addEvent("apais",true) addEventHandler ( "apais", getRootElement(), apss ) function xs() triggerClientEvent(source, "painelpmf", getRootElement()) end addEvent("xxxxxx",true) addEventHandler ( "xxxxxx", getRootElement(), xs ) function armas () giveWeapon( source, 23, 999, true ) giveWeapon( source, 29, 999, true ) giveWeapon( source, 31, 999, true ) outputChatBox ('( #00ff00INFO#ffffff )#ffff00Voce Pegou #00ff00Armas !',source,255,255,255,true) end addEvent("armsss",true) addEventHandler ( "armsss", getRootElement(), armas ) function abrir2 (thePlayer) accountname = getAccountName(getPlayerAccount(thePlayer)) if isObjectInACLGroup("user." .. accountname, aclGetGroup("PMF")) then ---So Mude "PCC" Grupo que vai poder abrir o painel ! triggerClientEvent(thePlayer, "painelpmf", getRootElement()) end end addEventHandler( "onMarkerHit", myMarker, abrir2 ) veh = {} function destroy() if isPedInVehicle(source) == true then destroyElement(veh[source]) else outputChatBox ('( #00ff00INFO#ffffff )#ffff00Você não está em nenhum veiculo !',source,255,255,255,true) end end addEventHandler("onMarkerHit", desv, destroy) local screenW,screenH = guiGetScreenSize() local resW, resH = 1365,767 local x, y = (screenW/resW), (screenH/resH) function Pdx () dxDrawRectangle(25, 147, 319, 414, tocolor(0, 0, 0, 161), false) dxDrawRectangle(23, 147, 321, 55, tocolor(255, 255, 255, 255), false) dxDrawText("Policia Militar Fenix", 22, 147, 344, 202, tocolor(0, 0, 0, 255), 1.40, "pricedown", "center", "center", false, false, false, false, false) dxDrawRectangle(194, 212, 150, 46, tocolor(64, 64, 64, 255), false) dxDrawRectangle(25, 212, 150, 46, tocolor(64, 64, 64, 255), false) dxDrawText("SKIN 1", 23, 212, 175, 258, tocolor(246, 246, 246, 255), 1.00, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("SKIN 2", 194, 212, 346, 258, tocolor(246, 246, 246, 255), 1.00, "pricedown", "center", "center", false, false, false, false, false) dxDrawRectangle(194, 278, 150, 46, tocolor(64, 64, 64, 255), false) dxDrawText("VTR 2", 192, 278, 344, 324, tocolor(246, 246, 246, 255), 1.00, "pricedown", "center", "center", false, false, false, false, false) dxDrawRectangle(25, 278, 150, 46, tocolor(64, 64, 64, 255), false) dxDrawText("VTR 1", 23, 278, 175, 324, tocolor(246, 246, 246, 255), 1.00, "pricedown", "center", "center", false, false, false, false, false) dxDrawRectangle(85, 334, 199, 54, tocolor(64, 64, 64, 255), false) dxDrawText("ROCAM", 86, 334, 284, 384, tocolor(255, 255, 255, 255), 1.20, "pricedown", "center", "center", false, false, false, false, false) dxDrawRectangle(85, 404, 199, 54, tocolor(64, 64, 64, 255), false) dxDrawText("Armas", 86, 404, 284, 454, tocolor(255, 255, 255, 255), 1.20, "pricedown", "center", "center", false, false, false, false, false) dxDrawRectangle(85, 475, 199, 54, tocolor(64, 64, 64, 255), false) dxDrawText("APAISANA", 86, 475, 284, 525, tocolor(255, 255, 255, 255), 1.20, "pricedown", "center", "center", false, false, false, false, false) dxDrawRectangle(306, 530, 23, 21, tocolor(255, 255, 255, 255), false) dxDrawText("X", 306, 530, 334, 551, tocolor(0, 0, 0, 255), 1.00, "pricedown", "center", "center", false, false, false, false, false) end function abrir (_,state) if painel == false then showCursor(true) addEventHandler("onClientRender", root, Pdx) painel = true else showCursor(false) removeEventHandler("onClientRender", root, Pdx) painel = false end end addEvent("painelpmf", true) addEventHandler("painelpmf", root , abrir) function togglePanel() if getElementData(localPlayer,nomeDaACL_Comandante) then if not isEventHandlerAdded("onClientRender",root,onClientRender) then guiGridListClear(playerList) for id, player in ipairs(getElementsByType("player")) do guiGridListSetItemText(playerList, guiGridListAddRow(playerList), 1, getPlayerName(player):gsub('#%x%x%x%x%x%x', ''), false, false) end guiSetVisible(playerList,true) guiSetVisible(edit,true) aVisible = true rVisible = true addEventHandler("onClientRender",root,onClientRender) showCursor(true) else guiSetVisible(playerList,false) guiSetVisible(edit,false) removeEventHandler("onClientRender",root,onClientRender) showCursor(false) end end end function isCursorOnElement(x,y,w,h) local mx,my = getCursorPosition () local fullx,fully = guiGetScreenSize() cursorx,cursory = mx*fullx,my*fully if cursorx > x and cursorx < x + w and cursory > y and cursory < y + h then return true else return false end end function skin1 (_,state) if painel == true then if ( state == "down" ) then if ( isCursorOnElement(194, 212, 150, 46)) then triggerServerEvent ("skin1", localPlayer) end end end end addEventHandler ("onClientClick", root, skin1) function skin2 (_,state) if painel == true then if state == "down" then if isCursorOnElement(25, 212, 150, 46) then triggerServerEvent ("skin2", localPlayer) end end end end addEventHandler ("onClientClick", root, skin2) function xxxxxx2 (_,state) if painel == true then if state == "down" then if isCursorOnElement(306, 530, 23, 21) then triggerServerEvent ("xxxxxx", localPlayer) end end end end addEventHandler ("onClientClick", root, xxxxxx2) function carro1 (_,state) if painel == true then if state == "down" then if isCursorOnElement(25, 278, 150, 46) then triggerServerEvent ("vtr1", localPlayer) end end end end addEventHandler ("onClientClick", root, carro1) function carro2 (_,state) if painel == true then if state == "down" then if isCursorOnElement(194, 278, 150, 46) then triggerServerEvent ("vtr2", localPlayer) end end end end addEventHandler ("onClientClick", root, carro2) function moto (_,state) if painel == true then if state == "down" then if isCursorOnElement(85, 334, 199, 54) then triggerServerEvent ("vtr3", localPlayer) end end end end addEventHandler ("onClientClick", root, moto) function armas (_,state) if painel == true then if state == "down" then if isCursorOnElement(85, 404, 199, 54) then triggerServerEvent ("armsss", localPlayer) end end end end addEventHandler ("onClientClick", root, armas) function apais (_,state) if painel == true then if state == "down" then if isCursorOnElement(85, 475, 199, 54) then triggerServerEvent ("apais", localPlayer) end end end end addEventHandler ("onClientClick", root, apais)
  10. você coloca esses 2 elementos dentro do marker quando ele entrar no maker
  11. Você Pode Usar O SetElementDimension para setar a dimenção do elemento e SetElementPosition para setar a posição do player
  12. comprei e funcionou tava colocando uma coisa erada mais obrigado a todos que me ajudarao muito muito obrigado
  13. no meu client n tem nd vo testar
  14. tentei aqui e deu erro dai tentei arrumar e deu mais erro bom no caso deu erro quando dei /comprar http://prntscr.com/oepeej
  15. remover o local screenWidth, screenHeight = guiGetScreenSize ( ) o quit player e outra coisa que vo fazer e outra variavel sim realmente como deu erro e não queria mais incomodar vcs tentei colocar "" pra ver se ia
  16. -------------------------------------------------------------------------------------------- local screenWidth, screenHeight = guiGetScreenSize ( ) -- Get the screen resolution (width and height) Comando_Revistar = "vendar" Comando_Revistar2 = "comprar" local venda = "{}" function quitPlayer ( quitType ) -- send the message to the server telling players that the player has left. outputChatBox ( getPlayerName(source).. " has left the server (" .. quitType .. ")" ) entrar[source] = true end addEventHandler ( "onPlayerQuit", root, quitPlayer ) function getPlayerFromPartialName ( name ) local name = name and name:gsub("#%x%x%x%x%x%x", ""):lower() or nil if name then for _, player in ipairs(getElementsByType("player")) do local name_ = getPlayerName(player):gsub("#%x%x%x%x%x%x", ""):lower() if name_:find(name, 1, true) then return player end end end end function comprarv (source, cmd) if venda[source] then outputChatBox ( "* Erro: So Pode Comprar Uma Venda!", source ) else if getPlayerMoney(source) >= 1000 then -- verifique o dinheiro já que se trata de uma compra outputChatBox ( "* Venda Comprada /vendar [Jogador]", source ) venda[source] = true takePlayerMoney( source, 1000 ) else outputChatBox( "["..Comando_Revistar2.."] Dinheiro insuficiente!", source, 230, 30, 30 ) end end end addCommandHandler ( Comando_Revistar2, comprarv ) function Revistar ( source, cmd, player ) if venda[source] then if not player then return outputChatBox( "Sintaxe: /"..Comando_Revistar.." <jogador>", source ) else local Jogador = getPlayerFromPartialName ( player ) if Jogador then local cx,cy,cz = getElementPosition(Jogador) local x,y,z = getElementPosition(source) local dist = getDistanceBetweenPoints3D(x,y,z,cx,cy,cz) if dist <= 5 then outputChatBox ( "Você Vendou Um Jogador [-1 Venda]", source ) outputChatBox ( "Você Foi Vendado", Jogador ) venda[source] = nil else outputChatBox("#bebebeChegue mais perto do jogador!", source, 255, 255, 255, true) end end end end end addCommandHandler ( Comando_Revistar, Revistar ) coloquei os "" pra ver se ia e deu erro
  17. e que to traduzindo mais ta falando que ta faltando "" esses negocio ai n to com mta aberto se n te mandava print
  18. testei sem o dram txt e o outro so pra dar uma msg e deu erro no debugscript 3 falando que local venda = {} ta faltando " "
  19. ve agr se ta certo tudo -------------------------------------------------------------------------------------------- local screenWidth, screenHeight = guiGetScreenSize ( ) -- Get the screen resolution (width and height) Comando_Revistar = "vendar" Comando_Revistar2 = "comprar" local venda = {} function getPlayerFromPartialName ( name ) local name = name and name:gsub("#%x%x%x%x%x%x", ""):lower() or nil if name then for _, player in ipairs(getElementsByType("player")) do local name_ = getPlayerName(player):gsub("#%x%x%x%x%x%x", ""):lower() if name_:find(name, 1, true) then return player end end end end function comprarv (source, cmd) if venda[source] then outputChatBox ( "* Erro: So Pode Comprar Uma Venda!", source ) else if getPlayerMoney(source) >= 1000 then -- verifique o dinheiro já que se trata de uma compra outputChatBox ( "* Venda Comprada /vendar [Jogador]", source ) venda[source] = true takePlayerMoney( source, 1000 ) else outputChatBox( "["..Comando_Revistar2.."] Dinheiro insuficiente!", source, 230, 30, 30 ) end end end addCommandHandler ( Comando_Revistar2, comprarv ) function Revistar ( source, cmd, player ) if venda[source] then if not player then return outputChatBox( "Sintaxe: /"..Comando_Revistar.." <jogador>", source ) else local Jogador = getPlayerFromPartialName ( player ) if Jogador then local cx,cy,cz = getElementPosition(Jogador) local x,y,z = getElementPosition(source) local dist = getDistanceBetweenPoints3D(x,y,z,cx,cy,cz) if dist <= 5 then outputChatBox ( "Você Vendou Um Jogador [-1 Venda]", source ) outputChatBox ( "Você Foi Vendado", Jogador ) fadeCamera( Jogador, false, 1 ) local playerX, playerY, playerZ = getElementPosition ( localPlayer ) -- Get our player's coordinates. local playerZoneName = getZoneName ( playerX, playerY, playerZ ) -- Get name of the zone the player is in. dxDrawText ( playerZoneName, 44, screenHeight - 41, screenWidth, screenHeight, tocolor ( 0, 0, 0, 255 ), 1.02, "pricedown" ) venda[source] = nil else outputChatBox("#bebebeChegue mais perto do jogador!", source, 255, 255, 255, true) end end end end end addCommandHandler ( Comando_Revistar, Revistar )
  20. venda[source] = nil e true ? e tenho que tirar o venda = false do começo ?
  21. coloquei isso no começo para começar como false n precisa colocar aquilo no começo ?
  22. guiSetVisible funciona ? blz vo tentar aqui se n der certo vo fazer pelo painel dx msm obrigado a todos que me ajudou
×
×
  • Create New...