Jump to content

Rataj

Members
  • Posts

    98
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Rataj

  1. Mores, little tip for next time: Learn to script, or find someone to do it for you. If you'll have problems with script (some piece of your code will not work), we are always here to help. But on the other side, I totally agree with pa3ck.
  2. I'm not entirely sure about this, but you shouldn't rename mta-server to .sh file. So try to run it as it is, to execute the file you can also try ./ at the start. Example (untested): shell_exec("echo 'rootpw' | sudo -u root -S ./home/mtarp/mta-server"); I hope it will help you, otherwise tell us more about your problem. Does it give you any errors? Is problem within PHP or Linux?
  3. * destroyElement (for clarity)
  4. Are you totally sure isElementInWater did this? Is there a possibility, that one of your custom functions is returning false instead? (It may be a bug, I didn't test it, just asking)
  5. I will not make you "example" of whole resource, but if you really want to see an example, visit community.multitheftauto.com, it's highly possible, that somebody made something similar and released it to public. Also, if you want to make it yourself, take a look at Introduction to Scripting the GUI it can help you a lot in making GUI (panel). MySQL connection can be made using MTA MySQL (old module) or DbConnect (built-in function). Don't forget to use tables and element data.
  6. I'm not really sure what you want to know, but to answer things I understood: Function processLineOfSight can get you only one object (hitElement), you should store objects to table and check nearby objects using for function. Or you can use getElementsByType("object", resourceRoot) to get all objects created by the same resource, then you can use already mentioned for function. Example (untested): function getNearbyObjects(thePlayer) local nearbyObjects = { } local px,py,pz = getElementPosition(thePlayer) for k,v in pairs(getElementsByType("object", resourceRoot))do local vx,vy,vz = getElementPosition(thePlayer) if(getDistanceBetweenPoints3D(px,py,pz,vx,vy,vz) < 5)then table.insert(nearbyObjects, v) end end return nearbyObjects end This function will output table of all objects within same resource that have distance to player less than 5. You can implement it and edit for your needs.
  7. Peníze za to nechci, navíc jsem tu mapu nedělal jen já, ale podílelo se nás na ní více, takže by to i bylo nefér. Pošlu ti do PM screeny a kdyžtak se nějak domluvíme.
  8. Jelikož nemáme žádný důkaz o existenci nějakého předešlého serveru (že to někdo řekl, to není důkaz), prezentujeme se jako první československý RP server na MTA:SA. Připouštím, že je tu možnost, že byl někdo před námi a nemíním se o tom s nikým hádat. Ať už první byl nebo ne, prezentací toho serveru se nevychvaluji, kdybych se chtěl vychvalovat tak zmíním nějaký jiný, osobní projekt, avšak tady jsme přeci v MTA komunitě, je tedy logické se představit se serverem, se kterým si mě zde lidi mohou spojit, jelikož ten server většina CZ/SK hráčů zná. P.S. Co kdybys nedělal chytrého a raději se nám také představil?
  9. Dobrý nápad obnovit tuto tému a obohatit ji o představení. Abych se tedy také "zapsal", tak bude fér, abych se také představil. Jmenuju se Jaroslav, jinak mě všichni všude znají pod přezdívkou Rataj, případně RatajVaver (když mi nějaký polák vyžere přezdívku Rataj). Co se MTA týče, dostal jsem se k němu někdy před cca 4 lety. Zezačátku jsem hrával hlavně RPG a DD, později jsem se přesunul spíše k DayZ a upřednostněno naprosto především - RolePlay. RP jsem hrával už na spoustě hrách předtím, takže to pro mě nebyla španělská vesnice a hlavně RP na MTA obsahoval vše, co si jen může RP hráč přát. Co se tvorby serverů na MTA týče, jediné co vás omezuje je vaše představivost. To je taky jeden z hlavních důvodů, proč jsem měl již několik serverů. K dnešnímu dni stále běží pouze jeden z těchto serverů a to MTA:SA Skimo RolePlay, první československý RP server. Jak mnozí asi vědí, v MTA se zaměřuji na LUA scripting, sem tam nějaké mapování, modelování, texturování, apod. Mimo LUA se také zajímám o HTML, CSS, PHP, SQL, JS, AJAX, Javu, C#, Python, GML a pár dalších programovacích / kódovacích / skriptovacích jazyků u kterých mám malé znalosti, takže nestojí za zmínku. Celkově se zajímám o hry, tvorbu serverů a tvorbu her samotných. Abych se nepohyboval čistě jen v IT, tak si občas také zahraju airsoft, nějaké ty stolní hry jako například Dračí doupě či šachy, nebo se někde náhodně objevím, jinak trávím většinu svého cenného času u počítače. Ačkoliv píšu tento příspěvek v češtině a mám současně českou vlajku jako avatar, již se mi zde stalo, že se mě někdo do PM zeptal, jestli jsem čech. Závěrem tedy raději doplňuji, že čech jsem.
  10. Možná bych tu někde měl mít pomerně luxusní mapu celého San Andreas v post-apo stylu ze svého starého DayZ serveru. Kdybys měl zájem, tak mi napiš, mrknu se po tom a třeba se nějak domluvíme.
  11. O skriptování (nejen) v LUA se tu zajímám já a to asi tak, že jsem pár let zpátky založil první československý RP server, který mimochodem funguje dodnes. Po celou dobu fungování jsem veškerý LUA scripting na serveru dělal jen já (tedy kromě samotného původního jádra serveru a pár dodatků). Každopádně mapperů znám spousty (včetně výše podepsaného Asystolice/SedliXe), občas si taky něco namapuji. Avšak s tím LUA je to na CZ/SK scéně hodně bídné, neznám téměř nikoho, kdo by to ovládal alespoň na mírně pokročilé úrovni.
  12. Use downloadFile everytime and remove addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), replaceModels). I think MTA can handle it automatically like that. By the way, outputDebugString with user's name is useless there, since it's client-side, so you'll always get only your own name.
  13. I don't have much time right now, so I'll take it really quickly and simply respond your questions without reasoning, etc.. 1) Interiors are separate worlds. 2) No. 3) Because 255 is limit of interior worlds, but that 18 ids are first 18 interior worlds, which were used for singleplayer interiors, others are empty. 4) It's also separate world, but it works differently, if you are for example in interior 0 (normal SA map) and dimension 5 you'll still see native GTA objects as they are, but you'll not meet other players, that are in different dimension 5) No. 6) No. 7) It's 65535 dimensions per all interior worlds. It's 0 and 0 of course (normal SA map). For next time: Try to experiment yourself, that's best way to teach everything. EDIT: Btw.. you mentioned onMarkerHit event, take a look at wiki page, it has matchingDimension variable, which you can use to detect that source element is in same dimension as marker.
  14. Rataj

    I got a question

    Wikipedia is not enough? https://en.wikipedia.org/wiki/MySQL It's type of database, where you can store your data. Try to look at some tutorials how to use it with MTA.
  15. Rataj

    help

    Take a look at these functions: createRadarArea isInsideRadarArea createColRectangle setRadarAreaColor setTimer Try to make it on your own, if your code won't work, just paste it there and we'll take a look at it.
  16. That won't work, but this might: local sourceTimer sourceTimer = setTimer(function () outputChatBox("1") killTimer(sourceTimer) end, 1000, 5) Yeah, I was thinking about this too later. Try it.
  17. Well, I totally agree with all others, and this is scripting section. You should write this into suggestions. ( I'm for 00 anyway. ) But not to only roast you, I must say great job. These icons doesn't look bad, but just use them somewhere else, devs won't change official MTA:SA icon I think. Or didn't I get it? I don't even know what you mean with MTA:SA Brasil? If your server is named like that, then OK, but still - wrong section..
  18. Did you try it like this? local sourceTimer = setTimer(function () outputChatBox("1") killTimer(sourceTimer) end, 1000, 5) Or rather use this: local sourceTimer function someFunction() sourceTimer = setTimer(timerFunction, 1000, 5) end function timerFunction() outputChatBox("1") killTimer(sourceTimer) end
  19. Some additional info: • Bushes doesn't have collision, but if you reduce maximum draw range of nametags, it would be enough. • Sometimes when I connect, I have black screen and I see only chat, when I press F3 then everything is fine. I think it was doing when I didn't check auto-login, because last time it was fine (with auto-login). • Roofing on Italy is intended but only to the first (lower) roof. There are two ways, you can get on the top roof (which is not intended for sure). • Agree. • Agree. • Agree. • Yeah, they are, but I'm glad to read you are working on another maps.
  20. Rataj

    help

    Basically it's only these two functions: setVehicleColor, setTimer and playing with variables to smoothly fade colors.
  21. Rataj

    help

    You mean for vehicle, or what?
  22. Yea, that's right, but on this server even running is faster than them.
  23. Player count can get better with time. Just keep it up. Some little suggestions for your new update: • Remove default nametags and make custom one, so we'll not see them through bushes for example. • If player connects and it's not his first time, he has to press F3 to join the game and he is not anyhow informed about it. Some players just don't know what's going on. Make it automatic, or add some notification about it in chat. • On some maps (Snow valley, Italy, maybe some others too) there is possibility of "roofing" (climbing out of the map to gain advantage), I personaly found that out and it gives you huge advantage. At least I saw only one player using it yet (I do not count myself). So please fix these maps. • Trucks and jeeps are too slow and when I say too slow I mean way too slow. You should take a look at their handling. • Also write down some rules somewhere. Players can do anything, what is technically possible, when there is no admin online. Don't forget to forbid spawn-killing and previously mentioned "roofing". • Slightly reduce given damage by revolver (it's one-hit from any distance). • If possible, add more maps. I know it's hard work, but try to consider these suggestions.
  24. No problem. It's not needed, it really depends on you. If you want to (for example) save user's data (money, skin, position, etc.) so they'll got them back, when they login (even after server restart), you can use account data or rather MySQL.
×
×
  • Create New...