[QUOTE=FPtje;40691978]Why is this not in an addon?
Currently it's a you want the user to merge in DarkRP. This is the wrong way of doing it. You can make the entire thing an addon, [u]including the custom entity[/u] that you want the user to put in addentities.lua.
[url]http://facepunch.com/showthread.php?t=1249475&p=40545755&viewfull=1#post40545755[/url]
I will not endorse this until St3fz0rtj3 puts it in an addon. It makes updating DarkRP a lot more problematic.[/QUOTE]
Apologies made, FPtje. I will schedule re-uploads as addons first thing in the morning. This goes for all of my releases so far. I might as well make 1 big mega thread so the other ones can be deleted (to avoid the big 'post count'-drama). I will work on this a.s.a.p. and have a message send out for clearance to an administrator.
I'll notify you.
Alright cheers, if you face any trouble just post in this thread. I'm subscribed to it. I'll help you out.
[QUOTE=FPtje;40692125]Alright cheers, if you face any trouble just post in this thread. I'm subscribed to it. I'll help you out.[/QUOTE]
Converted. Would you mind verifying I've worked the files correctly, folderwise? Only need to do it on this one, as I did them in the same structural way with all of my addons.
Your uploading too much St3fz0rtj3, I can't keep up. On topic another cool addon, not the best but still good to see more and more work coming out!
Like the addons you have posted tho its a dick move that you stole your community money and released its scripts dude [url]http://sdgaming.org/[/url]
[QUOTE=deluxe;40699971]Like the addons you have posted tho its a dick move that you stole your community money and released its scripts dude [url]http://sdgaming.org/[/url][/QUOTE]
You should try reading for once, not to mention hes perma banned, so there's no use trying to yell at him.
[QUOTE=deluxe;40699971]Like the addons you have posted tho its a dick move that you stole your community money and released its scripts dude [url]http://sdgaming.org/[/url][/QUOTE]
Don't judge just by reading a 2 lined message and just obe side of the story. And the server is dead so why shouldn't I? They are not being put to use anymore. Besides I'm also coding new ones to release.
finally, I've made an autospawn script, when i put the getpos coordinations in it some strange shit happends: for example the thing turns like 40 degrees where i was looking at. how to solve this?
i just use getpos and use the setpos coörds
[QUOTE=fbto4;40712559]finally, I've made an autospawn script, when i put the getpos coordinations in it some strange shit happends: for example the thing turns like 40 degrees where i was looking at. how to solve this?
i just use getpos and use the setpos coörds[/QUOTE]
Add the var GetAngle and SetAngle
Any chance you can release the autospawn script for us all?
Please? :3
[QUOTE=St3fz0rtj3;40712720]Add the var GetAngle and SetAngle[/QUOTE]
I do this: -1439.968750, -727.934631, -131.968750, 89.000000, -0.279923, 0.000000
now it still turns like 90 degrees.
[QUOTE=fbto4;40712959]I do this: -1439.968750, -727.934631, -131.968750, 89.000000, -0.279923, 0.000000
now it still turns like 90 degrees.[/QUOTE]
Like I just said, try setting it after the pos with :SetAngle as seperate rotation modifier.
[QUOTE=Jongunner;40712742]Any chance you can release the autospawn script for us all?
Please? :3[/QUOTE]
Im surprised that you can't do it when you have released addons with it.
[url]http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index22ac.html[/url]
[QUOTE=St3fz0rtj3;40713402]Like I just said, try setting it after the pos with :SetAngle as seperate rotation modifier.[/QUOTE]
Can you give an example so i can edit it from there?
[QUOTE=fbto4;40714255]Can you give an example so i can edit it from there?[/QUOTE]
ent:SetPos(blah, blah, blah)
ent:SetAngle(blah, blah, blah)
Well i have this atm:
function SpawnProps()
SpawnProp(Vector( -1439.968750, -727.934631, -131.968750, 89.000000, -0.279923, 0.000000 ), "models/props_trainstation/payphone001a.mdl")
end
hook.Add("InitPostEntity","SpawnTheProps",timer.Simple(1,SpawnProps))
function SpawnProp(position, model)
local ent1 = ents.Create("telephone_booth")
local ang = Vector(0,0,1):Angle();
ang.pitch = ang.pitch + 90;
print("Prop spawned with model: " .. model)
ang:RotateAroundAxis(ang:Up(), math.random(0,360))
ent1:SetAngles(ang)
ent1:SetModel(model)
local pos = position
pos.z = pos.z - ent1:OBBMaxs().z
ent1:SetPos( pos )
ent1:Spawn()
end
and this is the position in need to get in: setpos -1439.968750 -728.056396 -131.968750;setang 1.540029 179.460663 0.000000
dude can you please fix up your code? it's nice of you to release this stuff but it's an absolute shoddy mess
[QUOTE=Ylsid;40714949]dude can you please fix up your code? it's nice of you to release this stuff but it's an absolute shoddy mess[/QUOTE]
His thing works mate, you only need auto spawn.
The thing being in addons is definitely better. Good job.
I'll PM you an exploit in your script, though.
[QUOTE=FPtje;40715427]The thing being in addons is definitely better. Good job.
I'll PM you an exploit in your script, though.[/QUOTE]
Alright thanks. Appreciate it.
Encountered the issue of add-ons perform main.lua functions (now named entity_functions.lua in lua\autorun\server\) when the player logs on..
[QUOTE=FPtje;40715427]The thing being in addons is definitely better. Good job.
I'll PM you an exploit in your script, though.[/QUOTE]
Also send it to me so i can fix it myself
why so many threads? just make a huge thread and put the shit in there
[QUOTE=St3fz0rtj3;40715441]Alright thanks. Appreciate it.
Encountered the issue of add-ons perform main.lua functions (now named entity_functions.lua in lua\autorun\server\) when the player logs on..[/QUOTE]
Can you reply to my last spawn problem?
[QUOTE=tyguy;40715459]why so many threads? just make a huge thread and put the shit in there[/QUOTE]
Already been suggested 923 times, including in this thread. Please don't make unnecessary posts. And as answer to your question: Facepunch boards do not allow me to merge or remove threads. I should've done it beforehand but I didn't. Shame on me.
[editline]20th May 2013[/editline]
[QUOTE=fbto4;40715488]Can you reply to my last spawn problem?[/QUOTE]
You need to fiddle around with the angle values, as you said it rotates 90 degrees. I don't have a clear view on what way you want it to be. So you'll have to edit and test with the spawner code yourself. This is not a spawner thread.
Can you give the instructions on how to show the original sender for admins? I really like the addon but people seem to just flame with it.
[QUOTE=BillyMays;40719211]Can you give the instructions on how to show the original sender for admins? I really like the addon but people seem to just flame with it.[/QUOTE]
Go into tbooth_functions.lua and replace the entire code with this:
[CODE]local function Pboothc(player,commandName, args)
if player:CanAfford(1200) then
player:AddMoney(-1200)
local target = GAMEMODE:FindPlayer(table.GetFirstValue(args))
table.remove(args, 1)
table.remove(args, 3)
GAMEMODE:TalkToPerson(target, Color(255,255,255,255), "[Payphone] Anonymous: "..table.GetFirstValue(args))
local Players = player.GetAll()
for i = 1, table.Count(Players) do
if ply:IsAdmin() then
local ply = Players[i]
ply:PrintMessage( HUD_PRINTCONSOLE, "Payphone message - "..player:Nick().." has send "..table.GetFirstValue(args).." to "..target..".")
end
end
end
concommand.Add("rpbooth", Pboothc)[/CODE]
Thank you!
St3fz0rtj3, Can you come into my server and i will show you the position of where my payphone has to be, and u show me how i get it right?
[QUOTE=St3fz0rtj3;40723169]Go into tbooth_functions.lua and replace the entire code with this:
[CODE]local function Pboothc(player,commandName, args)
if player:CanAfford(1200) then
player:AddMoney(-1200)
local target = GAMEMODE:FindPlayer(table.GetFirstValue(args))
table.remove(args, 1)
table.remove(args, 3)
GAMEMODE:TalkToPerson(target, Color(255,255,255,255), "[Payphone] Anonymous: "..table.GetFirstValue(args))
local Players = player.GetAll()
for i = 1, table.Count(Players) do
if ply:IsAdmin() then
local ply = Players[i]
ply:PrintMessage( HUD_PRINTCONSOLE, "Payphone message - "..player:Nick().." has send "..table.GetFirstValue(args).." to "..target..".")
end
end
end
concommand.Add("rpbooth", Pboothc)[/CODE][/QUOTE]
ARGH MY EYES please fix that horrible indentation
[QUOTE=St3fz0rtj3;40723169]Go into tbooth_functions.lua and replace the entire code with this:
[CODE]local function Pboothc(player,commandName, args)
if player:CanAfford(1200) then
player:AddMoney(-1200)
local target = GAMEMODE:FindPlayer(table.GetFirstValue(args))
table.remove(args, 1)
table.remove(args, 3)
GAMEMODE:TalkToPerson(target, Color(255,255,255,255), "[Payphone] Anonymous: "..table.GetFirstValue(args))
local Players = player.GetAll()
for i = 1, table.Count(Players) do
if ply:IsAdmin() then
local ply = Players[i]
ply:PrintMessage( HUD_PRINTCONSOLE, "Payphone message - "..player:Nick().." has send "..table.GetFirstValue(args).." to "..target..".")
end
end
end
concommand.Add("rpbooth", Pboothc)[/CODE][/QUOTE]
Didn't work St3f: [ERROR] lua/autorun/server/tbooth_functions.lua:19: 'end' expected (to close 'for' at line 9) near '<eof>'
1. unknown - lua/autorun/server/tbooth_functions.lua:0
Sorry, you need to Log In to post a reply to this thread.