Jump to content

madis

Members
  • Posts

    247
  • Joined

  • Last visited

Everything posted by madis

  1. Hi, rikimaru263. I'm glad you don't expect people to do stuff for you for no gain for them, however could I ask you: Your age? Would the server earn profit somehow (to earn back the scripting money - in case it isn't small)?
  2. madis

    The White Rabbit

    Nah, random image about the cake, doesn't belong to the white rabbit riddle.
  3. My personal website has $174294.8 USD there. It shows nothing. EDIT: It seems it doesn't exactly know what subdomain is.
  4. It's a good start. I would like making new elements as new instance of a class and accessing data fields as class fields (instead of getElementData()) with extra setting to make any field synced (element data) or not (just a class field), so the class would be one-stop place for any temporary data fields that don't need to be synced while also the synced element data. Let's call it Element class. If that would be ready, adding new specific classes for element types, like Player, Ped, Vehicle, Team, etc wouldn't be a problem by inheriting the Element class and adding specific methods (i.e for player getMoney() or similar). Usage of the Element class (yes, table in Lua, but I hope it's okay to call it class for easier understanding) could be something like this: -- Make new fictional element, let's say it's an ant local ant = Element:new() -- Add synced data called "mood" with initial value "happy" (3rd argument is isSynced, so it's also accessible client-side) ant:addData("mood", "happy", true) -- Get it directly ant.mood -- or via global getter (we could also make a new method getMood if wanted, so we could do any extra processing, but that's not part of the framework) ant:getData("mood") -- Add unsynced data called "numberOfLegs" with initial value 6 (it would be nice to remember the type 'number', so number is returned when using getter, even if it's synced (as using getElementData returns string iirc) (3rd argument is isSynced, which is set to false, so it's not sent to client, nor synced when changed) ant:addData("numberOfLegs", 6, false) And anything could be added to here, like listeners (event handlers if element data changes). Hope I gave any ideas, as you have the right idea. Doing more complex gamemodes or other resources get's messy without a nice common framework. EDIT: Of course, my example is a bit naive, but gives the idea.
  5. madis

    The White Rabbit

    You´re walking backwards https://forum.multitheftauto.com/viewtop ... 06#p307006
  6. Oo jaa, du bist rightig, though the imagething worked yesterday. http://tinypic.com/view.php?pic=2vwv41z&s=5 http://tinypic.com/view.php?pic=n3njah&s=5
  7. Make a screenshot and use color picker in MS Paint. Or check the settings in your MTA options for chat (as there's also alpha for the colour)
  8. madis

    The White Rabbit

    To me it sounds more like pronouncing letters by letter, similar to voice captcha, but I'm not sure, as I can't figure out exactly what is said.
  9. I wanted to do some work on this one, and so I did. It's still far from actually being useful as the game doesn't really end (though it will most probably tell you who won). Spawn screen: http://www.myupload.org/files/l56sfdq18mux86wwf3zh.png Being in own flag zone: http://www.myupload.org/files/12m7gtdpqv2ckx7bacyd.png
  10. madis

    The White Rabbit

    The bmp file definitely has some added garbage in it if you look with a hex editor.
  11. madis

    I'm drunk

    Oh my, what kind of idiot made such topic.
  12. If you have a function that handles an event, the you can use source in that function, and source usually is what triggered the event. You could read wiki too. But shortly: all players are peds, but all peds are not players. Variables like thePlayer, thePed, theWhatever are usually just examples on wiki, where they are just arguments for functions or defined earlier in the resource script, i.e localPayer = getLocalPlayer(), which sets player element as the value for that variable, and can be used only in client-side scripts as getLocalPlayer() is client-side only function. All of these things that you asked about are or return element(s). You can find definition of MTA element here: https://wiki.multitheftauto.com/wiki/Element Basically read through robhol tutorial: http://robhol.net/guide/basics/ (for some reason it requires some authentication at the moment ). And then check the wiki examples.
  13. Actually use lil_Toady's admin panel in game to change that setting. ("start admin" and then press p)
  14. You are welcome to make a screenshot and publish it here... I've got a problem with overheating with development PC and should connect laptop to do this... and it would take umm, 6 minutes.
  15. Hi. Unfortunately I don't have the time anymore to develop it further, so I'm giving out the pre-alpha, which is unpolished and not the kind of code you would like to read/work with. But anyhow. I started doing EDF before the gamemode itself, as I wanted it to be fully compatible. However, meanwhile, I developed the gamemode further than EDF was, so you shouldn't edit your maps with map editor after they are done, but you could use to initially make the map and later edit the map's xml file manually to add features. Also, some images aren't map specific yet (a´la team flag etc) and I'm sure you'll find other stiff edges (stiff edges=not good). Play with it, fill your day with joy and... if you seem facinated about the gamemode and want to further develop it, then I don't actually allow it. However, you can be co-developer if you want to. In that case repository will be made where you can add your own branch or update the main trunk after I've approved it. I, unfortunately, can't put my time in it at the moment. Also, B is the key for spawnscreen.
  16. madis

    :O

    0101010001100101011011000110110000100000011011010110010100100000011011010110111101110010011001010010000001100001011000100110111101110101011101000010000001111001011011110111010101110010011100110110010101101100011001100 Also: 0111001001101001011000110110101100100000011100100110111101101100011011000010011101100100
  17. Hi, Hasoon. I would pay you $300 for being able to make you scripts, no, good scriptsnot.
  18. Yeah, it's quite interesting when the code is going somewhere, though I'm not sure about it's personal life, I always suspect there must be opposite sex code to go to. Anyway, your issue is that you should add the first argument to the handler function, which is the collision that was hit, so you don't even have to use isElementWithinColShape.
  19. LOL, I just cut up some red and blue transparent plastic and put them on my old glasses just to check it out. Well the glasses quite suck, but there seem to be some effect.
  20. You're doing it wrong. start = createColTube(1978.11328125, -2494.826171875, 13, 1, 5) function startcheck(colShape) -- source is the player, vehicle etc if colShape == start then if (isElementWithinColShape(source ,start)) then end end end addEventHandler("onElementColShapeHit", getRootElement(), startcheck)
  21. madis

    metatables

    This *might* be useful for you: https://wiki.multitheftauto.com/wiki/OnC ... DataChange
×
×
  • Create New...