Jump to content

Minokon

Members
  • Posts

    21
  • Joined

  • Last visited

Everything posted by Minokon

  1. Is player spawned, when you give him weapon?
  2. Sorry, I think if "DNS spreading" isn't ended, page will be white, not 404 Not Found (I have that when I change site DNS). P.S mtasa.pl - you are polish? .pl is polish domain: http://polish-citizenship.eu
  3. Hello I looking for whirlpool hashing for MTA, is it available? I found this: https://github.com/mabako/mta-whirlpool but only for Windows Thanks for help
  4. Nie widzę tu pliku .map. To chyba nie jest do MTA, tylko zwykła modyfikacja gry, poprawiająca grafikę. W sumie nawet nie wiem, staram się pomóc jak umiem ;p
  5. Good morning I have two questions to you: 1. How to check, is player standing in pickup? 2. Is in MTA something like 3D Text Labels from SA-MP? Sorry for bugs, I don't speak english very well I use: http://translator.telewizor.eu Regards, Minokon
  6. Thank very much for help. I will use it. My head thinking like in SA-MP, I just used to, maybe somobody know how to create global variable in Pawn Regards, Minokon
  7. Hello I have next question: Can I create variable which I can use in all resources? If I can, how do create it? Thanks for help. http://polish-law.strefa.pl/ Regards, Minokon
  8. Thank you! So in client-side scripts I have to use: setElementData(getLocalPlayer(), "Money", value) And I can read this in server-side scripts? And other, maybe stupid question: saved data with that function is avaiable to read in all resources? P.S I'm sorry because I'm some green in Lua @DOWN This isn't problem I can't understand some words, and google translate can't help too. Here language is some simplier for me Sorry for problem, which I creating.
  9. So I must use tables? Like: local pVehicle = { } pVehicle[thePlayer] = vehicle Other question: In client-side script I don't have to use tables? Only local pVehicle pVehicle = vehicle
  10. Welcome I have next question: How to create variables for one player? Like PVars in SA-MP, function which you can use to save some data for player. Thanks for help
  11. When use ex. "/trololo" save that in variable and start timer, which reset that variable. You must add condition in function attached to command. Ex.: -- in your command: if (soundMuted == false) then -- your command code soundMuted = true setTimer(...) -- i don't remember params now end
  12. I writed that up: I haven't any resource (only gamemode with spawnPlayer) and command /login works. I haven't any admin resource.
  13. Hello My next question: Can I use functions from included resource? Like in meta.xml I have: <include resource="SomeScript" /> And I can use functions from SomeScript in my current resource? Thanks
  14. Ok, so: 1. Why there isn't command "login" when I type "help" in console? 2. Why command "/ver" doesn't work when I type it into chat, but when I type "ver" in console it works? Sorry, because this maybe is stupid questions, but I must know all before I start scripting Now I try to "ride" MTA commands.
  15. I'm asking about chat commands, no console commands I have only one resource loaded (gamemode with spawnPlayer) and I clear Access Control List - I testing some commands, which works and for example command /login work, but /register don't. There is other commands?
  16. Hello I have a question: what are the default commands in MTA? I know /register /login and there is other? And another question: Can i block to use that commands?
  17. Thank you volk-rus It's works. I have an problem with that argument when I have to insert element (rootElement or something). @proracer I'm newbie, but don't idiot Now I only have to configure positions of window elements ;p My version: function showFractionDialog() -- create window local screenX, screenY = guiGetScreenSize() local sizeX, sizeY = 400, 300 fractionWindow = guiCreateWindow((screenX/2)-(sizeX/2), (screenY/2)-(sizeY/2), sizeX, sizeY, "Wybierz frakcje i skin", false) guiWindowSetMovable(fractionWindow, false) guiWindowSetSizable(fractionWindow, false) -- create label guiCreateLabel(5, 10, sizeX-50, 10, "Wybierz swoja frakcje, i swoj skin.", false, fractionWindow) -- create grid list fractionGridList = guiCreateGridList(10, 20, sizeX-85, sizeY-65, false, fractionWindow) guiGridListSetSelectionMode(fractionGridList, 0) guiGridListSetSortingEnabled(fractionGridList, false) -- adding rows for i = 1,19 do guiGridListAddRow(fractionGridList) end -- truckes section guiGridListSetItemText(fractionGridList, 0, 0, "Kierowcy", true, false) guiGridListSetItemText(fractionGridList, 1, 0, "ID 15", false, false) guiGridListSetItemText(fractionGridList, 2, 0, "ID 24", false, false) guiGridListSetItemText(fractionGridList, 3, 0, "ID 34", false, false) guiGridListSetItemText(fractionGridList, 4, 0, "ID 44", false, false) guiGridListSetItemText(fractionGridList, 5, 0, "ID 95", false, false) guiGridListSetItemText(fractionGridList, 6, 0, "ID 133", false, false) guiGridListSetItemText(fractionGridList, 7, 0, "ID 185", false, false) guiGridListSetItemText(fractionGridList, 8, 0, "ID 93", false, false) guiGridListSetItemText(fractionGridList, 9, 0, "ID 131", false, false) guiGridListSetItemText(fractionGridList, 10, 0, "ID 192", false, false) -- police section guiGridListSetItemText(fractionGridList, 11, 0, "Policjanci", true, false) guiGridListSetItemText(fractionGridList, 12, 0, "ID 280", false, false) guiGridListSetItemText(fractionGridList, 13, 0, "ID 281", false, false) guiGridListSetItemText(fractionGridList, 14, 0, "ID 282", false, false) guiGridListSetItemText(fractionGridList, 15, 0, "ID 283", false, false) guiGridListSetItemText(fractionGridList, 16, 0, "ID 284", false, false) guiGridListSetItemText(fractionGridList, 17, 0, "ID 285", false, false) guiGridListSetItemText(fractionGridList, 18, 0, "ID 288", false, false) -- auto size column guiGridListAutoSizeColumn(fractionGridList, 0) -- selected item guiGridListSetSelectedItem(fractionGridList, 0, 0) -- create image fractionImage = guiCreateStaticImage((sizeX-85)+20, 170/2, 55, 100, "images/Skin_15.png", false, fractionWindow) -- create button local bSizeX, bSizeY = 30, 15 fractionButton = guiCreateButton((sizeX/2)-(bSizeX/2), sizeY-15, bSizeX, bSizeY, "Wybierz", false, fractionWindow) -- other showCursor(true) guiSetInputEnabled(true) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), showFractionDialog) P.S I don't like creating function in addEventHandler, like you volk-rus. Regards, Minokon
  18. Hello I'm new in Lua and I need some help. I have a problem with that: -- meta.xml "Minokon" type="script" /> Script is added in mtaserver.conf And there isn't any reaction. Message "start" isn't outputed on the ChatBox. Can anyone help me with that? P.S Is there any support for polish symbols in GUI?
  19. Problem został rozwiązany. Jak kogoś interesuje w jaki sposób to jest tutaj: viewtopic.php?f=91&t=33022&p=346427#p346427 Witam Mam dziwny problem. Od razu mówię że jestem nowy w programowaniu w Lua i uczę się na błędach. Mam taki kod: -- meta.xml "Minokon" type="script" /> Skrypt oczywiście jest dodany do mtaserver.conf Problem jest taki, że nie działa, nawet wiadomości "start" nie wyświetla. Bardzo bym prosił o pomoc. P.S Da się w jakiś sposób używać polskich znaków w GUI, oprócz używania obrazków zamiast liter? Pozdrawiam, Minokon
  20. Siema Jestem nowy jak widzicie Może niektórzy mnie znają z forum pawno.pl głównie dotyczące sa-mp Myślałem że jest bardzo mało Polaków interesujących się MTA, ale teraz widzę że nie jest tak źle. Zresztą w SA-MP jest więcej - i chyba wiadomo czemu Łatwiej się tworzy pseudo serwery. Pozdrawiam, Minokon
×
×
  • Create New...