Jump to content

R1S1NG

Members
  • Posts

    58
  • Joined

  • Last visited

Everything posted by R1S1NG

  1. the player die infinite, it's good to player know for the next time don't get this skin more function skin ( ) if ( getElementType ( source ) == "player" ) then if ( not isObjectInACLGroup ( "user." .. getAccountName ( getPlayerAccount ( source ) ), aclGetGroup ( "Put here the group of acl" ) ) ) then if ( getElementModel ( source ) == 11 ) then killPed ( source ) setPlayerSkin(playerSource, 0) end end end end addEventHandler ( "onElementModelChange", root, skin ) or just setPlayerSkin to any skin id
  2. sorry for the long time i have a script for you if the player get the skin of the staff or another group, he die and the skin exit of them. for example put in AclGetGroup the group of the acl like ("Admin") function skin ( ) if ( getElementType ( source ) == "player" ) then if ( not isObjectInACLGroup ( "user." .. getAccountName ( getPlayerAccount ( source ) ), aclGetGroup ( "Put here the group of acl" ) ) ) then if ( getElementModel ( source ) == 11 ) then killPed ( source ) end end end end addEventHandler ( "onElementModelChange", root, skin )
  3. Let me know, you need to block the skin of one gang to other players yes? Like the adm?
  4. Ok desculpa, vou fazer isso na próxima ;-;
  5. Esse script deveria abrir um painel mas não reconhece o LANGUAGE nem o textos.lua corretamente, eu não entendi o qual o erro do debugscript, eu ainda estou estudando sobre reconhecer erros e lua, criando vários scripts e brincando kkj, eu entendo onde fica os erros mas não entendo as resoluções do script, segue aqui o erro: Print do debug: https://drive.google.com/file/d/1Xty280hcMQFbO9D51JyVDnNZP7YmrlbM/view?usp=sharing Script: https://www.mtabrasil.com.br/2016/04/mtasapainel-evento-foda.html
  6. Hi for evernyone, my mta open but if i'm enter in anyone server, the frame is too low, locked in 6 fps, I reinstalled the mta and gta but don't work! My anti-virus don't block apps, just scan if i'm start some app. (sorry for the bad english i'm brazilian and speak a little bite of english)
  7. aaah i don't like this, in Brazil 150$ is "R$ 611,26" a value of smartphone ;-; it's high lol :v
  8. i'm brazilian, how much cost? It's a perfect job!
  9. stealing your script LOL (exclusive LOL)
  10. Acho que estou entendendo a diferença de client e server, é que eu não entendia esse nil mas ficou claro eu acho e o else e if estarem juntos entendi agora, só tenho a agradecer a vocês
  11. ok, eu li esse debug, mas, não entendi onde vejo o que é esse erro? ali da bad argument @addeventhandler tal tal tal at argument 2, got nil]. Como sei que erro é? ele aceita o emprego e lança outputchatbox porém, ele não faz nada, da erro, queria entender isso =/ pra achar erros e outra coisa, esse MarkerRandom, se ele for 1, o mta identifica que o MarkerRandom1 é o mesmo math do MarkerRandom, pois queria q ele gerasse locais diferentes sempre
  12. Eu não sabia bem que tinha isso, agora sei
  13. Acho que entendi, obrigado... Vou começar a pedir menos aqui kkj e estudar +, eu olhei o console mas como a maioria dos scripts da o warning achei q era normal kkj bgd de coração
  14. Galera, olá novamente, acho que estou entendendo como se programa mas falta corrigir erros, o script que eu fiz é um emprego que vai gerando de um a 20 empregos, por momento tem 3, o que ele faz é mostrar onde o jogador tem que ir, mas sempre mudando o local de entrega, porém ele nem inicia, nem solta o aviso ao tocar na marca inicial, algum erro? markerEntrar = createMarker(-716.23865, 1266.40942, 10.73082,"cylinder",1,0,191,255,155) blip = createBlipAttachedTo(markerEntrar, 53, 3, 255, 0, 0, 255, 0, 65535, source) function aviso (source) outputChatBox ("#00FF00[INFO] #FFFFFFTrabalho de entregador de intorpecentes. Digite #00FF00/aceitar1 #FFFFFFpara iniciar ",source,255,255,255,true) end addEventHandler("onMarkerHit", markerEntrar, aviso) function aceitar (source) markerRandom = math.random(1, 3) outputChatBox ("#00FF00[INFO] #FFFFFFEntregue os intorpecentes nos locais maracados em circulos #FFFF00amarelos #FFFFFFno mapa. ",source,255,255,255,true) local x,y,z = getElementPosition(source) veh[source] = createVehicle(499, -331.63663, -1207.03967, 4.45000) warpPedIntoVehicle (source,veh[source]) end addCommandHandler ( "aceitar1", markerRandom, aceitar) if (markerRandom == 1) then outputChatBox ("#00FF00[INFO] #FFFFFFEntregue os intorpecentes em #00FF00Downtown. ",source,255,255,255,true) markerTrab1 = createMarker(-623.43188, 858.27588, 10.55048,"cylinder",1,0,191,255,155) blip = createBlipAttachedTo(markerTrab1, 53, 3, 255, 0, 0, 255, 0, 65535, source) setElementVisibleTo ( markerTrab1, source, true ) local dinheiro = math.random(70, 300) givePlayerMoney (source,dinheiro) end addEventHandler( "onMarkerHit", markerRandom, markerTrab1) if (markerRandom == 2) then outputChatBox ("#00FF00[INFO] #FFFFFFEntregue os intorpecentes em #00FF00Little Haiti. ",source,255,255,255,true) markerTrab2 = createMarker(-863.37274, 108.24522, 9.33671,"cylinder",1,0,191,255,155) blip = createBlipAttachedTo(markerTrab2, 53, 3, 255, 0, 0, 255, 0, 65535, source) setElementVisibleTo ( markerTrab3, source, true ) local dinheiro = math.random(70, 300) givePlayerMoney (source,dinheiro) end addEventHandler( "onMarkerHit", markerRandom, markerTrab2) if (markerRandom == 3) then outputChatBox ("#00FF00[INFO] #FFFFFFEntregue os intorpecentes em #00FF00Little Haiti. ",source,255,255,255,true) markerTrab3 = createMarker(-1139.22083, -111.46038, 11.40691,"cylinder",1,0,191,255,155) blip = createBlipAttachedTo(markerTrab3, 53, 3, 255, 0, 0, 255, 0, 65535, source) setElementVisibleTo ( markerTrab3, source, true ) local dinheiro = math.random(70, 300) givePlayerMoney (source,dinheiro) end addEventHandler( "onMarkerHit", markerRandom, markerTrab3) Sei que faltam avisos no final dizendo quanto foi ganho mas isso vou fazer ainda... Obrigado a todos q responder sempre de coração
  15. I have this problem, I put to acl admin and doens't work nothing for the player, but. if i'm buy, the player open the panel N, if doens't have owner, the panel don't open for players
  16. Como faz para o marker "cylinder" ler que o que está encostando é um veículo e não jogador, pois eu desenvolvi um script, quando o jogador bate o marker ele simplesmente só lê se o jogador passar no marker dentro do veiculo e como faz para o marker ler a saúde do veículo ou jogador? tipo o veiculo tá 100% ele n arruma, se estiver 50% detonado ele arruma...
  17. Desisti, eu vi que não fechou os ids, eu achei nos idl do gta o mesmo id do objeto, mas no mta é diferente triste... kkk e obg,vou tentar outras formas
  18. Ah não me desculpe, eu confundi, isso não me adianta, preciso o nome do txd, dff, col e id do objeto correto para adicionar, mas n achei na net... Obg msm assim, vou tentando...
  19. Pegar uma total conversão, converter a MTA, sabe onde consigo id de cada objeto do gta, o map editor acho que não tem todos? Não texturas, um mapa inteiro, tipo imagine vc ter o mapa do gta3 no mta (tipo isso)
  20. Então vou extrair, e lá se vai horas para converter mais de 7 mil arquivos ;-; mas é por um servidor bom
  21. Não bem isso, eu queria por exemplo, pegar um img completo, com dff, txd e col, repor encima do mapa do gta sa (claro q deletando ele todo e recriando um do zero) mas não sei se mta carrega img direto, por ex pegar o gta3.img e por pra carregar direto, não tem eu imagino ou funciona?
  22. Pode me explicar mais uma coisa? Se eu carregasse um img q não existe no gta normal, teria q renomear os arquivos aos corretos no gta isso? Assim q um player entrar no servidor ele baixa como algo normal isso? (no caso converter 1 mapa) vc me entendeu errado, digo img q guarda os dff, txd, col...
  23. Acho que é meio óbvio, mas... MTA carrega img? tanto img que o gta não tem quanto img que ele tem? Ou ele só carrega existentes ou nenhum dos dois? Pq seria simples pra mim pegar um conteudo de um img e substituir para o map editor...
×
×
  • Create New...