• $5 Reward - How can I use tools outside of sandbox?
    20 replies, posted
I have a gamemode running and I want to remove all doors on the map and spawn a entity on the map, Deriving sandbox messes up my gamemode. How can I use these tools and spawn this entity without deriving sandbox? I will reward the first to solve this with $5 in bitcoin or paypal.
STOP GIVING REWARDS. WE ARE NOT SF JOBS
Sorry, lol. Just trying to get a quick response its nothing to me.
make a command to remove a door and spawn entities. 5 dollars plz
Okay, well how do I do that exactly?
[QUOTE=Muudea;48044740]Okay, well how do I do that exactly?[/QUOTE] [url]http://wiki.garrysmod.com/[/url] Five dollars plz
lmao [editline]25th June 2015[/editline] Tell me the function and I'll do it.
[lua] concommand.Add("removedoor", function(p, c, a) local door = p:GetEyeTrace().Entity if (IsValid(door) and door:GetClass():find("door")) then door:Remove() end end) concommand.Add("spawnentity", function(p, c, a) if (!a[1] or !scripted_ents.Get(a[1])) then return p:ChatPrint("Wrong entity name") end local e = ents.Create(a[1]) e:SetPos(p:GetEyeTrace().HitPo) e:Spawn() e:Activate() end) [/lua] 5 dollars
Ok, can you PM me chessnut? I'm gunna use that.
no my paypal is restricted
aren't you the kid on mpgh who thinks they are the best and most awesomest troll
What happened to the $25 from the last thread?
[QUOTE=Robotboy655;48044812]What happened to the $25 from the last thread?[/QUOTE] No one ended up fixing that, I had to compromise. [editline]25th June 2015[/editline] [QUOTE=MeepDarknessM;48044804]aren't you the kid on mpgh who thinks they are the best and most awesomest troll[/QUOTE] yes dude
gimme 5 dollars worth of vip on ur server
[QUOTE=Chessnut;48044832]gimme 5 dollars worth of vip on ur server[/QUOTE] PM me pls also ur code no work serverside.
I forgot an 's' somewhere in the code, but where could it be :o
[QUOTE=Chessnut;48044859]I forgot an 's' somewhere in the code, but where could it be :o[/QUOTE] nice dude 10/10 lie
Found the missing s. I get half of chessnuts 5.
I shouldn't be spoonfeeding you this... but change e:SetPos(p:GetEyeTrace().HitPo) to e:SetPos(p:GetEyeTrace().HitPos)
I'm not a complete noob in lua, but I have no Idea how I missed that. Thank u
[QUOTE=Muudea;48046071]I'm not a complete noob in lua, but I have no Idea how I missed that. Thank u[/QUOTE] Was it hard to check the error on the server console?
Sorry, you need to Log In to post a reply to this thread.