Jump to content

zThyPvpTK

Members
  • Posts

    61
  • Joined

  • Last visited

Everything posted by zThyPvpTK

  1. sim mais oque eu queria e tirar aqueles botoes que aparecem quando o cursor passa em cima
  2. mais o isCursorOnElement vai tirar os botoes de todos os scripts ?
  3. mais esse n e pra aparecer o cursor ?
  4. bom oque tenho que colocar no inicio venda[source] = false e deu erro no debuscript 3 dai coloquei venda = false saiu o erro soque dai deu outro erro no if venda[source] then
  5. bom fui testar o script e não esta indo do /comprar ele fala pra dar /comprar player era pra dar so /comprar e comprar a venda e deixar a variavel como true so pro player dai tentei tirar function comprarv (source, cmd, playerName) if venda[source] and isElement(venda[source]) then outputChatBox ( "* Erro: So Pode Comprar Uma Venda!", source ) else if not playerName then return outputChatBox( "Sintaxe: /"..Comando_Revistar2.." <jogador>", source ) end local thePlayer = getPlayerFromPartialName (playerName ) if isElement(thePlayer) then outputChatBox ( "* Venda Comprada /vendar [Jogador]", source ) venda[source] = thePlayer else outputChatBox( "["..Comando_Revistar2.."] Jogador não encontrado!", source ) end end end addCommandHandler ( Comando_Revistar2, comprarv ) e deixei assim function comprarv (source, cmd, playerName) if venda[source] and isElement(venda[source]) then outputChatBox ( "* Erro: So Pode Comprar Uma Venda!", source ) else local thePlayer = getPlayerFromPartialName (playerName ) outputChatBox ( "* Venda Comprada /vendar [Jogador]", source ) venda[source] = thePlayer end end addCommandHandler ( Comando_Revistar2, comprarv ) e não esta deixando a variavel venda como true so para o player pode me ajudar novamente ?
  6. como pego a cordenada pra colocar no texto ? e como coloco pra aparecer e o codico pra desaparecer e que n to entendendo mt na wiki
  7. ata tendi so pra saber a cor preta no fede qual e o numero e que na wiki n fala se sabe ?
  8. e pra colocar um testo na tela com o fedecamera
  9. vo usar o painel dx msm e que n sei mecher muito no fedecamera e tmb quero colocar um texto na tela e isso ainda n sei como fazer se poder me mandar os links pra min fazer isso
  10. vo fazer pra abrir um painel dx que vai ficar a tela preta ta ligado function Revistar ( source, cmd, player ) if venda[source] and isElement(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] = thePlayer else outputChatBox("#bebebeChegue mais perto do jogador!", source, 255, 255, 255, true) end end end end end addCommandHandler ( Comando_Revistar, Revistar )
  11. --[[ ################################################ # # # Script Criado Por # # FACEBOOK.COM/AIRNEWSCR # # # # # ################################################ --]] -------------------------------------------------------------------------------------------- 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, playerName) if venda[source] and isElement(venda[source]) then outputChatBox ( "* Erro: So Pode Comprar Uma Venda!", source ) else if not playerName then return outputChatBox( "Sintaxe: /"..Comando_Revistar2.." <jogador>", source ) end local thePlayer = getPlayerFromPartialName (playerName ) if isElement(thePlayer) then outputChatBox ( "* Venda Comprada /vendar [Jogador]", source ) venda[source] = thePlayer else outputChatBox( "["..Comando_Revistar2.."] Jogador não encontrado!", source ) end end end addCommandHandler ( Comando_Revistar2, comprarv ) function Revistar ( source, cmd, player ) if venda[source] and isElement(venda[source]) then 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] = thePlayer else outputChatBox("#bebebeChegue mais perto do jogador!", source, 255, 255, 255, true) end end end end addCommandHandler ( Comando_Revistar, Revistar )
  12. source to ligado que e jogador ta obrigado ai ve se ta tudo certo agr --[[ ################################################ # # # Script Criado Por # # FACEBOOK.COM/AIRNEWSCR # # # # # ################################################ --]] -------------------------------------------------------------------------------------------- Comando_Revistar = "vendar" Comando_Revistar2 = "comprar" venda = false 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, playerName) if venda[source] and isElement(venda[source]) then outputChatBox ( "* Erro: So Pode Comprar Uma Venda!", source ) else if not playerName then return outputChatBox( "Sintaxe: /"..Comando_Revistar2.." <jogador>", source ) end local thePlayer = getPlayerFromPartialName (playerName ) if isElement(thePlayer) then outputChatBox ( "* Venda Comprada /vendar [Jogador]", source ) venda[source] = thePlayer else outputChatBox( "["..Comando_Revistar2.."] Jogador não encontrado!", source ) end end end addCommandHandler ( Comando_Revistar2, comprarv ) function Revistar ( source, cmd, player ) if venda[source] and isElement(venda[source]) then 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] = thePlayer end else outputChatBox("#bebebeChegue mais perto do jogador!", source, 255, 255, 255, true) end end end addCommandHandler ( Comando_Revistar, Revistar )
  13. ta então pra ver se a variavel esta ativada tenho que colocar isso if venda[source] and isElement(venda[source]) then
  14. o meu codico e do server ent e pra todo mundo a variavel ? como faço pra colocar so pra uma pessoa
  15. nao entendi o server-side ou é client-side? queria saber como coloco uma variavel so pra 1 player n para todos vo pegar o codico --[[ ################################################ # # # Script Criado Por # # FACEBOOK.COM/AIRNEWSCR # # # # # ################################################ --]] -------------------------------------------------------------------------------------------- Comando_Revistar = "vendar" Comando_Revistar2 = "comprar" venda = false 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) if venda then outputChatBox ( "* Erro: So Pode Comprar Uma Venda!", source ) else outputChatBox ( "* Venda Comprada /vendar [Jogador]", source ) venda = true end end addCommandHandler ( Comando_Revistar2, comprarv ) function Revistar ( source, cmd, player ) if venda then 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 = false end else outputChatBox("#bebebeChegue mais perto do jogador!", source, 255, 255, 255, true) end end end addCommandHandler ( Comando_Revistar, Revistar ) e uma loja que to fazendo de venda soque n sei se a variavel e pra todo mundo ou pra 1 pessoa so queria pra 1 pessoa so a variavel
  16. Ola Queria saber se a variavel que eu criei e so pra uma pessoa ou e geral vamos disse quero fazer uma loja e dai compro uma arma e deixar a variavel compra = true blz ne dai vamos disse outra pessoa tenta comprar ele n vai consegui por a variavel esta como true queria saber se e assim ou se e por pessoas
  17. não entendi tenho que usar o guiSetVisible, n tem como fazer essa antiga maneira funcionar e porque n e so um painel e varios
  18. ata function curar_jogador ( thePlayer, comando, nick ) if nick then if getPlayerFromPartialName ( nick ) then local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Samu") ) then local player_a_ser_curado = getPlayerFromPartialName ( nick ) local samux, samuy, samuz = getElementPosition ( thePlayer ) local curadox, curadoy, curadoz = getElementPosition ( player_a_ser_curado ) local dist = getDistanceBetweenPoints3D ( samux, samuy, samuz, curadox, curadoy, curadoz ) if player_a_ser_curado == thePlayer then outputChatBox("#bebebeVocê não pode se curar!",thePlayer,255,255,255,true) return end if ( dist > 3 ) then outputChatBox("#bebebeChegue mais perto do jogador!", thePlayer, 255, 255, 255, true) elseif ( dist < 3 )then setPedAnimation( thePlayer, "MEDIC", "CPR", 4500, true, false, false, false) setTimer ( function() setElementHealth ( player_a_ser_curado, 20 ) exports.Scripts_Dxmessages:outputDx ( player_a_ser_curado, "Você Foi Curado Va Para O Medico Ou Podera Morrer Novamente", "success" ) setPedAnimation(player_a_ser_curado, false) setElementFrozen( player_a_ser_curado, false ) setElementData(player_a_ser_curado,"PlayerCaido",false) end, 4500, 1 ) setTimer ( function() if hosp then setElementHealth ( player_a_ser_curado, 15 ) exports.Scripts_Dxmessages:outputDx ( player_a_ser_curado, "Você Caiu Novamente Va Para O Medico", "success" ) end, 300000, 1) end addCommandHandler ( "curar", curar_jogador ) end, 300000, 1) esse do final q ta dizendo q ta bugado no debugscript 3
  19. e não sei oque fazer pois pra min o codico ta certo esta aqui o codico esse end, 300000, 1) do final que ta falando que ta errado
  20. ent tenho um script que ta dando erro http://prntscr.com/o9jty4 sendo que coloquei isso http://prntscr.com/o9jug9 e ta dando erro do no end, 300000, 1) e não sei oque fazer pois pra min o codico ta certo
  21. dai baixei um mod de cachorro e outro de tunagem os 2 ficarao assim tipo passava o cursor encima e fica assim ent pode me ajudar em outra coisa tmb ?
  22. e o cegui eu acho e pq eu fiz um painel dx e n ficou assim ta ligado
×
×
  • Create New...