Jump to content

codeluaeveryday

Members
  • Posts

    575
  • Joined

Everything posted by codeluaeveryday

  1. This one is easy... Really barely any scripting is required. Your able to set spawn points for 50p's zombie resource.
  2. Line 157 is incorrect. text:align"left" it should be: text:align("left")
  3. That will not be encoded FatalTerror, i am fully on your side. I really wish to help you test the script, I have good server knowledge. I can use my local for testing. Or we could use your local. Plus, orange is getting on my nerves.
  4. If you do not know what sopa is watch this! Sign this petition, we have until the 24th, then MTA is at big risk of deletion! Protect what we stand for. I cannot explain much, watch the video. Then sign these. http://americancensorship.org/
  5. Difficulty: Just above beginner. Hello all, I thought about sharing a small tutorial. This tutorial will help you in adding settings in the meta.xml. All the values entered in the meta.xml are editable in the admin panel. Settings are defined in the meta.xml, then the script can get the string from the meta.xml. To be able to get the data entered in the meta.xml, you must use get(), and optionally set(). Lets use one of my scripts as an example, this is my meta.xml file: "Chris" version="1.15" type="script" name="Basemode ID Tag" description="This adds the basemode ID tag before a players name." /> I have just shown you the base of settings. Now its all about reading the settings. Lets create a script which enables a certain feature of the script. get() Syntax: get(settingName) -- settingName is a string. local isMessageEnabled = get('enabledjoinmessage') -- Reads the setting added in the meta, in our case its “true”. local player = getPlayerName(thePlayer) -- Gets the player name and adds a variable to it! -- Adding the event handler! _get = get function get( str ) if type( str ) == 'string' then return _get( str ),str end return false end local isMessageEnabled,st = get( getResourceName( getThisResource( ) ).. '.enabledjoinmessage' ) -- Reads the setting added in the meta, in our case its true. --[[ Example ]] -- Adding the event handler! addEventHandler( "onPlayerJoin",root, function( ) if tostring( isMessageEnabled ) == 'true' then -- check if 'enabledjoinmessage' is exits outputChatBox( "Welcome "..getPlayerName( source ) -- Gets the player name and adds a variable to it! .." to our server, please enjoy!",root,255,153,0 ) -- output in chat box else -- if not exits outputChatBox( "The setting ("..st..") is neither false or true! Correct it!",root,255,153,0 ) end end ) Set() is not very different to get(). If you need to use set(). This would be the right syntax. set("enabledjoinmessage","false") -- this will set enabledjoinmessage to false. This concludes my tutorial on using get() and set(). If you have any questions or feedback, feel free to reply! I am willing to help anyone. I'll be making more tutorials. If there is anything you believe I did not explain clearly, I am willing to fix it and clear it up. Links which can be useful: set() get() Settings help on the wiki Your community scripter, Chris Smith.
  6. Once i finish my HTML classes. Almost done, ill go for PHP. Then ill attempt flash.
  7. Did u really just offer that? Thats low compared to flash scripting! People pay hundreds! That adverts doesn't seem worthwhile!
  8. codeluaeveryday

    Points

    This isnt his code. He is too noob. I helped someone the otherday with this. Someone helped someone, then i improved that someones script!
  9. YAYAYAYAYAY. Can i please be a beta tester. I do not care about credits. Im just keen to see this Ill do any testing. I am a good problem solver, so if i see a bug i could take a few good guesses to what causes it. Add my skype: Chrisinater22
  10. Ohk orange, so all the noobs are just gonna download xfire, and install it just so they can talk to their friends. If anything this is a better solution.
  11. capy, yeah. I really like the idea of this.
  12. I think orange has been temporally blinded by a toxic poison. This is a DX Script for servers which is a MESSENGER WHICH WORKS ON ALL SERVERS. Server A can chat to SERVER B!!!! EPIC!
  13. Moderator, delete this! This is merry christmas!
  14. Send your ACL to me: This is most likely is the problem, it should be like this under the admin ACL. Send it, i'll fix it.
  15. Use a timer to set the time. setTimer() setTime() ex: setTimer(function() setTime(12,0) end, 500, 0) On my old zombie server i also set the sky color as black, and had a red sun. I also had a nice mapped spawn at mount chillard. (Mapped by my epic DM race mappers, Dracula, Rextox, JappaX) They helped me.
  16. I think he means. When a terrorist enters a vehicle they can do /blowupcar to blow the car. If your a mechanic you can do /fixcar. I think he uses teams!
  17. I can see you really want to learn LUA. Recreate the Skin Selection GUI. Make sure you add a gridlist. Then you will manually have to add every skin ID. Hopefully after that someone will help you.
  18. Lol, he made the GUI only for Login. I basically scripted all the other stuff. The login and all.
  19. I think you need to unpack the table. unpack Also by putting a # in front of music, if I'm not mistaken that will count how many are in there. So do not use the #. Use unpack. I do not understand unpack yet. Ill learn it.
×
×
  • Create New...