Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Hello, I have created an NPC like this
- extras = {
- name = "Extras",
- model = {"models/Characters/hostage_04.mdl"},
- pos = {
- [1] = {
- pos = Vector(-6936.791016, -9264.370117, 4252.031250),
- angle = Angle(0.000, 90.000, 0.000),
- }
- },
- limit = 0.25
- },
- and added the Mayor job to it because I have a voting system with a mayor NPC and I don't want people to be able to chose this job via this (your) plugin. Unfortunately, this method does not work and the mayor job appears in each NPC on the server.
- Next, how can I set a strict limit like only 2 people can become a job without using the percentage?
- And last but not least, I am using WMC Jobs and this comes with an external file which adds jobs to the game:
- TEAM_CAMERAMAN = AddExtraTeam("Camera Man", {
- color = Color(170, 210, 38, 255),
- model = "models/player/hostage/hostage_03.mdl",
- description = [[Camera Men can broadcast live TV using his TV camera. Should accompany radio DJ for maximum coverage.]],
- weapons = {"wyozi_tvcamera"},
- command = "513742624",
- max = 1,
- salary = 200,
- admin = 0,
- vote = false,
- hasLicense = false,
- candemote = false,
- mayorCanSetSalary = true,
- type = media,
- unlockCost = 5000
- })
- and I've added this job to this NPC
- media = {
- name = "Media",
- model = {"models/Characters/hostage_04.mdl"},
- pos = {
- [1] = {
- pos = Vector(-5339.968750, -9286.769531, 136.031250),
- angle = Angle(0.955892, 179.064041, 0.000000),
- }
- },
- limit = 0.05
- },
- extras = {
- name = "Extras",
- model = {"models/Characters/hostage_04.mdl"},
- pos = {
- [1] = {
- pos = Vector(-6936.791016, -9264.370117, 4252.031250),
- angle = Angle(0.000, 90.000, 0.000),
- }
- },
- limit = 0.25
- },
- The problem is, just like the mayor, they still appear everywhere.
- Thanks for helping out.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement