Advertisement
Guest User

shared.lua

a guest
Jul 24th, 2013
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.31 KB | None | 0 0
  1. /*--------------------------------------------------------
  2. Default teams. If you make a team above the citizen team, people will spawn with that team!
  3. --------------------------------------------------------*/
  4. TEAM_CITIZEN = AddExtraTeam("Citizen", {
  5. color = Color(20, 150, 20, 255),
  6. model = {
  7. "models/player/group01/male_01.mdl",
  8. "models/player/Group01/Male_02.mdl",
  9. "models/player/Group01/male_03.mdl",
  10. "models/player/Group01/Male_04.mdl",
  11. "models/player/Group01/Male_05.mdl",
  12. "models/player/Group01/Male_06.mdl",
  13. "models/player/Group01/Male_07.mdl",
  14. "models/player/Group01/Male_08.mdl",
  15. "models/player/Group01/Male_09.mdl"},
  16. description = [[A normal Citizen. Your purpose is to roleplay a normal life.]],
  17. weapons = {},
  18. command = "citizen",
  19. max = 0,
  20. salary = 60,
  21. admin = 0,
  22. vote = false,
  23. hasLicense = false,
  24. candemote = false,
  25. mayorCanSetSalary = true
  26. })
  27.  
  28. TEAM_POLICE = AddExtraTeam("Wehrmacht", {
  29. color = Color(25, 25, 170, 255),
  30. model = {"models/wehrmacht_02.mdl",
  31. "models/wehrmacht_04.mdl",
  32. "models/wehrmacht_06.mdl",
  33. "models/wehrmacht_08.mdl",
  34. "models/wehrmacht_09.mdl"},
  35. description = [[You are a soldier of the reich. You serve the Third Reich
  36. and keep order. You have the power to arrest criminals.
  37. Hit them with your arrest baton to put them in jail
  38. Bash them with a stunstick and they might learn better than to disobey
  39. the law.
  40. The Battering Ram can break down the door of a criminal with a warrant
  41. for his/her arrest.
  42. The Battering Ram can also unfreeze frozen props(if enabled).
  43. Type /wanted <name> to alert the public to this criminal
  44. OR go to tab and warrant someone by clicking the warrant button]],
  45. weapons = {"arrest_stick", "unarrest_stick", "stunstick", "door_ram", "weaponchecker"},
  46. command = "wehr",
  47. max = 20,
  48. salary = 65,
  49. admin = 0,
  50. vote = false,
  51. hasLicense = true,
  52. })
  53.  
  54. TEAM_GANG = AddExtraTeam("Resistance", {
  55. color = Color(169, 169, 169, 255),
  56. model = {
  57. "models/player/group03/male_01.mdl",
  58. "models/player/Group03/Male_02.mdl",
  59. "models/player/Group03/male_03.mdl",
  60. "models/player/Group03/Male_04.mdl",
  61. "models/player/Group03/Male_05.mdl",
  62. "models/player/Group03/Male_06.mdl",
  63. "models/player/Group03/Male_07.mdl",
  64. "models/player/Group03/Male_08.mdl",
  65. "models/player/Group03/Male_09.mdl"},
  66. description = [[You protect the people from the Reich and fight for them.]],
  67. weapons = {},
  68. command = "rebel",
  69. max = 20,
  70. salary = 80,
  71. admin = 0,
  72. vote = false,
  73. hasLicense = false,
  74. mayorCanSetSalary = false
  75. })
  76.  
  77. TEAM_MOB = AddExtraTeam("Mafia Boss", {
  78. color = Color(255, 20, 147, 255),
  79. model = {
  80. "models/humans/mafia/male_02.mdl",
  81. "models/humans/mafia/male_04.mdl",
  82. "models/humans/mafia/male_06.mdl",
  83. "models/humans/mafia/male_07.mdl",
  84. "models/humans/mafia/male_08.mdl"},
  85. description = [[The Mafia Boss is the leader of the mafia in the city.
  86. With his power he coordinates them and forms an efficent crime
  87. organization.]],
  88. weapons = {},
  89. command = "boss",
  90. max = 1,
  91. salary = 140,
  92. admin = 0,
  93. vote = false,
  94. hasLicense = false,
  95. mayorCanSetSalary = false,
  96. })
  97.  
  98. TEAM_GUN = AddExtraTeam("Black Market Dealer", {
  99. color = Color(139, 69, 19, 255),
  100. model = {"models/player/eli.mdl"},
  101. description = [[You sell weapons to the people of this city.
  102. Set up shop somewhere and sell!]],
  103. weapons = {},
  104. command = "gundealer",
  105. max = 4,
  106. salary = 80,
  107. admin = 0,
  108. vote = false,
  109. hasLicense = false,
  110. mayorCanSetSalary = true
  111. })
  112.  
  113. TEAM_MEDIC = AddExtraTeam("Medic", {
  114. color = Color(47, 79, 79, 255),
  115. model = "models/player/kleiner.mdl",
  116. description = [[With your medical knowledge,
  117. you heal players to proper
  118. health.
  119. Without a medic, people can not be healed.
  120. Left click with the Medical Kit to heal other players.
  121. Right click with the Medical Kit to heal yourself.]],
  122. weapons = {"med_kit"},
  123. command = "medic",
  124. max = 5,
  125. salary = 70,
  126. admin = 0,
  127. vote = false,
  128. hasLicense = false,
  129. medic = true,
  130. mayorCanSetSalary = true
  131. })
  132.  
  133. TEAM_CHIEF = AddExtraTeam("Nazi Secretary", {
  134. color = Color(244, 164, 96, 255),
  135. model = {
  136. "models/Characters/Hostage_01.mdl",
  137. "models/Characters/Hostage_02.mdl",
  138. "models/Characters/hostage_03.mdl",
  139. "models/Characters/hostage_04.mdl"},
  140. description = [[You are a Nazi Secretary. Secretate...]],
  141. weapons = {},
  142. command = "secretary",
  143. max = 4,
  144. salary = 65,
  145. admin = 0,
  146. vote = false,
  147. hasLicense = true,
  148. chief = false,
  149. })
  150.  
  151. TEAM_MAYOR = AddExtraTeam("The Fuhrer", {
  152. color = Color(150, 20, 20, 255),
  153. model = {"models/minson97/hitler/hitler.mdl"},
  154. description = [[You are the Fuhrer, lead your troops and strike
  155. down all opposition]],
  156. weapons = {"weapon_sim_ppk"},
  157. command = "fuhrer",
  158. max = 1,
  159. salary = 90,
  160. admin = 0,
  161. vote = true,
  162. hasLicense = false,
  163. mayor = true,
  164. })
  165.  
  166. TEAM_HOBO = AddExtraTeam("Hobo", {
  167. color = Color(80, 45, 0, 255),
  168. model = {"models/player/corpse1.mdl"},
  169. description = [[The lowest member of society. All people see you laugh.
  170. Beg for your food and money
  171. Make your own wooden home somewhere in a corner or
  172. outside someone else's door]],
  173. weapons = {""},
  174. command = "hobo",
  175. max = 20,
  176. salary = 0,
  177. admin = 0,
  178. vote = false,
  179. hasLicense = false,
  180. candemote = false,
  181. hobo = true,
  182. mayorCanSetSalary = false
  183. })
  184.  
  185. //ADD CUSTOM TEAMS UNDER THIS LINE:
  186.  
  187. TEAM_MAFIA = AddExtraTeam("Mafia", {
  188. color = Color(128, 0, 128, 255),
  189. model = {
  190. "models/humans/mafia/male_02.mdl",
  191. "models/humans/mafia/male_04.mdl",
  192. "models/humans/mafia/male_06.mdl",
  193. "models/humans/mafia/male_07.mdl",
  194. "models/humans/mafia/male_08.mdl"},
  195. description = [[You are a member of the local mafia. Follow
  196. the orders your boss gives you and on the side
  197. you can work as a hired guard or assist in raids for cash.]],
  198. weapons = {},
  199. command = "mafia",
  200. max = 19,
  201. salary = 90,
  202. admin = 0,
  203. vote = false,
  204. hasLicense = false,
  205. })
  206.  
  207. TEAM_THIEF = AddExtraTeam("Thief", {
  208. color = Color(0, 100, 0, 255),
  209. model = {
  210. "models/player/group01/male_01.mdl",
  211. "models/player/Group01/Male_02.mdl",
  212. "models/player/Group01/male_03.mdl",
  213. "models/player/Group01/Male_04.mdl",
  214. "models/player/Group01/Male_05.mdl",
  215. "models/player/Group01/Male_06.mdl",
  216. "models/player/Group01/Male_07.mdl",
  217. "models/player/Group01/Male_08.mdl",
  218. "models/player/Group01/Male_09.mdl"},
  219. description = [[You are a lowly thief. Use your lockpick to
  220. break into houses and steal whatevers inside.]],
  221. weapons = {"weapons_lockpick"},
  222. command = "thief",
  223. max = 3,
  224. salary = 50,
  225. admin = 0,
  226. vote = false,
  227. hasLicense = false,
  228. candemote = false
  229. })
  230.  
  231. TEAM_RLEAD = AddExtraTeam("Resistance Leader", {
  232. color = Color(128, 128, 128, 255),
  233. model = {
  234. "models/player/group03/male_01.mdl",
  235. "models/player/Group03/Male_02.mdl",
  236. "models/player/Group03/male_03.mdl",
  237. "models/player/Group03/Male_04.mdl",
  238. "models/player/Group03/Male_05.mdl",
  239. "models/player/Group03/Male_06.mdl",
  240. "models/player/Group03/Male_07.mdl",
  241. "models/player/Group03/Male_08.mdl",
  242. "models/player/Group03/Male_09.mdl"},
  243. description = [[You protect the people from the Reich and fight for them.]],
  244. weapons = {},
  245. command = "rebel",
  246. max = 20,
  247. salary = 80,
  248. admin = 0,
  249. vote = false,
  250. hasLicense = false,
  251. mayorCanSetSalary = false
  252. })
  253.  
  254.  
  255.  
  256.  
  257.  
  258. /*
  259. --------------------------------------------------------
  260. HOW TO MAKE A DOOR GROUP
  261. --------------------------------------------------------
  262. AddDoorGroup("NAME OF THE GROUP HERE, you see this when looking at a door", Team1, Team2, team3, team4, etc.)
  263.  
  264. WARNING: THE DOOR GROUPS HAVE TO BE UNDER THE TEAMS IN SHARED.LUA. IF THEY ARE NOT, IT MIGHT MUCK UP!
  265.  
  266.  
  267. The default door groups, can also be used as examples:
  268. */
  269. AddDoorGroup("Reichstag", TEAM_CHIEF, TEAM_POLICE, TEAM_MAYOR)
  270.  
  271.  
  272. /*
  273. --------------------------------------------------------
  274. HOW TO MAKE AN AGENDA
  275. --------------------------------------------------------
  276. AddAgenda(Title of the agenda, Manager (who edits it), Listeners (the ones who just see and follow the agenda))
  277.  
  278. WARNING: THE AGENDAS HAVE TO BE UNDER THE TEAMS IN SHARED.LUA. IF THEY ARE NOT, IT MIGHT MUCK UP!
  279.  
  280. The default agenda's, can also be used as examples:
  281. */
  282.  
  283.  
  284. /*
  285. ---------------------------------------------------------------------------
  286. HOW TO MAKE A GROUP CHAT
  287. ---------------------------------------------------------------------------
  288. Pick one!
  289. GAMEMODE:AddGroupChat(List of team variables separated by comma)
  290.  
  291. or
  292.  
  293. GAMEMODE:AddGroupChat(a function with ply as argument that returns whether a random player is in one chat group)
  294. This one is for people who know how to script Lua.
  295.  
  296. */
  297. GM:AddGroupChat(function(ply) return ply:IsCP() end)
  298. GM:AddGroupChat(TEAM_MOB, TEAM_GANG)
  299.  
  300. /*---------------------------------------------------------------------------
  301. Define which team joining players spawn into and what team you change to if demoted
  302. ---------------------------------------------------------------------------*/
  303. GM.DefaultTeam = TEAM_CITIZEN
  304.  
  305. /*---------------------------------------------------------------------------
  306. Define which teams belong to civil protection
  307. Civil protection can set warrants, make people wanted and do some other police related things
  308. ---------------------------------------------------------------------------*/
  309. GM.CivilProtection = {
  310. [TEAM_POLICE] = true,
  311. [TEAM_CHIEF] = false,
  312. [TEAM_MAYOR] = true,
  313. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement