Jump to content

blehmeh

Members
  • Posts

    47
  • Joined

  • Last visited

Everything posted by blehmeh

  1. Maybe by specifying a rule that they need to release it open source? So, they mostly won't have a script that they're willing to release and haven't so far.
  2. What I originally meant: local string = "1" local number = tonumber(string) + 1 print (number) --outputs 2 After using fromJSON, you can then loop through the returned table to find numeric values.
  3. blehmeh

    Slothbot

    Should be lower-case: exports [ "slothbot" ]:spawnBot ( x, y, z, 90, math.random ( 300, 303 ), 0, 0, Team, 38,"mode", bol )
  4. if (string.find(message,"@warnings")) and not (string.find(message," @warnings")) then This line doesn't make any sense, you're checking the string contains @warnings and if the string doesn't doesn't contain @warnings. local W_Number = loadNumberData (source) Is loadNumberData function defined?
  5. if (string.find(message,"@warnings")) and not (string.find(message," @warnings")) then This line doesn't make any sense, you're checking the string contains @warnings and if the string doesn't doesn't contain @warnings. local W_Number = loadNumberData (source) Is loadNumberData function defined?
  6. blehmeh

    Slothbot

    There's a function called spawnBot, you should use it to spawn bots. exports.slothbot:spawnBot(arguments...)
  7. What do you mean by position? Be more specific.
  8. After using fromJSON, you can use tonumber to get the numeric value of a string.
  9. You have to make a new script for the competition.
  10. Why a shader? A simple dx text with custom font will do.
  11. Did you install the sockets module first? Did you install the irc resource? Did you add outputIRC to the resource?
  12. How is that possible without the script? If you want help, you'll have to post the script.
  13. Then you need to learn SQLite or/and MySQL. Queries can be fairly similar, but they're different. dbConnect dbQuery dbExec dbPoll dbFree
  14. Maybe this is what you seek: https://wiki.multitheftauto.com/wiki/Resource:Irc
  15. It's both, MySQL and SQLite.
  16. Use the newest functions: dbConnect dbQuery dbPoll dbExec dbFree
  17. It shouldn't repeat since the loop argument is false, but I guess your mp3 file isn't just a one "hello". function startMySound() helloSound = playSound( "hello.mp3", false ) setTimer(stopHelloSound, 2000, 1) end addCommandHandler ( "hello", startMySound ) function stopHelloSound() stopSound(helloSound) end
  18. "When we get donations" Which won't happen until you release, that if the server succeeds. So you need a long term scripter who basically builds the whole server. Not easy to find someone who's willing to do that.
  19. You could lower the maximum number of zombies as well.
  20. You'll get nowhere without learning, if you solve this one, you'll get stuck with another. The code loops/repeats the output function so it outputs the line you need to manually repeat several times.
  21. This is something that came to my mind some time ago. It's about scripters participating in a competition, where there is a time limit within they should provide a script. Scripts are then showcased, and a poll is opened to vote on the best script. I haven't came up with a prize more than just the pride of winning against other scripters. Scripts has to be released open source, probably on the community, possibly with a video to properly showcase it. What do you guys think? I could organize the whole thing if it got some attention. If you like this idea or want to participate, reply saying so.
  22. for i = 0, 100 do outputConsole('tostring(i)..'.jpg"/>') end This will output to console: From 1 to 100, you can increase the count by changing the number 100 in the script.
  23. I once had such problem, I made a loop using Lua to output the whole meta to a file.
  24. blehmeh

    Drift Help!

    These might help: https://community.multitheftauto.com/index.php?p= ... ls&id=5078 https://community.multitheftauto.com/index.php?p= ... ils&id=528
  25. blehmeh

    Key pressed

    https://wiki.multitheftauto.com/wiki/OnClientKey
×
×
  • Create New...