• Dark RP
    15 replies, posted
I've been lurking around Facepunch for a while and I know most of you all HATE Dark RP, but for once please spare me and help me out on this one. :[ I try and add custom jobs to the shared.lua file and I get this error: DarkRP\gamemode\showteamtabs.lua:437: bad argument #1 to 'ipairs' (table expected, got nil) The F4 menu goes blank. Help would be greatly appreciated. Thank you in advanced!
same exact thing happens to me.. please help
Show your code, both the job code you added and the code on the line the error specifies.
[QUOTE=grea$emonkey;16298552]Show your code, both the job code you added and the code on the line the error specifies.[/QUOTE] RPExtraTeams = {} function AddExtraTeam( Name, color, model, Description, Weapons, command, maximum_amount_of_this_class, Salary, admin, Vote, Haslicense, NeedToChangeFrom) if not Name or not color or not model or not Description or not Weapons or not command or not maximum_amount_of_this_class or not Salary or not admin or Vote == nil then local text = "One of the custom teams is wrongly made! Attempt to give name of the wrongly made team!(if it's nil then I failed):\n" .. tostring(Name) print(text) hook.Add("PlayerSpawn", "TeamError", function(ply) if ply:IsAdmin() then ply:ChatPrint("WARNING: "..text) end end) end local CustomTeam = {name = Name, model = model, Des = Description, Weapons = Weapons, command = command, max = maximum_amount_of_this_class, salary = Salary, admin = admin or 0, Vote = tobool(Vote), NeedToChangeFrom = NeedToChangeFrom, Haslicense = Haslicense} table.insert(RPExtraTeams, CustomTeam) team.SetUp(#RPExtraTeams, Name, color) local Team = #RPExtraTeams if SERVER then timer.Simple(0.1, function(CustomTeam) AddTeamCommands(CustomTeam) end, CustomTeam) end return Team end hook.Add("InitPostEntity", "AddTeams", function() if file.Exists("CustomTeams.txt") then RunString(file.Read("CustomTeams.txt")) if SERVER then resource.AddFile("data/CustomTeams.txt") end if CLIENT and not LocalPlayer():IsSuperAdmin() then file.Delete("CustomTeams.txt") end end end) /*-------------------------------------------------------- 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/male_01.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", "item_ammo_pistol"}, "cp", 4, 65, 0, true, true) TEAM_GANG = AddExtraTeam("Gangster", Color(75, 75, 75, 255), "models/player/group03/male_01.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", "item_ammo_pistol"}, "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]], {"item_ammo_pistol"}, "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_hitman = AddExtraTeam("hitman", Color(80, 45, 0, 255), "models/player/guerilla.mdl", [[Go Kill some people, but you have to get paid]], {"ls_sniper","talk"}, "hitman", 1, 150, 0, true) TEAM_ninja = AddExtraTeam("ninja", Color(50, 50, 50, 180), "models/player/arctic.mdl", [[Be a ninja, invade houses that don't have roofs]], {"ninja_knife","grapplehook","talk"}, "ninja", 1, 150, 0, true) TEAM_SWAT = AddExtraTeam("SWAT", Color(0, 0, 255, 180), "models/player/urban.mdl", [[stop the terrorist`s help the cops, and follow you leaders orders]], {"weapon_glock2","wea
Please use lua tags. [lua]RPExtraTeams = {} function AddExtraTeam( Name, color, model, Description, Weapons, command, maximum_amount_of_this_class, Salary, admin, Vote, Haslicense, NeedToChangeFrom) if not Name or not color or not model or not Description or not Weapons or not command or not maximum_amount_of_this_class or not Salary or not admin or Vote == nil then local text = "One of the custom teams is wrongly made! Attempt to give name of the wrongly made team!(if it's nil then I failed):\n" .. tostring(Name) print(text) hook.Add("PlayerSpawn", "TeamError", function(ply) if ply:IsAdmin() then ply:ChatPrint("WARNING: "..text) end end) end local CustomTeam = {name = Name, model = model, Des = Description, Weapons = Weapons, command = command, max = maximum_amount_of_this_class, salary = Salary, admin = admin or 0, Vote = tobool(Vote), NeedToChangeFrom = NeedToChangeFrom, Haslicense = Haslicense} table.insert(RPExtraTeams, CustomTeam) team.SetUp(#RPExtraTeams, Name, color) local Team = #RPExtraTeams if SERVER then timer.Simple(0.1, function(CustomTeam) AddTeamCommands(CustomTeam) end, CustomTeam) end return Team end hook.Add("InitPostEntity", "AddTeams", function() if file.Exists("CustomTeams.txt") then RunString(file.Read("CustomTeams.txt")) if SERVER then resource.AddFile("data/CustomTeams.txt") end if CLIENT and not LocalPlayer():IsSuperAdmin() then file.Delete("CustomTeams.txt") end end end) /*-------------------------------------------------------- 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/male_01.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", "item_ammo_pistol"}, "cp", 4, 65, 0, true, true) TEAM_GANG = AddExtraTeam("Gangster", Color(75, 75, 75, 255), "models/player/group03/male_01.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", "item_ammo_pistol"}, "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]], {"item_ammo_pistol"}, "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_hitman = AddExtraTeam("hitman", Color(80, 45, 0, 255), "models/player/guerilla.mdl", [[Go Kill some people, but you have to get paid]], {"ls_sniper","talk"}, "hitman", 1, 150, 0, true) TEAM_ninja = AddExtraTeam("ninja", Color(50, 50, 50, 180), "models/player/arctic.mdl", [[Be a ninja, invade houses that don't have roofs]], {"ninja_knife","grapplehook","talk"}, "ninja", 1, 150, 0, true) TEAM_SWAT = AddExtraTeam("SWAT", Color(0, 0, 255, 180), "models/player/urban.mdl", [[stop the terrorist`s help the cops, and follow you leaders orders]], {"weapon_glock2","weapon_m42","door_ram","stunstic k","unarrest_stick","arrest_stick","taser","talk"} , "swat", 5, 150, 0,
So if I add tags it will work? Also if you can add me: yoon19 I would greatly appreciate direct contact and help.
no he ment lua tags on forum [LUA] [LUA]hi[/LUA]
This error means you made a team incorrectly. like "you're doing it wrong" Find out which team and then fix it.
[QUOTE=FPtje;16299989]This error means you made a team incorrectly. like "you're doing it wrong" Find out which team and then fix it.[/QUOTE] Sorry I will use LUA tags next time. I used this guy's tutorial and snagged a couple of his example jobs.: [url]http://www.facepunch.com/showthread.php?t=731689[/url] Do you guys think it's because it is made for version 2.3.5. rather than 2.3.7.? EDIT: OH! I'm so dumb. I know what you guys are talking about now.
Yea thats my alt, use the updated tutorial by me: [url]http://www.facepunch.com/showpost.php?p=15467722&postcount=99[/url]
[QUOTE=Noodle man;16300828]Yea thats my alt, use the updated tutorial by me: [url]http://www.facepunch.com/showpost.php?p=15467722&postcount=99[/url][/QUOTE] That's exactly the same tutorial as the link I posted. Can someone point out some mistakes in the LUA to see if I got some of the errors down?
No it aint! its a different guide, i updated my 2.35. guide to 2.37 :cawg::cawg:
No, it is the same link. You may have edited it but it's still the same link.
i made this builder class and yea i want to make that the only class that can spawn props, if anybody know how to do it plz help me. [editline]12:13AM[/editline] [QUOTE=UNeedAbiscuit;16299659]RPExtraTeams = {} function AddExtraTeam( Name, color, model, Description, Weapons, command, maximum_amount_of_this_class, Salary, admin, Vote, Haslicense, NeedToChangeFrom) if not Name or not color or not model or not Description or not Weapons or not command or not maximum_amount_of_this_class or not Salary or not admin or Vote == nil then local text = "One of the custom teams is wrongly made! Attempt to give name of the wrongly made team!(if it's nil then I failed):\n" .. tostring(Name) print(text) hook.Add("PlayerSpawn", "TeamError", function(ply) if ply:IsAdmin() then ply:ChatPrint("WARNING: "..text) end end) end local CustomTeam = {name = Name, model = model, Des = Description, Weapons = Weapons, command = command, max = maximum_amount_of_this_class, salary = Salary, admin = admin or 0, Vote = tobool(Vote), NeedToChangeFrom = NeedToChangeFrom, Haslicense = Haslicense} table.insert(RPExtraTeams, CustomTeam) team.SetUp(#RPExtraTeams, Name, color) local Team = #RPExtraTeams if SERVER then timer.Simple(0.1, function(CustomTeam) AddTeamCommands(CustomTeam) end, CustomTeam) end return Team end hook.Add("InitPostEntity", "AddTeams", function() if file.Exists("CustomTeams.txt") then RunString(file.Read("CustomTeams.txt")) if SERVER then resource.AddFile("data/CustomTeams.txt") end if CLIENT and not LocalPlayer():IsSuperAdmin() then file.Delete("CustomTeams.txt") end end end) /*-------------------------------------------------------- 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/male_01.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", "item_ammo_pistol"}, "cp", 4, 65, 0, true, true) TEAM_GANG = AddExtraTeam("Gangster", Color(75, 75, 75, 255), "models/player/group03/male_01.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", "item_ammo_pistol"}, "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]], {"item_ammo_pistol"}, "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_hitman = AddExtraTeam("hitman", Color(80, 45, 0, 255), "models/player/guerilla.mdl", [[Go Kill some people, but you have to get paid]], {"ls_sniper","talk"}, "hitman", 1, 150, 0, true) TEAM_ninja = AddExtraTeam("ninja", Color(50, 50, 50, 180), "models/player/arctic.mdl", [[Be a ninja, invade houses that don't have roofs]], {"ninja_knife","grapplehook","talk"}, "ninja", 1, 150, 0, true) TEAM_SWAT = AddExtraTeam("SWAT", Color(0, 0, 255, 180), "models/player/urban.mdl", [[stop the terrorist`s help
[QUOTE=Fazana;16316472]i made this builder class and yea i want to make that the only class that can spawn props, if anybody know how to do it plz help me. [editline]12:13AM[/editline] I find th bug anyway in TEAM_CAR ull have to make this sign [[]] instead of just ][/QUOTE] That's not it I fixed that and it still doesn't work/ get the error
[QUOTE=UNeedAbiscuit;16316783]That's not it I fixed that and it still doesn't work/ get the error[/QUOTE] Just try looking for it, it could be that u haven't maked // after them. but i dont know if that should do a diffrent but you can just try see if it helps.
Sorry, you need to Log In to post a reply to this thread.