Jump to content

The_Walrus

Members
  • Posts

    33
  • Joined

  • Last visited

Everything posted by The_Walrus

  1. Start by using the command "/debugscript 3", and don't forget to check your server logs. If you notice any errors in your code post them here. Also, when you post Lua code, use this for syntax highlighting: [/code]What you've done so far is just the hands-up animation on the target player after issuing the command, what would you like to do next? attach some kind of handcuffs object? if so, you need the resource: bone_attach. [code=lua]
  2. It might still be a better idea to use "nil" instead of "false" as false is technically the value 0 while "nil" allow you to allocate that space for other stuff in your memory, and your server hard disks. On a small server we're talking about a few bits of space, (even on larger servers it might not even be noticeable, at least not in the beginnig but later on you might get a database filled with the value "false"). Therefore it's a good idea to set the account data to "nil", if you want to truly reset it.
  3. I don't really see why you need such function either, as said before it would be to easy to grab whatever a player has in his clipboard without noticing it. If you really want to get that content why don't you fire up a GUI with an edit box in where you ask your players to paste a link for instance. Then you can deal with whatever content you requested.
  4. Obviously the main difference are the amount of resources, which gives different advantages for your project. Multiple resources makes it easier to test critical features (without seeing everything crash due to a small change in one of your files), monitor server performance by resource and track bugs (which is all useful during development). When your game mode is considered as finished you may gain some advantages by adding everything into one single resource, as it might download faster if it's packed as a zip archive rather than in hundreds of smaller files. Conclusion, multiple resource systems are useful in development servers while one resource game modes fit's better in active servers.
×
×
  • Create New...