• i coded my custom darkrp jobs, i put them were the creator told me to put them,wont work
    37 replies, posted
Here is a pic, i put them above and below the line, when i start up my server, no jobs show up at all including default ones. [url]http://tinypic.com/r/5nj9j5/7[/url] [IMG]http://i55.tinypic.com/5nj9j5.png[/IMG]
Oh I see your problem. You're using DarkRP. [editline]derp[/editline] But in all seriousness make a "//" at the line after your job code for every job. Post results. That's what I did when I edited a darkrp server. It worked.
[QUOTE=.\\Shadow};27154161]Oh I see your problem. You're using DarkRP. [editline]derp[/editline] But in all seriousness make a "//" at the line after your job code for every job. Post results. That's what I did when I edited a darkrp server. It worked.[/QUOTE] Seriously your going to troll me cause i use darkrp -.- Lol.thanks though [editline]2nd January 2011[/editline] So i should put it at the end right. simple [editline]2nd January 2011[/editline] [IMG]http://i54.tinypic.com/1r84na.png[/IMG] Correct?
[QUOTE=.\\Shadow};27154161]Oh I see your problem. You're using DarkRP. [editline]derp[/editline] But in all seriousness make a "//" at the line after your job code for every job. Post results. That's what I did when I edited a darkrp server. It worked.[/QUOTE] I don't think you know what you are talking about.
Then what should i do sam?
TEAM_Bitch line, at the end, you forgot to close the parentheses.
IS that why it isnt working?
[QUOTE=samwilki;27154552]I don't think you know what you are talking about.[/QUOTE] I was just saying what worked for me :v:
[QUOTE=admin;27154648]IS that why it isnt working?[/QUOTE] There may be more than that, but that's just what caught me eye.
bump. i really need help on this [editline]2nd January 2011[/editline] bump
I'd help you but I can see all your server is going to be is another mingefest.
ktrollkkk
[QUOTE=admin;27159908]ktrollkkk[/QUOTE] You know one 'GREAT' and 'HELPFUL' way to allow use to 'HELP' you is to post the 'WHOLE' file on here using the [code.][/code] ( without the dot ) tags. Who makes a account with the username admin?, Really? That kind of username is considered to be a sign that you are a mingebag/troll.
At the end of each job it says 'Class' I'm pretty sure you have to give each job a unique name since hobo has "hobo" where 'Class' is.
Was about to say the same thing Steven.
kkk Ayre. i do not care about someones opinion on a username i made just to post this topic mainly. if you want the code, here [code]/*-------------------------------------------------------- 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_glock2", "stunstick", "door_ram", "weaponchecker"}, "cp", 4, 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", 3, 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, false) 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", 3, 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, 0, 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_deagle2", "stunstick", "door_ram", "weaponchecker"}, "chief", 1, 75, 0, false, 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]], {}, "mayor", 1, 85, 0, true, false/*, {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 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) //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_SWAT = AddExtraTeam( "SWAT", Color( 0, 0, 0, 255 ), "models/player/riot.mdl", [[SWAT. Brute force of police]],{"weapon_glock", "gmod_tool", "weapon_mp5"}, 'class', 1, 75, 0, 1, true )// TEAM_Admin = AddExtraTeam( "GOD", Color( 69, 69, 255, 255 ), "models/player/charple01.mdl", [[ADMUN]], {"weapon_deagle", "weapon_ak47", "weapon_para", "gmod_tool", }, 'class', 1111111, 10000, 2, 0, false ) TEAM_Mugger = AddExtraTeam( "Mugger", Color( 222, 222, 222, 255 ), "models/player/Phoenix.mdl", [[Mug people * if they give the money that you asked for, do not kill them*]], {"weapon_deagle", "gmod_tool"}, 'class', 4, 40, 0, 1, false ) TEAM_Yakuza Mobster = AddExtraTeam( "Yakuza Mobster", Color( 222, 222, 333, 255 ), "models/player/Group03/Male_05.mdl", [[Yakuza is at war with the Russians]], {"gmod_tool"}, 'class', 7, 30, 0, 0, false ) TEAM_Yakuza Boss = AddExtraTeam( "Yakuza Boss", Color( 444, 444, 444, 255 ), "models/player/monk.mdl", [[Control your crime family. you can raid with
Why do you have 444, 444, 444, 255 as the color, the maximum is 255. Wow look at the numbers :wtc:
lol i meant 222 [editline]3rd January 2011[/editline] lolwut
-snip- :wtc: Check the yakuza boss thing
*speechless*
[lua]TEAM_Yakuza Boss = AddExtraTeam( "Yakuza Boss", Color( 444, 444, 444, 255 ), "models/player/monk.mdl", [[Control your crime family. you can raid with your mobsters.]], {}, 'class', 4, 45, 0, 0, false )[/lua] Change the class thing of each job and fix the colors.
[lua]TEAM_Admin = AddExtraTeam( "GOD", Color( 69, 69, 255, 255 ), "models/player/charple01.mdl", [[ADMUN]], {"weapon_deagle", "weapon_ak47", "weapon_para", "gmod_tool", }, 'class', 1111111, 10000, 2, 0, false ) [/lua] This is why. Remove this class and your server is one step to no abuse.
lol Superadmins only. [editline]3rd January 2011[/editline] Change it to what/how. im not a pro lua coder dont kill me [editline]3rd January 2011[/editline] OHH. I see. [editline]3rd January 2011[/editline] [IMG]http://i52.tinypic.com/2lshb87.png[/IMG] Correct, No? [editline]3rd January 2011[/editline] Im going to fix the merc colors . dont mind that
TEAM_Yakuza Boss is wrong. Try TEAM_YAKUZABOSS, all caps and no spaces. Dont forget the other jobs
It's not 'Yakuza Boss', it's 'yakuzaboss' [editline]2nd January 2011[/editline] Also, "Romeo's Beast"...?
[lua]TEAM_SWAT = AddExtraTeam( "SWAT", Color( 0, 0, 0, 255 ), "models/player/riot.mdl", [[SWAT. Brute force of police]],{"weapon_glock", "gmod_tool", "weapon_mp5"}, 'swat', 1, 75, 0, 1, true ) TEAM_MUGGER = AddExtraTeam( "Mugger", Color( 222, 222, 222, 255 ), "models/player/Phoenix.mdl", [[Mug people * if they give the money that you asked for, do not kill them*]], {"weapon_deagle", "gmod_tool"}, 'mugger', 4, 40, 0, 1, false ) TEAM_YAKUZAMOBSTER = AddExtraTeam( "Yakuza Mobster", Color( 222, 222, 333, 255 ), "models/player/Group03/Male_05.mdl", [[Yakuza is at war with the Russians]], {"gmod_tool"}, 'yakmobster', 7, 30, 0, 0, false ) TEAM_YAKUZABOSS = AddExtraTeam( "Yakuza Boss", Color( 255, 255, 255, 255 ), "models/player/monk.mdl", [[Control your crime family. you can raid with your mobsters.]], {}, 'yakboss', 4, 45, 0, 0, false ) TEAM_MERC = AddExtraTeam( "Mercenary", Color( 131, 255, 255, 255 ), "models/player/leet.mdl", [[Work for cops,gangsters,etc]], {"weapon_mp5"}, 'merc', 2, 80, 0, 1, true ) TEAM_BITCH = AddExtraTeam( "Bitch", Color( 69, 255, 69, 255 ), "models/player/alyx.mdl", [[Get slapped for a living]], {"gmod_tool"}, 'bitch', 3, 10, true)[/lua] I can't remember what each value is after the command to become that class, but I'm assuming those are correct. List of changes [list=I] [*]No spaces/lowercases in TEAM_ part. (Lowercase part doesn't really matter, just a personal OCD.) [*]Capped colors at 255, if they were higher, I just set them to 255. [*]Changed the command to become this class so they're not all the same, and make sure they don't have spaces. [*][sp]Got rid of admin class[/sp] [/list]
lol [editline]3rd January 2011[/editline] Kirad it was off of a book i read, [editline]3rd January 2011[/editline] lol deadeye. So now they should work?
[quote=admin]So now they should work?[/QUOTE] Try it
Works.
op can i haev your srver ip i thnk it b fun
Sorry, you need to Log In to post a reply to this thread.