[QUOTE=Drakehawke;23899560]For trading? Like shop NPCs? I wouldn't, means the players have nothing to do, where's the role-play in buying everything from NPCs with set prices, rather than from players who can compete with each others prices, etc.[/QUOTE]
If Npc's are going to sell the only thing to do is just hang around
But just the trading system so guys that are standing near you pick up the money and disconnect what happens on my server
Maybe the NPC's can sell items that players cannot?
[QUOTE=Vinze;23871833]Hey, think you can make an alternative to save classes/jobs?
It would help people who does more serious roleplay.[/QUOTE]
can anyone please help me with the datastream errors i listed above, they are verry inoing and i reinstalled the server, installed a fix i found, nothing work
[b]Edit:[/b]
the fix i used : [url]http://www.garrysmod.org/downloads/?a=view&id=99517[/url]
Well, [URL=http://www.facepunch.com/showthread.php?p=23941479]zombies aren't working anymore[/URL]. I've tested it on a clean install. "/addzombie" doesn't seem to add spawn points anymore.
[QUOTE=Drakehawke;23899560]For trading? Like shop NPCs? I wouldn't, means the players have nothing to do, where's the role-play in buying everything from NPCs with set prices, rather than from players who can compete with each others prices, etc.[/QUOTE]
Ive always wanted that vending machine in hl2 that serves people food if no one is the cook, 9/10 people wont be the cook but you always get that one person who's into it with little stations that disable when someone goes /cook would be nice, not really an npc but a shop of sorts.
Also maybe a hunger system rework i.e different foods allow you to starve slower watermelon starve rate = 2 orange starve rate = 5 etc.
[QUOTE=metrotyranno;23918684]can anyone please help me with the datastream errors i listed above, they are verry inoing and i reinstalled the server, installed a fix i found, nothing work
[b]Edit:[/b]
the fix i used : [url]http://www.garrysmod.org/downloads/?a=view&id=99517[/url][/QUOTE]
Maybe you should tell us the errors, and read the description of the fix
Is it me or is /addzombie not working?
Shit I'm late LOL.
In the code for the door ram, you use:
[lua]
for k, v in pairs(player.GetAll()) do
if trace.Entity:OwnedBy(v) and v.warranted == true then
allowed = true
break
end
end
[/lua]
To see if a player is warranted, why not just use:
[lua]
if trace.Entity:GetDoorOwner() and trace.Entity:GetDoorOwner().warranted == true then
allowed = true
end
[/lua]
[editline]06:00PM[/editline]
Also:
"Confisquated these weapons:"
"Returned Drake's confisquated weapons!"
It's spelt 'confiscated'.
Hello everybody.
Anyone want to be annoyed by another idiot trying to run DarkRP but failing?
Basically I press F4 and there is no job's listed. Looked all the way through my Shared.lua and cant find anything wrong with it if im honest.
Anyway here it is.
[LUA]/*--------------------------------------------------------
Default teams. If you make a team above the citizen team, people will spawn with that team!
--------------------------------------------------------*/
TEAM_CITIZEN = AddExtraTeam("Citizen", Color(20, 150, 20, 255), {
"models/player/Group01/Female_01.mdl",
"models/player/Group01/Female_02.mdl",
"models/player/Group01/Female_03.mdl",
"models/player/Group01/Female_04.mdl",
"models/player/Group01/Female_06.mdl",
"models/player/Group01/Female_07.mdl",
"models/player/group01/male_01.mdl",
"models/player/Group01/Male_02.mdl",
"models/player/Group01/male_03.mdl",
"models/player/Group01/Male_04.mdl",
"models/player/Group01/Male_05.mdl",
"models/player/Group01/Male_06.mdl",
"models/player/Group01/Male_07.mdl",
"models/player/Group01/Male_08.mdl",
"models/player/Group01/Male_09.mdl"},
[[The Citizen is the most basic level of society you can hold
besides being a hobo.
You have no specific role in city life.]], {}, "citizen", 0, 45, 0, false, false)
TEAM_POLICE = AddExtraTeam("Civil Protection", Color(25, 25, 170, 255), "models/player/police.mdl", [[The protector of every citizen that lives in the city .
You have the power to arrest criminals and protect innocents.
Hit them with your arrest baton to put them in jail
Bash them with a stunstick and they might learn better than to disobey
the law.
The Battering Ram can break down the door of a criminal with a warrant
for his/her arrest.
The Battering Ram can also unfreeze frozen props(if enabled).
Type /wanted <name> to alert the public to this criminal
OR go to tab and warrant someone by clicking the warrant button]], {"arrest_stick", "unarrest_stick", "weapon_real_cs_p228", "stunstick", "door_ram", "weaponchecker"}, "cp", 8, 65, 0, true, true)
TEAM_GANG = AddExtraTeam("Gangster", Color(75, 75, 75, 255), {
"models/player/Group03/Female_01.mdl",
"models/player/Group03/Female_02.mdl",
"models/player/Group03/Female_03.mdl",
"models/player/Group03/Female_04.mdl",
"models/player/Group03/Female_06.mdl",
"models/player/Group03/Female_07.mdl",
"models/player/group03/male_01.mdl",
"models/player/Group03/Male_02.mdl",
"models/player/Group03/male_03.mdl",
"models/player/Group03/Male_04.mdl",
"models/player/Group03/Male_05.mdl",
"models/player/Group03/Male_06.mdl",
"models/player/Group03/Male_07.mdl",
"models/player/Group03/Male_08.mdl",
"models/player/Group03/Male_09.mdl"}, [[The lowest person of crime.
A gangster generally works for the Mobboss who runs the crime family.
The Mobboss sets your agenda and you follow it or you might be punished.]], {}, "gangster", 10, 45, 0, false, false)
TEAM_MOB = AddExtraTeam("Mob boss", Color(25, 25, 25, 255), "models/player/gman_high.mdl", [[The Mobboss is the boss of the criminals in the city.
With his power he coordinates the gangsters and forms an efficent crime
organization.
He has the ability to break into houses by using a lockpick.
The Mobboss also can unarrest you.]], {"lockpick", "unarrest_stick"}, "mobboss", 1, 60, 0, false, false)
TEAM_GUN = AddExtraTeam("Gun Dealer", Color(255, 140, 0, 255), "models/player/monk.mdl", [[A gun dealer is the only person who can sell guns to other
people.
However, make sure you aren't caught selling guns that are illegal to
the public.
/Buyshipment <name> to Buy a weapon shipment
/Buygunlab to Buy a gunlab that spawns P228 pistols]], {}, "gundealer", 2, 45, 0, false, true)
TEAM_MEDIC = AddExtraTeam("Medic", Color(47, 79, 79, 255), "models/player/kleiner.mdl", [[With your medical knowledge, you heal players to proper
health.
Without a medic, people can not be healed.
Left click with the Medical Kit to heal other players.
Right click with the Medical Kit to heal yourself.]], {"med_kit"}, "medic", 2, 45, 0, false, false)
TEAM_COOK = AddExtraTeam("Cook", Color(238, 99, 99, 255), "models/player/mossman.mdl", [[As a cook, it is your responsibility to feed the other members
of your city.
You can spawn a microwave and sell the food you make:
/Buymicrowave]], {}, "cook", 2, 45, 0, false, false)
TEAM_CHIEF = AddExtraTeam("Civil Protection Chief", Color(20, 20, 255, 255), "models/player/combine_soldier_prisonguard.mdl", [[The Chief is the leader of the Civil Protection unit.
Coordinate the police forces to bring law to the city
Hit them with arrest baton to put them in jail
Bash them with a stunstick and they might learn better than to
disobey the law.
The Battering Ram can break down the door of a criminal with a
warrant for his/her arrest.
Type /wanted <name> to alert the public to this criminal
Type /jailpos to set the Jail Position]], {"arrest_stick", "unarrest_stick", "weapon_real_cs_desert_eagle", "weapon_real_cs_mp5a5", "stunstick", "door_ram", "weaponchecker"}, "chief", 1, 75, 0, true, true, TEAM_POLICE)
TEAM_MAYOR = AddExtraTeam("Mayor", Color(150, 20, 20, 255), "models/player/breen.mdl", [[The Mayor of the city creates laws to serve the greater good
of the people.
If you are the mayor you may create and accept warrants.
Type /wanted <name> to warrant a player
Type /jailpos to set the Jail Position
Type /lockdown initiate a lockdown of the city.
Everyone must be inside during a lockdown.
The cops patrol the area
/unlockdown to end a lockdown]], {"arrest_stick", "unarrest_stick", "stunstick", "door_ram", "weaponchecker"}, "mayor", 1, 85, 0, true, true, {TEAM_CHIEF, TEAM_POLICE}*/)
/*
--------------------------------------------------------
HOW TO MAKE AN EXTRA CLASS!!!!
--------------------------------------------------------
You can make extra classes here. Set everything up here and the rest will be done for you! no more editing 100 files without knowing what you're doing!!!
Ok here's how:
To make an extra class do this:
AddExtraTeam( "<NAME OF THE CLASS>", Color(<red>, <Green>, <blue>, 255), "<Player model>" , [[<the description(it can have enters)>]], { "<first extra weapon>","<second extra weapon>", etc...}, "<chat command to become it(WITHOUT THE /!)>", <maximum amount of this team> <the salary he gets>, 0/1/2 = public /admin only / superadmin only, <1/0/true/false Do you have to vote to become it>, true/false DOES THIS TEAM HAVE A GUN LICENSE?, TEAM: Which team you need to be to become this team)
The real example is here: it's the Hobo: */
--VAR without /!!! The name the color(what you see in tab) the player model The description
//No extra weapons say /hobo to become hobo Maximum hobo's = 5 his salary = 0 because hobo's don't earn money. 0 = everyone can become hobo , false = you don't have to vote to become hobo
// MAKE SURE THAT THERE IS NO / IN THE TEAM NAME OR IN THE TEAM COMMAND:
// TEAM_/DUDE IS WROOOOOONG !!!!!!
// HAVING "/dude" IN THE COMMAND FIELD IS WROOOOOOOONG!!!!
//ADD TEAMS UNDER THIS LINE:
TEAM_HOBO = AddExtraTeam("Hobo", Color(80, 45, 0, 255), "models/player/corpse1.mdl", [[The lowest member of society. All people see you laugh.
You have no home.
Beg for your food and money
Sing for everyone who passes to get money
Make your own wooden home somewhere in a corner or
outside someone else's door]], {"weapon_bugbait"}, "hobo", 5, 0, 0, false, false)
TEAM_BLACK = AddExtraTeam("Black Market Dealer", Color(141, 182, 0, 255), "models/player/leet.mdl", [[You are the leading force in Illegal equipment.
It is upto you too supply everyone with
anything that they need from you.
However get caught selling it and
it's off to the the slammer with you.]], {"weapon_real_cs_knife", "unarrest_stick", "weapon_real_cs_desert_eagle"}, "black", 1, 65, 0, false, false)
/*
--------------------------------------------------------
HOW TO MAKE A DOOR GROUP
--------------------------------------------------------
AddDoorGroup("NAME OF THE GROUP H
[lua]-- Pistol's/Singles
//AddCustomShipment("DualElites", "models/weapons/w_pist_elite_dropped.mdl", "weapon_real_cs_elites", 1800, 5, true, 400, false, {TEAM_GUN, TEAM_ADMIN})
AddCustomShipment("Deagle", "models/weapons/w_pist_deagle.mdl", "weapon_real_cs_desert_eagle", 1600, 5, true, 350, false, {TEAM_GUN, TEAM_ADMIN})
AddCustomShipment("USP", "models/weapons/w_pist_usp.mdl", "weapon_real_cs_usp", 800, 5, true, 180, false, {TEAM_GUN, TEAM_ADMIN})
AddCustomShipment("P228", "models/weapons/w_pist_p228.mdl", "weapon_real_cs_p228", 1300, 5, true, 275, false, {TEAM_GUN, TEAM_ADMIN})
AddCustomShipment("Glock", "models/weapons/w_pist_glock18.mdl", "weapon_real_cs_glock18", 800, 5, true, 180, false, {TEAM_GUN, TEAM_ADMIN})
AddCustomShipment("FiveSeven", "models/weapons/w_pist_fiveseven.mdl", "weapon_real_cs_five-seven", 1200, 5, true, 250, false, {TEAM_GUN, TEAM_ADMIN})
-- Pistol's/Shipment's
//AddCustomShipment("DualElites", "models/weapons/w_pist_elite_dropped.mdl", "weapon_real_cs_elites", 1800, 5, false, 400, false, {TEAM_GUN, TEAM_ADMIN})
AddCustomShipment("Deagle", "models/weapons/w_pist_deagle.mdl", "weapon_real_cs_desert_eagle", 1600, 5, false, 350, false, {TEAM_GUN, TEAM_ADMIN})
AddCustomShipment("USP", "models/weapons/w_pist_usp.mdl", "weapon_real_cs_usp", 800, 5, false, 180, false, {TEAM_GUN, TEAM_ADMIN})
AddCustomShipment("P228", "models/weapons/w_pist_p228.mdl", "weapon_real_cs_p228", 1300, 5, false, 275, false, {TEAM_GUN, TEAM_ADMIN})
AddCustomShipment("Glock", "models/weapons/w_pist_glock18.mdl", "weapon_real_cs_glock18", 800, 5, false, 180, false, {TEAM_GUN, TEAM_ADMIN})
AddCustomShipment("FiveSeven", "models/weapons/w_pist_fiveseven.mdl", "weapon_real_cs_five-seven", 1200, 5, false, 250, false, {TEAM_GUN, TEAM_ADMIN})[/lua]
This is probably your problem. You can only use each entity once. The singles one alone is enough to suit your needs.
[editline]02:58PM[/editline]
Hmm, was poking through the updates, and noticed something odd.
[lua]local function ccVehicleSpawn(ply, cmd, args)
if GetConVarNumber("adminvehicles") == 1 then
if ply:EntIndex() ~= 0 and not ply:HasPriv(ADMIN) then
Notify(ply, 1, 2, string.format(LANGUAGE.need_admin, "gm_spawnvehicle"))
return
end
end
CCSpawnVehicle(ply, cmd, args)
DB.Log(ply:SteamName().." ("..ply:SteamID()..") spawned Vehicle "..args[1] )
end
concommand.Add("gm_spawnvehicle", ccVehicleSpawn)
local function ccVehicleSpawn(ply, cmd, args)
if GetConVarNumber("adminnpc") == 1 then
if ply:EntIndex() ~= 0 and not ply:HasPriv(ADMIN) then
Notify(ply, 1, 2, string.format(LANGUAGE.need_admin, "gm_spawnnpc"))
return
end
end
CCSpawnNPC(ply, cmd, args)
DB.Log(ply:SteamName().." ("..ply:SteamID()..") spawned NPC "..args[1] )
end
concommand.Add("gm_spawnnpc", ccVehicleSpawn)[/lua]
Is the ccVehicleSpawn function [i]supposed[/i] to be overwritten?
Didn't fix it, however.
I looked through my entire console and found this one sole error.
Couldn't include file 'shared.lua' (File not found)
This seem's to be the case then, however this only happened the moment I added in my own custom job. Could it be that I coded it wrong? or perhaps a spelling error?
[LUA]
TEAM_BLACK = AddExtraTeam("Black Market Dealer", Color(141, 182, 0, 255), "models/player/leet.mdl", [[You are the leading force in Illegal equipment.
It is upto you too supply everyone with
anything that they need from you.
However get caught selling it and
it's off to the the slammer with you.]], {"weapon_real_cs_knife", "unarrest_stick", "weapon_real_cs_desert_eagle"}, "black", 1, 65, 0, false, false)[/LUA]
That of cource is the custom job. If I add the standard Shared.lua file with no modification's I can see job's. So it is something to do with my job indeed.
[QUOTE=deadeye536;24161865][lua]-- Pistol's/Singles
//AddCustomShipment("DualElites", "models/weapons/w_pist_elite_dropped.mdl", "weapon_real_cs_elites", 1800, 5, true, 400, false, {TEAM_GUN, TEAM_ADMIN})
AddCustomShipment("Deagle", "models/weapons/w_pist_deagle.mdl", "weapon_real_cs_desert_eagle", 1600, 5, true, 350, false, {TEAM_GUN, TEAM_ADMIN})
AddCustomShipment("USP", "models/weapons/w_pist_usp.mdl", "weapon_real_cs_usp", 800, 5, true, 180, false, {TEAM_GUN, TEAM_ADMIN})
AddCustomShipment("P228", "models/weapons/w_pist_p228.mdl", "weapon_real_cs_p228", 1300, 5, true, 275, false, {TEAM_GUN, TEAM_ADMIN})
AddCustomShipment("Glock", "models/weapons/w_pist_glock18.mdl", "weapon_real_cs_glock18", 800, 5, true, 180, false, {TEAM_GUN, TEAM_ADMIN})
AddCustomShipment("FiveSeven", "models/weapons/w_pist_fiveseven.mdl", "weapon_real_cs_five-seven", 1200, 5, true, 250, false, {TEAM_GUN, TEAM_ADMIN})
-- Pistol's/Shipment's
//AddCustomShipment("DualElites", "models/weapons/w_pist_elite_dropped.mdl", "weapon_real_cs_elites", 1800, 5, false, 400, false, {TEAM_GUN, TEAM_ADMIN})
AddCustomShipment("Deagle", "models/weapons/w_pist_deagle.mdl", "weapon_real_cs_desert_eagle", 1600, 5, false, 350, false, {TEAM_GUN, TEAM_ADMIN})
AddCustomShipment("USP", "models/weapons/w_pist_usp.mdl", "weapon_real_cs_usp", 800, 5, false, 180, false, {TEAM_GUN, TEAM_ADMIN})
AddCustomShipment("P228", "models/weapons/w_pist_p228.mdl", "weapon_real_cs_p228", 1300, 5, false, 275, false, {TEAM_GUN, TEAM_ADMIN})
AddCustomShipment("Glock", "models/weapons/w_pist_glock18.mdl", "weapon_real_cs_glock18", 800, 5, false, 180, false, {TEAM_GUN, TEAM_ADMIN})
AddCustomShipment("FiveSeven", "models/weapons/w_pist_fiveseven.mdl", "weapon_real_cs_five-seven", 1200, 5, false, 250, false, {TEAM_GUN, TEAM_ADMIN})[/lua]
This is probably your problem. You can only use each entity once. The singles one alone is enough to suit your needs.
[/QUOTE]
You can use an entity more than once, however you can't use the same name for more than 1 shipment.
Try adding a (1) to the name of all the singles shipments.
[editline]08:56PM[/editline]
[QUOTE=|Dragon|;24163477]Didn't fix it, however.
I looked through my entire console and found this one sole error.
Couldn't include file 'shared.lua' (File not found)
This seem's to be the case then, however this only happened the moment I added in my own custom job. Could it be that I coded it wrong? or perhaps a spelling error?
[LUA]
TEAM_BLACK = AddExtraTeam("Black Market Dealer", Color(141, 182, 0, 255), "models/player/leet.mdl", [[You are the leading force in Illegal equipment.
It is upto you too supply everyone with
anything that they need from you.
However get caught selling it and
it's off to the the slammer with you.]], {"weapon_real_cs_knife", "unarrest_stick", "weapon_real_cs_desert_eagle"}, "black", 1, 65, 0, false, false)[/LUA]
That of cource is the custom job. If I add the standard Shared.lua file with no modification's I can see job's. So it is something to do with my job indeed.[/QUOTE]
I can't find anything wrong with that job, are you sure your saving the file right? (not shared.lua.txt or shared.lua.lua).
Also, the one I always forget, try updating your FastDL cache or disabling FastDL.
I will try that fix with the shipment's.
I don't use FastDL so that cannot be the issue there, and im more then possitive that the file is indeed just .lua
I'll report back once I do the shipment fix and see if that help's any.
EDIT: Still nothing D:
I have created a new earthquake sound for people to download, it doesn't replace the old earthquake sound, but to be honest, it sounds crap anyway.
[url=http://spiggle.org.je/contron/files/Earthquake Sound.rar]Download it here.[/url]
Place it in your content/sound folder in the DarkRP folder.
You will need to edit line 325 in [b]init.lua[/b] to this to enable the new sound:
[code]v:EmitSound("contron_earthquake.mp3", force/6, 100)[/code]
You'll also have to use resource.AddFile to make sure people download the sound.
[QUOTE=deadeye536;24161865]Is the ccVehicleSpawn function [i]supposed[/i] to be overwritten?[/QUOTE]
No, but then again it doesn't override those functions.
local functions don't override global functions. Outside the scope of the local function, ccVehicleSpawn will refer to the non-DarkRP version of it.
My /type and /write seem to be broken. Whenever use is hit on the items the message does not popup. =\
Hi there FPtje. This is probably released somewhere but I can't find it :\ I tried doing it but it messes up all shared.lua. One tiny mistake and whole files messed up :P. BUT, to get to the point:
You know how you can make custom jobs and then make it public, admin or superadmin? 0/1/2 ? Well it would be sick if you released it so 0 = Guest 1 = Respected 2 = Admin 3 = Super Admin 4 = Owner!! And no, I refuse to go to other kinds of RP's just to do this. I want darkrp only :(
By default, Garry's Mod doesn't have the groups Respected or Owner. This is one of those features where you will have to implement it yourself, or find the preexisting changes somewhere.
[QUOTE=deadeye536;24201405]By default, Garry's Mod doesn't have the groups Respected or Owner. This is one of those features where you will have to implement it yourself, or find the preexisting changes somewhere.[/QUOTE]
I seem to recall FAdmin being more than just a dream... was FPTje actually working on an admin mod?
It would be funny if you dreamed about me making an admin mod.
Ha!
[QUOTE=FPtje;24214215]It would be funny if you dreamed about me making an admin mod.
Ha![/QUOTE]
I meant from your point of view, but I guess that's a no.
How is FAdmin coming along?
[QUOTE=Drakehawke;24225702]How is FAdmin coming along?[/QUOTE]
I knew it.
I am trying to restrict certain jobs from certain people. I already made an intercept script for when people say things like /<jobname>
but i've found out, that when you press the job in the menu, this command does not get used.
How to intercept the function called when the job gets clicke din the menu?
[editline]11:49AM[/editline]
I wrote my own script within the playersay thingy in darkrp, but what function to add this script when clicked the job inside the f4 menu?
[editline]12:09PM[/editline]
Also, i added 7 jobs, but when i click the first 4 with the f4 menu, it does not use the GM:PlayerSay(ply, text)
but when i press the last 3 it does?
How to make them all uise this: GM:PlayerSay(ply, text) function? And not just make someone a job through another function?
[editline]12:14PM[/editline]
Is it about the length of the jobnames? (like the jobcommand)
There's another money exploit knocking around, had reports of people with loads of money, checked the database and there's about 20 people with over a billion dollars. I've checked their SteamIDs in the logs and there's no evidence of chat-command based exploits. That's as much as I know.
How do i add custom spawns?
[QUOTE=Crypptic;24240104]How do i add custom spawns?[/QUOTE]
/setspawn <teamcommand>
Sets the first spawn for the specified team.
/addspawn <teamcommand>
Adds extra spawns for the specified team.
[QUOTE=Drakehawke;24234854]There's another money exploit knocking around, had reports of people with loads of money, checked the database and there's about 20 people with over a billion dollars. I've checked their SteamIDs in the logs and there's no evidence of chat-command based exploits. That's as much as I know.[/QUOTE]
Is your server hosted by XenonServers? There is a recent exploit in their servers that allows people to gain RCon access to any of the servers hosted on the exploited server box.
[QUOTE=Drakehawke;24240650]/setspawn <teamcommand>
Sets the first spawn for the specified team.
/addspawn <teamcommand>
Adds extra spawns for the specified team.[/QUOTE]
Thank you. So the command for CP would be CP and the command for mayor would be mayor?
EDIT: Thank you i have added spawns now.
Sorry, you need to Log In to post a reply to this thread.