• DarkRP 2.4.X
    1,868 replies, posted
[quote=unib5]Firstly, the VGUI code is simply dreadful in places. It could do with being far more modular.[/quote] showteamtabs.lua is indeed too big. but cl_vgui.lua isn't that bad, is it? of course I could make a local function AddButton() but that wouldn't make much difference. [quote=unib5]Secondly, the shared.lua job organization is really dreadful.[/quote] I don't think my format is as dreadful as you say it is, I don't want to stretch the length of shared.lua, besides if I change the format of my own code, a lot of people will think their teams won't work anymore because they need enters.
Suppose you're right. I'll let you get on, keep up the good work.
[QUOTE=mishappp;20857105]This is one of my classes for example do not work because of the model issue, [code]TEAM_THIEF = AddExtraTeam("Amateur Thief", Color(60, 99, 39, 255), "models/player/t_phoenix.mdl", [[Your skills allow you to lockpick a door, although your skills are poor once youre this class you have the opportunity to become a pro thief.]], {"lockpick", "keypad_cracker"}, "thief", 3, 45, 0, false, false) [/code] as for the ammo, it still works with throwables like knives.[/QUOTE] Why are you using t_phoenix? I just use models/player/phoenix.mdl
ugh /facepalm I'm so stupid thank you so much.
[QUOTE=mishappp;20860909]ugh /facepalm I'm so stupid thank you so much.[/QUOTE] Lol, no problem.
Is anyone other then me having a issue where the hud seems to vanish and then comes back if you press TAB?. It's not constant and happens on random.
How would I go about removing the ammo from the menu it is not in the add entities lua, I have my own ammo I want to put in but I want the menu to look clean.
[QUOTE=mishappp;20884553]How would I go about removing the ammo from the menu it is not in the add entities lua, I have my own ammo I want to put in but I want the menu to look clean.[/QUOTE] It's not an entity, it's merely a function that gives the player ammo. [lua] function BuyAmmo(ply, args) if args == "" then return "" end if RPArrestedPlayers[ply:SteamID()] then return "" end if CfgVars["noguns"] == 1 then Notify(ply, 1, 4, string.format(LANGUAGE.disabled, "ammo", "")) return "" end if args ~= "rifle" and args ~= "shotgun" and args ~= "pistol" then Notify(ply, 1, 4, string.format(LANGUAGE.unavailable, "ammo")) end if not ply:CanAfford(GetGlobalInt("ammo" .. args .. "cost")) then Notify(ply, 1, 4, string.format(LANGUAGE.cant_afford, "ammo")) return "" end if args == "rifle" then ply:GiveAmmo(80, "smg1") elseif args == "shotgun" then ply:GiveAmmo(50, "buckshot") elseif args == "pistol" then ply:GiveAmmo(50, "pistol") end local cost = GetGlobalInt("ammo" .. args .. "cost") Notify(ply, 1, 4, string.format(LANGUAGE.you_bought_x, args, CUR..tostring(cost))) ply:AddMoney(-cost) return "" end AddChatCommand("/buyammo", BuyAmmo) [/lua] That's in main.lua, I'm not too sure about how you'd remove/add your own ammo, but that's the code you'd need to edit.
well since the ammo I'm using is an entity I'm just going to add it like you would with any entity, but this method will get rid of the menu buttons?
[QUOTE=mishappp;20885030]well since the ammo I'm using is an entity I'm just going to add it like you would with any entity, but this method will get rid of the menu buttons?[/QUOTE] If you just want to get rid of the buttons, just go to showteamtabs.lua, and at line 602 you should see this: [lua] AddIcon("models/Items/BoxSRounds.mdl", string.format(LANGUAGE.buy_a, "Pistol ammo", CUR .. tostring(GetGlobalInt("ammopistolcost"))), "/buyammo pistol") AddIcon("models/Items/BoxMRounds.mdl", string.format(LANGUAGE.buy_a, "Rifle ammo", CUR .. tostring(GetGlobalInt("ammoriflecost"))), "/buyammo rifle") AddIcon("models/Items/BoxBuckshot.mdl", string.format(LANGUAGE.buy_a, "shotgun ammo", CUR .. tostring(GetGlobalInt("ammoshotguncost"))), "/buyammo shotgun") [/lua] I'd say just delete those lines. However people will still by able to buy it using /buyammo.
How about removing the "AddChatcommand()" part, so any function that may use buyammo will not break.
About the logging idea, I think it wouldn't be very good if it recorded when someone spawned something, but rather if someone spawned x amount of props in y amount of time. EDIT: Also, I'm not sure if it's possible, but it would be nice if we could set value restrictions per-tool, I.E. in the welder, say we were making a realistic RP server, then the break value would be between, say, 1 and 5000.
-snip found out how.
For players with banker classes in DarkRP who want real accounts and loans in-game, check out "Starbank Redux". It's like my old Starbank program but it doesn't require PCMod. Simply add the entity to the server and to the TEAM_BANKER class (assuming you have one) and start banks in-game. [url=http://www.garrysmod.org/downloads/?a=view&id=94514][img]http://www.garrysmod.org/img/?t=dll&id=94514[/img][/url] Compatible with DarkRP 2.4.x and many other RP gamemodes.
[QUOTE=ph:lxyz;20980608]For players with banker classes in DarkRP who want real accounts and loans in-game, check out "Starbank Redux". It's like my old Starbank program but it doesn't require PCMod. Simply add the entity to the server and to the TEAM_BANKER class (assuming you have one) and start banks in-game. [url=http://www.garrysmod.org/downloads/?a=view&id=94514][img]http://www.garrysmod.org/img/?t=dll&id=94514[/img][/url] Compatible with DarkRP 2.4.x and many other RP gamemodes.[/QUOTE] Question about the banks, I'm installing it now, does it subtract the bankers actual money? if they take out a loan and leave the server is the loan gone forever? if the banker leaves without loan being paid does he loose out? is the money automatically deducted from the wallet the person owes? 1-3 rely on question one Edit: When can I expect to see the admin mod so I can dump ulx, by the way I agree with the in game motd, like in counter-strike manis logo placer was a great addition.
[QUOTE=mishappp;20984462]Question about the banks, I'm installing it now, does it subtract the bankers actual money? if they take out a loan and leave the server is the loan gone forever? if the banker leaves without loan being paid does he loose out? is the money automatically deducted from the wallet the person owes?[/QUOTE] It's not an actual bank but rather it's a bank computer. Think of it like a calculator. It's for keeping track of who owes you money and who you owe money. Actual enforcement is going to be a SeriousRP feature since it needs deeper integration with the gamemode. You have to trust people anyway if you want to loan them money, that part is down to you...
POLL: What would you prefer: - An MOTD that pops up when you join and lags your spawn - An MOTD that is placed in a map by an admin (saved and restored each map restart) No one reads the MOTD at spawn, I myself have made a script to block it. People don't have to read an MOTD that's spawned in a level and they can if they want to.
I think the second option is the best FPtje but i for one hate MODT's Maybe on the scoreboard make a button to view the MODT and on FAdmin make a MODT editor ingame (May be difficult but i have faith in you :P)
I'm pretty divided on this one. I kind of rather want it to display it on the spawn, but then I don't want to lag when I join, either. And I don't want hundreds of kids whining when they see a bunch of errors and missing textures, and have no idea where to get the addons from.
[QUOTE=FPtje;20996543]POLL: What would you prefer: - An MOTD that pops up when you join and lags your spawn - An MOTD that is placed in a map by an admin (saved and restored each map restart) No one reads the MOTD at spawn, I myself have made a script to block it. People don't have to read an MOTD that's spawned in a level and they can if they want to.[/QUOTE] The one placed somewhere in the map is actually a cool idea, you should add the functionality to place vtfs in the map as well like mani's decal placer for your clans logo etc [QUOTE=tgp1994;20999673]I'm pretty divided on this one. I kind of rather want it to display it on the spawn, but then I don't want to lag when I join, either. And I don't want hundreds of kids whining when they see a bunch of errors and missing textures, and have no idea where to get the addons from.[/QUOTE] Why don't you have them download them if its a problem?
I prefer it to pop up when the player joins. So Fptje, Are going to add the logging functions? And change the rp_deathfee a little bit?:)
Fairly certain dark rp already has a logging feature.
"Buffer Overflow in net message" when trying to join a dedicated server running this gamemode, gamemode related? Doesn't occur when running sandbox
[QUOTE=connorclockwise;21004764]Fairly certain dark rp already has a logging feature.[/QUOTE] They're talking about Falco's upcoming server administration system, FAdmin.
[QUOTE=mishappp;21001482] Why don't you have them download them if its a problem?[/QUOTE] You mean FastDL? On my server, I usually have wiremod, phx3, tons of car packs, CSSReal weapons, as well as lots of other things. On a regular basis, if you start out with a clean gmod, you will have to download an upwards of 700+ files, not just LUA files. I don't see it being very feasible to make all of the other files FastDL, as that would discourage [i]more[/i] possible users to the point of quitting before they even completely join.
Nice darkroleplay falco
[QUOTE=tgp1994;21012974]You mean FastDL? On my server, I usually have wiremod, phx3, tons of car packs, CSSReal weapons, as well as lots of other things. On a regular basis, if you start out with a clean gmod, you will have to download an upwards of 700+ files, not just LUA files. I don't see it being very feasible to make all of the other files FastDL, as that would discourage [i]more[/i] possible users to the point of quitting before they even completely join.[/QUOTE] Css real weapons don't require downloading they require counter strike source, as for wiremod and phx3 you really think people who haven't the slightest idea what they are, are going to download them because they saw them in your motd? hell no they are going to bitch and moan until someone explains it to them.
Can anybody deny or confirm that this [B]does not work on a dedicated server?[/B]
FPtje add a Spectate mod to your FAmod?
Fptje found a bug. pming you now..
Sorry, you need to Log In to post a reply to this thread.