Jump to content

Stanley Sathler

MTA Contributors
  • Posts

    563
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Stanley Sathler

  1. I not saw "getElementModel()" in Axel code. My mistake.
  2. Normally I use this code to replace skins (peds), vehicles or objects: SkinTXD = engineLoadTXD(txd_file) engineImportTXD(SkinTXD, 235) SkinDFF = engineLoadDFF(dff_file, 235) engineReplaceModel(SkinDFF, 235) For use these functions, I need set the Model ID of the object that it will be applied. I tried search on CJ Clothes page (on Wiki) and I not found the Model ID of tattoos (I found things like this: "Model: 8gun", but the model to use in function must be a integer). How can I replace the tattoos loading a new .txd file? Thanks, Sathler.
  3. Yes, you can use getElementModel() and setElementData() for store the skin to a player. And, later respawn, use getElementData() and setElementModel().
  4. Draken e DNL, eu faço exatamente dessa forma. Possuo uma pasta no diretório "resources/", chamada - por exemplo - MeuGamemode. Assim, dentro dela tenho vários outros sub-diretórios, cada um com um recurso diferente. Por exemplo, o sub-diretório "Ammunation", o "FormLogin", o "MedicJob" e uso apenas um Meta.xml para linkar todos: <meta> <!-- informacoes, como autor, tipo, etc --> <!-- Ammunation script --> <script src="Ammunation/AmmunationGUI.lua" type="client" /> <!-- FormLogin script --> <script src="FormLogin/FormLoginGUI.lua" type="client" /> <script src="FormLogin/FormLoginServer.lua" type="server" /> <!-- MedicJob --> <script src="MedicJob/MedicJobGUI.lua" type="client" /> <script src="MedicJob/GetMedicJob.lua" type="server" /> <!-- E por ai vai, com os demais scripts --> </meta> Assim, simplesmente digito no Console: gamemode MeuGamemode (até mesmo quando estou atualizando um recurso, onde dou um "restart MeuGamemode"). - Se eu crio um .zip diferente para cada recurso, preciso iniciar meu gamemode e iniciar cada recurso? Ou preciso criar um script para fazer isso automaticamente? O que você faz, Ninguem[ATZ]?
  5. Bom, vai me desculpar Honda_aa, mas acredito fortemente que vocês sejam sim as mesmas pessoas. As coincidências são muitas e, as dúvidas, do mesmo nível (iniciante). Queremos ajudar. Isso não significa trabalhar por você.
  6. Honda_aa, você é o "pedrocasbento69"? Vocês escrevem da mesma forma: ambos escrevem "resouses", ambos não colocam acentos no "nao", ambos têm sotaque português (de Portugal), ambos escrevem as frases "partidas" (ou seja, cortadas com o uso da tecla ENTER)... Quem quiser conferir, eis um tópico criado pelo cujo dito: viewtopic.php?f=120&t=43909 - Pra quê duas contas, Honda_aa? Para que você possa pedir ainda mais "ajuda" (entre aspas, porque você não quer ajuda, você quer alguém que trabalhe para você) sem ser discriminado pela sua preguiça?
  7. Yes, is because you put the "..image.." there. That argument needs the filepath of your image, as string. dxDrawImage ( screenWidth/2 - 50, 50, 500, 500, "images/my_image.jpg", 0, -120 ) Or, you can set a variable to store the path, but you will not use ".." before or later of variable: local image = "images/my_image.jpg" dxDrawImage ( screenWidth/2 - 50, 50, 500, 500, image, 0, -120 ) And do not forget: you must set the pathfile (of the image) in Meta.xml.
  8. The function setGameSpeed() does not accept another value beyond of speed. If you don't wanna set the game speed to everyone, create the script as client-side.
  9. Olá pessoal, Há algum tempo venho tendo algumas dúvidas em relação à organização dos resources. Quando vocês tentam criar algum gamemode, como organizam seus resources? Vocês criam um .zip para cada resource (com um meta.xml cada) ou criam apenas UM meta.xml e linkam todos os scripts do servidor (por exemplo, unir um script de uma loja com um script de uma janela para as regras [em arquivos diferentes, claro, mas linkados no mesmo meta.xml], por exemplo) ?
  10. Ok, um desafio: criar uma marca no mapa (aqueles 'checkpoints' cilíndricos, onde, no Single Player, iniciam as missões) que dê uma M4 ao jogador que entrar nela.
  11. Criar tutorial e/ou traduzir não vai fazer com que o Honda_aa leia. Só para constar. É aí o X da questão: ele não gosta de ler, tentar aprender. Quem quer mesmo, usa até mesmo o Google Tradutor, mesmo tendo uma péssima tradução.
  12. Your code will not work well. You used a addCommandHandler() for call a function, but this function set the GUI visibility as false.
  13. Jaysds, I'm sorry, but the original page was removed. :\
  14. Honda_aa, sem chance mesmo de alguém trabalhar por você. Você já pediu inúmeras ajudas aqui no fórum e já chegou a hora de você aprender a programar ou, do contrário, não criará algo nunca. Você precisa ler a Wiki, não tem outro jeito.
  15. Hahaha, c'mon boys, I love all you :B
  16. Hi guys, I'm creating a new web project to interact with MTA. I'm searching by suggestions. http://gifura.orzhk.org/src/13322353151 ... -idiot.swf
  17. tostring() doesn't work?
  18. TeamViewer? Nobody will code for you, my friend. You must get the code from register/login script and change it.
  19. Hint: if you normally play Roleplay Servers, whenever you see a script, try to imagine (in your head) how you would do an equal. Try imagine the conditions (if/else), the variables... this will help you so much with the time.
  20. Stanley Sathler

    Help

    Hmm... try it: function CriarJanela() local root = getRootElement() wantedJanela = guiCreateWindow(80,80,250,250,"",false) guiWindowSetSizable(wantedJanela,false) --labels labelJanela = guiCreateLabel(20,20,250,60,"Janela de Alteraç?o de Wanted Stats",false,wantedJanela) labelNome = guiCreateLabel(10,55,250,60,"Nome do Jogador :",false,wantedJanela) labelWanted = guiCreateLabel(30,90,250,60,"Wanted Level :",false,wantedJanela) --edit editWanted1 = guiCreateEdit(120,50,120,25,"",false,wantedJanela) editWanted2 = guiCreateEdit(160,85,80,25,"",false,wantedJanela) buttonAlterar = guiCreateButton(0,210,120,30,"Alterar o Stats",false,wantedJanela) --Radio buttonRadio1 = guiCreateRadioButton(170,110,50,50,"Adicionar",false,wantedJanela) buttonRadio2 = guiCreateRadioButton(170,140,50,50,"Remover",false,wantedJanela) buttonFechar = guiCreateButton(130,210,120,30,"Fechar",false,wantedJanela) guiSetInputMode("no_binds_when_editing") end addEventHandler( "onClientResourceStart", getRootElement( ), CriarJanela) addEventHandler('onClientGUIClick', root, function () if ( source == buttonFechar) then guiSetVisible ( wantedJanela, true ) showCursor ( true ) end end) function Visible () guiSetVisible ( wantedJanela, true ) showCursor(true) end addCommandHandler ( "wantedstats", Visible )
  21. I said your example is wrong? I showed another way, returning the relative values.
  22. Do you wanna convert absolute to relative? Solidsnake sent to you the link, just must read it. function AbsoluteToRelative( X, Y ) local rX, rY = guiGetScreenSize() local x = X/rX local y = Y/rY return x, y end -- Example made by laserlaser
  23. Alpha, thank you! I used guiSetInputMode() here and works well.
  24. I have this problem in one of my scripts too. I don't know how to solve it (I never search), but if you solve, post here, please. (: - Flaker, I don't think it will work. I think when we use guiSetInputEnabled(), the F3 pressed is not recognized.
×
×
  • Create New...