Jump to content

tosfera

Members
  • Posts

    1,193
  • Joined

  • Last visited

Everything posted by tosfera

  1. What, is MTA:SA ment to be SA?!! Well, time to remove all the mods and turn my SA back to SA instead of World of Warcraft... man... ontopic; making something like this aint that hard, get a team with decent knowledge and have fun working your ass off for idk... 2 or 3 months, 10 hours a days and bam, you're done.
  2. Solved this for him.
  3. Hey, Currently I got 3 resources that are using the same images ( like, 200 images in total, so that means 600 images as a download for players. ) but I cba to let the players download them all. they'll have duplicated images, is there any way to 'share' these images with other resources? I tried making an export that returns the image, but without succes. thanks edit; solved, found a way.
  4. Easiest way to do this is using values between 0 and 1. As an example; local x, y = guiGetScreenSize(); testWindow = guiCreateWindow ( x * 0.4, y * 0.3, x * 0.2, y * 0.35, "test window", false ); This will create a window at the center of the screen, with a width of 0.2, and a height of 0.35. It will always look good on every screen!
  5. well, replace this line; local name = getResourceName(resourceValue) with this one; local name = getResourceInfo ( resourceValue, "Name" ) make sure that you include a 'name' attribute ine very map.
  6. Can you post the server sided function; 'sendMaps' ?
  7. Ah, well try this then; addEventHandler ( "onPlayerWasted", function () unbindKey ( "F3", "down", spawnScreen ); setTimer ( function () bindKey ( "F3", "down", spawnScreen ); end, 15000, 1 ); end ); It will unbind the key when the player dies, when he dies a timer starts and after 15 seconds they'll be able to use F3.
  8. Try this timer; setTimer(bindKey, 15000, 1, source, "F3", "down", "spawnScreen" ) You should bind the key after 15 seconds, not unbind it.
  9. I've already sent him an email, I might help him tonight.
  10. tosfera

    ChatMsg

    just a bit of finetuning, because there was some crap in there; addCommandHandler ( 'n', function ( thePlayer, _, id, ... ) local receiver = getElementById ( 'ID' .. tostring ( id ) ); if ( receiver ) then local r, g, b = getPlayerNameTagColor ( receiver ); sendMSG ( string.format ( "#%02X%02X%02X", r, g, b ) .. getPlayerName ( receiver ) .. "#FFFFFF, " .. table.concat ( { ... }, " " ), 0 ); else outputChatBox ( "Нет игрока под этим ID.", thePlayer ); end end );
  11. tosfera

    ChatMsg

    Haha what is that smell... is it the smell of a scripting challenge who makes the least mistakes in their scripts? If so...
  12. tosfera

    ChatMsg

    That's true, and you comment at mine... I think we are even at the mistakes we made now...
  13. tosfera

    ChatMsg

    your code won't work, why? How about this mistake you made; local text = table.concat ( arg, " " ) 'arg' isn't a parameter of his function, it's 'text'.
  14. tosfera

    ChatMsg

    you are using ´text´ as a variable, but in this case ´text´ is a table. You have to use ´concat´. Implent this in your code; sendMSG ( rn .. ' ' .. myName .. '#ffffff, ' .. table.concat ( text, ' ' ), 0 ) The description from 'concat' reads; Concatenate the elements of a table together to form a string. Each element must be able to be coerced into a string. A separator can be specified which is placed between concatenated elements. Additionally a range can be specified within the table, starting at the i-th element and finishing at the j-th element. source; http://lua-users.org/wiki/TableLibraryTutorial
  15. You're not looking for a colshape ( which is an element inside GTA ), what you are looking for is the Collision. You can try to achieve this with GetElementBoundingBox.
  16. I would use Wamp, why? Because I'm a programmer for a living and I always encounter problems with Xampp.
  17. Correct me if I'm wrong but it is a dialogBox, showing a 'loading', or a message whenever you're doing something in the background of another thread. right? To actually do this, you can achieve this by creating a small new window with the required things on it and toggle its visibility. I'm just not quite sure how to make it unable to click back to the other one. you can disable the onClientClick when the dialog is active, maybe that's a thing ( cancelEvent() ).
  18. tosfera

    gui

    Well, a thing that is easier to do is to use absolute values for elements inside of you window. Because you have a parent ( myWindow ). Try this; local x, y = guiGetScreenSize(); local playerName = getPlayerName ( getLocalPlayer() ); local myWindow = guiCreateWindow ( x / 3.8, y / 3.5, x / 4.2, y / 2.5, "information", false ); userlog = guiCreateEdit ( 0.05, 0.2, 0.9, 0.15, "Username", true, myWindow ); passlog = guiCreateEdit ( 0.05, 0.4, 0.9, 0.15, "Password", true, myWindow ); butonlog = guiCreateButton ( 0.05, 0.6, 0.4, 0.1, "Login", true, myWindow ); regup = guiCreateButton ( 0.50, 0.6, 0.4, 0.1, "Register", true, myWindow );
  19. tosfera

    GTA SA Nodes

    Nope, that's not even close to what I need haha. It might use these nodes, but all I needed were these nodes. But I already got it, and it works too so it's [solved]
  20. I would say, whenever a vehicle is created inside that 'vehicle-system'. Set a data value on the element ( the vehicle ). You can do this with the setElementData function. When you want to loop trough your vehicles, seek for that data and you're in. ^^
  21. tosfera

    GTA SA Nodes

    Nope, I was looking for the vehicles one. I'm creating a system where you have speed limits, roadnames and a GPS system. I didn't want to write a million of coords down. So I was searching for these vehiclenodes. They were actually in the GPS resource under the name; vehiclenodes.lua ^^ Thanks anyway!
  22. The player wasn't logged in, force your players to login so their data is saved. it would've been a nil error if the account wasn't defined.
  23. tosfera

    GTA SA Nodes

    Wait, you're kidding. right? edit1; let's jump in the air, with a glass of Captain Morgan and get wasted because I just wasted my time on decompiling the .dat files.
  24. it's take download An image like this wont take more than 100kb, maybe even less if it's small. If you don't want to take the download part. Don't make these rounding corners.
  25. tosfera

    GTA SA Nodes

    That was it! Thanks! Now I just need to find a way to store these, write new functions for them and abuse them. Muwhahaha...
×
×
  • Create New...