Advertisement
Guest User

Untitled

a guest
Aug 28th, 2015
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Hello, I have created an NPC like this
  2.  
  3. extras = {
  4. name = "Extras",
  5. model = {"models/Characters/hostage_04.mdl"},
  6. pos = {
  7. [1] = {
  8. pos = Vector(-6936.791016, -9264.370117, 4252.031250),
  9. angle = Angle(0.000, 90.000, 0.000),
  10. }
  11. },
  12. limit = 0.25
  13. },
  14.  
  15. 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.
  16.  
  17. Next, how can I set a strict limit like only 2 people can become a job without using the percentage?
  18.  
  19. And last but not least, I am using WMC Jobs and this comes with an external file which adds jobs to the game:
  20.  
  21. TEAM_CAMERAMAN = AddExtraTeam("Camera Man", {
  22. color = Color(170, 210, 38, 255),
  23. model = "models/player/hostage/hostage_03.mdl",
  24. description = [[Camera Men can broadcast live TV using his TV camera. Should accompany radio DJ for maximum coverage.]],
  25. weapons = {"wyozi_tvcamera"},
  26. command = "513742624",
  27. max = 1,
  28. salary = 200,
  29. admin = 0,
  30. vote = false,
  31. hasLicense = false,
  32. candemote = false,
  33. mayorCanSetSalary = true,
  34. type = media,
  35. unlockCost = 5000
  36. })
  37.  
  38. and I've added this job to this NPC
  39.  
  40. media = {
  41. name = "Media",
  42. model = {"models/Characters/hostage_04.mdl"},
  43. pos = {
  44. [1] = {
  45. pos = Vector(-5339.968750, -9286.769531, 136.031250),
  46. angle = Angle(0.955892, 179.064041, 0.000000),
  47. }
  48. },
  49. limit = 0.05
  50. },
  51. extras = {
  52. name = "Extras",
  53. model = {"models/Characters/hostage_04.mdl"},
  54. pos = {
  55. [1] = {
  56. pos = Vector(-6936.791016, -9264.370117, 4252.031250),
  57. angle = Angle(0.000, 90.000, 0.000),
  58. }
  59. },
  60. limit = 0.25
  61. },
  62.  
  63. The problem is, just like the mayor, they still appear everywhere.
  64.  
  65.  
  66. Thanks for helping out.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement