Jump to content

Gamesnert

MTA Contributors
  • Posts

    2,035
  • Joined

  • Last visited

Everything posted by Gamesnert

  1. Ok, that font is MUCH better... Anyway, try opening ports in your router. To see how: http://www.portforward.com/
  2. 1: I repeat: STOP USING THAT FONT! It's getting really on my nerves! 2: If others can't join your IP, than your router should be portforwarded. 3: It's kind of obvious people can't join your LAN IP.
  3. You don't even see the splash screen?
  4. You will download the necessary resources from the server, if that's what you mean.
  5. Just leave httpdownloadurl empty. And just login with an admin account.
  6. First: Stop using that font, it's annoying. Second: That was a spam n00b, ignore him. Third: That IP is a local IP. You can see your online IP at http://www.whatismyip.com/
  7. This is very easily explainable: Type "gamemode interstate69 i69-de" If your server doesn't know what to show, how can it show it? ^^ EDIT: about the webserver, try adding the HTTP port and then/resourcebrowser So that'll be http://127.0.0.1:22005/resourcebrowser for me
  8. I do have dual-core. Everything runs fine.
  9. Not only that, in what way do you connect? By quick connect and then 127.0.0.1 or your online IP? Here they can't access my online IP either since a while ago. It should definitively be a router problem.
  10. You know, for as far as I know, if you alt+tab you receive and send a lot less information through your cable, making it annoying for others. Like health not dropping, disconnecting etc. Or if you were in a car with someone else driving, you are suddently in the water and don't know how. And it's not necessary. Buy dual-screen or do it in windowed mode.
  11. Mods can mess it up, but not these kind of thinks I think... =/
  12. No... Lol didn't think of that...
  13. Looking good! Only also needs a real webpage, instead of only a forum.
  14. Time Out is that you lost connection with the server. May be a server problem. Try another.
  15. count=5 function countdown() if count>0 then outputChatBox(count .. "") count=count-1 setTimer(count,1000,1) else outputChatBox("GOOO!!!") end end (not tested)
  16. Gamesnert

    onPickupHit?

    outputChatBox(getClientName(source))
  17. Ehm... I was talking about the gridlist... I don't think that one's needed all the time... =/
  18. Creating GUI stuff always slows the PC down a bit. Try making a good GUI and create it mid-game. Loading time is just crazy sometimes... Again I would suggest making every GUI item at the start of the resource and on join and making them invisible. Making you capable of making them visible when needed without lag.
  19. thanks, but still windowed mode is reducing my fps a bit Nothing to help that. Whatever game you play in windowed mode, it's ALWAYS slower than when you play the same game on the same PC in fullscreen.
  20. Hehehe! Told ya! There are many reasons why to use for's, whiles and tables. Especially in combination. Always keep an eye for things you need to repeat over and over again.
  21. How do you mean that? That if you press the same button again something else happens? I always use a global variable for that. ^^ if isButtonAlreadyClicked~=true then outputChatBox("You clicked the button!!!!") isButtonAlreadyPressed=true else outputChatBox("You already clicked the button fool! -.-") end Due to another post in the meantime because I'm so SLOOOOOOOOOW with typing: Or what Ace said also is a possibility.
  22. Lol, you ARE an idiot! Nah just kidding, just happens to everyone here sometimes. Anyway, k isn't weaponID, v isn't path of the picture. Look: The loop loops through the table. The first variable, k, indicates at which position in the table it is. v indicates what it contains. So if you take a look at the table and script: weaponsTable = { {29,1}, {27,2}, {24,3} } function giveMeWeapons(thePlayer) for k,v in ipairs(weaponsTable) do giveWeapon(thePlayer,weaponsTable[k+1][1],weaponsTable[k+1][2]) end end addCommandHandler("gimmeweapons",getRootElement(),giveMeWeapons) If k=1, v would be {29,1}. If k=2, v would be {27,2} etc. Simple as that. How to use it in your script? I'll take a look: <code that defines all the static images should be here. So ak = guiCreateStaticImage... etc. should be above the table!> staticImages={black, bat, bomb, brass, camera, chnsaw, chromegun, colt, , deagle, flame, golf, grenade, para, hsrl, irgoggles, jpack, knife, m4, uzi, minigun, molotov, nitestick, rocketla, satchel, sawnoff, shotgspa, silenced, sniper, teargas, tec9, mp5, ak} for k,v in ipairs(staticImages) do guiSetVisible(v,false) end Just something like that. You see how easy that is? Now again, it's untested! But it should work if you place it at the correct spot I think. You need to place it at the same spot you placed all of the guiSetVisible's, otherwise it won't know what "black" or whatever means. Now another hint: When the weapon change is activated, you may want to run the for loop again, so every picture is invisible except the one you need. Without needing about 32 lines of code. ^^ (Note: you can skip the table part in that case! Since the table is then already set! ^^)
  23. Windowed isn't meant to make you able to minimize... -.- It's just so you can do something else in the meantime. (I don't even need windowed! I have 2 screens ^^)
  24. k=key v=value k stands for the number of the current piece of table. v stands for what it contains. You can learn about tables here: http://www.lua.org/pil/2.5.html http://www.lua.org/pil/3.6.html A bit difficult, but pay attention and you'll get it. About for, while and repeat loops: while: http://www.lua.org/pil/4.3.2.html repeat:http://www.lua.org/pil/4.3.3.html for:http://www.lua.org/pil/4.3.4.html for:http://www.lua.org/pil/4.3.5.html Might be a whole lot coming to you at the same time, but learning this will give you great new opportunities in scripting! I actually use XML in combination with tables and for+while loops for my account saving. But you decide what you're going to use it for, it's flexible, can reduce filesize and it cleans up your script! Then you don't have those huge amount lines anymore! If you need any help with learning tables/loops, feel free to ask.
  25. A loop is that it repeats the same lines over and over again, until you don't need it anymore. Handy in such cases! And tables are really cool! I'll show an example (which I did not test) right here! Both table and loop. weaponsTable = {29, 27, 24} function giveMeWeapons(thePlayer) for k,v in ipairs(weaponstable) do giveWeapon(thePlayer,v,9999) end end addCommandHandler("gimmeweapons",getRootElement(),giveMeWeapons) A simple table, containing the 3 weapons. The for-loop loops through them, and gives each of them to the player. That's actually all it does. Making it a bit more advanced: (but also more likely it doesn't work... ) weaponsTable = { {29,1}, {27,2}, {24,3} } function giveMeWeapons(thePlayer) for k,v in ipairs(weaponsTable) do giveWeapon(thePlayer,weaponsTable[k+1][1],weaponsTable[k+1][2]) end end addCommandHandler("gimmeweapons",getRootElement(),giveMeWeapons) This one is also adjustable in ammo! Yay!
×
×
  • Create New...