• Help with Lua Coding on Sanbox
    7 replies, posted
Do ou think you could make a script, if you write /enterwar you will join a war, then you will be vurnable (lose godmode), and you get some weapons, and when you get tired of fighing and want to build again you can type /leavewar and you will get godmode and lose weapons? [highlight](User was banned for this post ("Wrong section" - mahalis))[/highlight]
Easily.
Theres your script for you. [url]http://www.garrysmod.org/downloads/?a=view&id=96768[/url]
[QUOTE=andpie;21496193]Theres your script for you. [url]http://www.garrysmod.org/downloads/?a=view&id=96768[/url][/QUOTE] Thanks man your a life saver. [editline]06:23PM[/editline] Also can you fix it so you can talk
Hmm thats true [editline]10:02PM[/editline] [url]http://www.garrysmod.org/downloads/?a=view&id=96768[/url] Lua Scriptng for sandbox hmm its abit easy too do
[QUOTE=GarrysBam;21504481]Thanks man your a life saver. [editline]06:23PM[/editline] Also can you fix it so you can talk[/QUOTE] Well, I got you a script, i didn't say it would be tested :). I think if you replace line twelve with this: [CODE]if name:lower() == cmd:lower():gsub("/") then [/CODE] It should do it, but i could be in all honesty very wrong. Ask Maker, he's the one who's code i used.
[QUOTE=andpie;21513229]Well, I got you a script, i didn't say it would be tested :). I think if you replace line twelve with this: [CODE]if name:lower() == cmd:lower():gsub("/") then [/CODE] It should do it, but i could be in all honesty very wrong. Ask Maker, he's the one who's code i used.[/QUOTE] [lua]if string.lower(name) == string.gsub(string.lower(cmd),"/") then if namelower then prunt'(lol cake maekr is lua gawd111)' namelower = true ent[/lua]
Sorry, you need to Log In to post a reply to this thread.