Cactus

HL2DM - RP Commands

Mar 9th, 2013
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.98 KB | None | 0 0
  1. VERSION 3.2.35
  2. Roleplay Command Guide
  3. Plugin Extension For Half-Life 2:Deathmatch
  4.  
  5. Created by: [GR]Nick_6893{A}
  6. 2010-2012
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13. The content of this document contains all the necessary commands to run and operate the roleplay
  14. plugin.
  15. 1
  16.  
  17. Table of Contents
  18. Setting Up Your Roleplay Server ................................................................................................... 2
  19. Buydoor....................................................................................................................................... 2
  20. Cars ............................................................................................................................................. 2
  21. Cop Doors ................................................................................................................................... 2
  22. Firefighter Doors ......................................................................................................................... 2
  23. Jails ............................................................................................................................................. 3
  24. No Crime Zones .......................................................................................................................... 3
  25. No Kill Zones .............................................................................................................................. 3
  26. NPCs ........................................................................................................................................... 4
  27. Phones ......................................................................................................................................... 4
  28. Spawns ........................................................................................................................................ 4
  29. Taxi Zones .................................................................................................................................. 4
  30. Special Commands.......................................................................................................................... 5
  31. Editing Entities............................................................................................................................ 5
  32. Employment ................................................................................................................................ 5
  33. Items ............................................................................................................................................ 5
  34. Money ......................................................................................................................................... 5
  35. Doors ........................................................................................................................................... 6
  36. Notices ........................................................................................................................................ 6
  37. Saving ......................................................................................................................................... 6
  38. Special Doors .............................................................................................................................. 6
  39. Other Admin Commands ............................................................................................................ 6
  40. Client Commands............................................................................................................................ 7
  41. Banking ....................................................................................................................................... 7
  42. Buydoor....................................................................................................................................... 7
  43. Casino ......................................................................................................................................... 7
  44. Chat Commands .......................................................................................................................... 7
  45. Server Cvars .................................................................................................................................... 8
  46.  
  47. 2
  48.  
  49. Setting Up Your Roleplay Server
  50.  
  51. Buydoor
  52. The buydoor feature allows users to be able to buy and own their own house.
  53.  
  54. sm_setdooramount <amount> - Set a door up to be buyable. Run this command
  55. while looking at a door.
  56.  
  57. sm_resetdoor – Reset a buydoor back to for sale. Owner and keys given are
  58. automatically taken away.
  59.  
  60. sm_deletedoor – Remove a buydoor from the database. Owner and keys given are
  61. automatically taken away.
  62.  
  63.  
  64. Cars
  65. Create airboat spawns for people to drive around. Currently, it’s not fully working as airboats
  66. aren’t drivable in the new source engine.
  67.  
  68. sm_createcar <1-50> - Create a car.
  69. sm_removecar <1-50> - Remove a car.
  70. sm_carlist – Print out all cars in console.
  71. sm_carid – Print out the current car id you’re looking at in chat.
  72. sm_givecarkeys <name> – Give a person keys to an airboat. Look at the
  73. airboat while running command.
  74. sm_takecarkeys <name> - Take a person keys from an airboat.
  75.  
  76.  
  77. Cop Doors
  78. Set up default cop doors that all cops will get access to.
  79.  
  80. sm_createcopdoor <1-64> - Set a default cop door. Run this command while
  81. looking at a door.
  82. sm_removecopdoor <1-64> - Remove a default cop door.
  83. sm_listcopdoors – Print out all cop doors in console.
  84.  
  85.  
  86. Firefighter Doors
  87. Set up default firefighter doors that all firefighters will get access to.
  88.  
  89. sm_createfirefighterdoor <1-64> - Set a default firefighter door. Run this
  90. command while looking at a door.
  91. sm_removefirefighterdoor <1-64> - Remove a default firefighter door.
  92. sm_listfirefighterdoors – Print out all firefighter doors in console.
  93.  
  94.  
  95.  
  96.  
  97. 3
  98.  
  99. Gambling Zones
  100. These zones allow users to gamble their money with roulette.
  101.  
  102. sm_addgamblingzone <1-75> - Create a gambling zone from where your standing.
  103. sm_removegamblingzone <1-75> - Remove a gambling zone.
  104. sm_listgamblingzones – Print out all gambling zones in console.
  105. sm_setgamblingowner <name> <1-75> - Set the owner of a gambling zone.
  106. sm_removegamblingowner <1-75> - Remove the owner of a gambling zone.
  107.  
  108.  
  109.  
  110. Jails
  111. Jails are used when a combine cuffs and sends a rebel to prison for exceeding the crime limit.
  112. Without jails, the rebels wouldn’t be punished for what they did!
  113.  
  114. sm_addjail <1-10> - Adds a jail position based on your feet.
  115. sm_removejail <1-10> - Removes a jail position.
  116. sm_listjails – Print out the jail positions in console.
  117.  
  118. sm_setexit – Set the exit position when a person is released from jail.
  119.  
  120. sm_setsuicide <1-2> - Set death penalty positions. Also referred as Order 66.
  121. sm_removesuicide <1-2> - Remove a death penalty position.
  122. sm_listsuicide – Print out the suicide positions in console.
  123.  
  124. sm_setvipjail – Set the vip jail position.
  125.  
  126. sm_setafk – Set the afk room position.
  127.  
  128.  
  129. No Crime Zones
  130. These zones are used for preventing users from gaining crime. Good for doing any fighting
  131. events.
  132.  
  133. sm_createnocrimezone <1-100> - Create a no crime zone from where your
  134. standing.
  135. sm_removenocrimezone <1-100> - Remove a no crime zone.
  136. sm_listnocrimezones – Print out all no crime zones in console.
  137.  
  138.  
  139. No Kill Zones
  140. These zones are used for protecting users from getting killed. Perfect for afk areas.
  141.  
  142. sm_createnokillzone <1-100> - Create a no kill zone from where your standing.
  143. sm_removenokillzone <1-100> - Remove a no kill zone.
  144. sm_listnokillzones – Print out all no kill zones in console.
  145.  
  146.  
  147.  
  148.  
  149. 4
  150.  
  151. NPCs
  152. Npcs are used for various functions. They can be used as job listers, bankers, vendors, taxi
  153. drivers, etc.
  154.  
  155. sm_createnpc <1-100> <Npc> <type 0-8> <opt model> - Create a npc based on
  156. your feet.
  157.  
  158.  
  159. <Npc> - Type of HL2 npc. Example: dog, alyx, gman, mossman
  160.  
  161.  
  162. <type> - Function of npc
  163.  
  164. 0-Job Lister, 1-Banker, 2-Vendor, 3-Auction, 4-Rebuy,
  165.  
  166. 5-Auction Buy, 6-Decoration, 7-Gang Seller, 8-Taxi Driver
  167.  
  168.  
  169.  
  170. <opt model> - Use a custom model instead of HL2. Do not mention models/
  171. or .mdl in this argument.
  172.  
  173. sm_removenpc <type 0-8> <1-100> - Remove a npc.
  174. sm_npcwho – Prints the npc id number in chat by looking at the npc.
  175. sm_npclist – Prints all the npcs in console.
  176. sm_npcnotice <id> <text> - Place a notice on a npc.
  177.  
  178. sm_addvendoritem <id> <item id> - Add an item to a vendor npc.
  179. sm_removevendoritem <id> <item id> - Take an item away from a vendor npc.
  180.  
  181.  
  182. Phones
  183. Phones are used for players to contact each other in a private chat.
  184.  
  185. sm_createphone <1-50> - Set a phone zone. Position is based where your
  186. standing.
  187. sm_removephone <1-50> - Remove a phone.
  188. sm_phonelist – Print out all the phones in console.
  189.  
  190.  
  191. Spawns
  192. Set up spawn points for both combine and rebels.
  193.  
  194. sm_createspawn <1-25> <1-rebels 2-cops> - Create a spawn point for a team.
  195. sm_removespawn <1-25> <1-rebels 2-cops> - Remove a spawn point from a team.
  196. sm_spawnlist <1-rebels 2-cops> - Print out all spawns in console.
  197.  
  198.  
  199. Taxi Zones
  200. These zones are the destinations from your taxi npcs.
  201.  
  202. sm_addtaxizone <1-20> <Name of Destination in Quotes> - Create a taxi
  203. destination
  204. sm_removetaxizone – Remove a taxi destination.
  205. sm_listtaxizones – Print out all taxi zones in console.
  206.  
  207.  
  208. 5
  209.  
  210. Special Commands
  211.  
  212. Editing Entities
  213.  
  214. sm_freezeprop – Freeze a prop.
  215. sm_unfreezeprop – Unfreeze a prop.
  216. sm_delete – Delete an entity.
  217. sm_angles <x> <y> <z> - Change the angles of an entity.
  218. sm_origin <x> <y> <z> - Change the origin of an entity.
  219.  
  220.  
  221. Employment
  222.  
  223. sm_createjob <id> <Name of Job in Quotes> <0-public 1-admin> - Create a job.
  224. sm_removejob <id> <0-public 1-admin> - Remove a job.
  225. sm_joblist – Print out all jobs in console.
  226. sm_employ <name> <id> - Employ a person with a job not in public.
  227.  
  228.  
  229. Items
  230.  
  231. sm_createitem <id> <Name of Item in Quotes> <type> <variable> <cost> - Create
  232. a new item in the database.
  233. sm_removeitem <id> - Remove an item.
  234. sm_itemlist <page> <opt funcstring> - Print out items in console.
  235. sm_additem <name> <id> <amount> - Give a person items.
  236. sm_takeitem <name> <id> <amount> - Take away items from a person.
  237. sm_listitem <name> - List all items a player owns.
  238. sm_convertitem <original id> <new id> - Change an item id.
  239.  
  240.  
  241. Money
  242.  
  243. sm_addmoney <name> <amount> - Add money to a person’s account.
  244. sm_addmoneybank <name> <amount> - Add money to a person’s bank account.
  245. sm_setmoney <name> <amount> - Set money to a person’s account.
  246. sm_setmoneybank <name> <amount> - Set money to a person’s bank account.
  247. sm_setincome <name> <money> - Set the income of a person.
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259. 6
  260.  
  261. Doors
  262.  
  263. sm_givedoor <name> - Give a person keys to a door. Run command while looking
  264. at door.
  265. sm_takedoor <name> - Take a person’s keys to a door.
  266. sm_takedoorall – Remove everyone’s keys to a door.
  267. sm_doorhistory – Print history of admins who gave/took doors.
  268. sm_cleardoorhistory – Clear the history of a door.
  269. sm_listdoor – List who owns keys to a door.
  270. sm_doorshow – Lookup last time owner of a door was online.
  271. sm_lockit – Superlock a door.
  272. sm_unlockit – Unlock a superlock.
  273.  
  274.  
  275. Notices
  276.  
  277. sm_setnotice <ent> <1|0 save> <string> - Set a notice on an entity.
  278. sm_looknotice <1|0 save> <string> - Set a notice on an entity by looking.
  279. sm_noticelist <page> – Print out all notices in console.
  280.  
  281.  
  282. Saving
  283.  
  284. sm_save – Save an entity.
  285. sm_remove – Remove a saved entity.
  286. sm_changeskin <skin number> <0|1 save> - Change the skin of a saved entity.
  287. sm_changecolor <red> <green> <blue> <alpha> - Change the color of a save
  288. entity.
  289.  
  290.  
  291. Special Doors
  292.  
  293. sm_spawndoor <1-14 skins> - Spawn a custom door (temp).
  294. sm_tempremovedoor – Temporarily remove a door from database.
  295. sm_permremovedoor – Permanently remove a door from database.
  296. sm_savedoor <1-100> - Save a door to database.
  297. sm_listdoors – Print out all door ids used in console.
  298.  
  299.  
  300. Other Admin Commands
  301.  
  302. sm_crime <name> <crime> - Set a person’s crime.
  303. sm_status – Print out status of all players currently in server in console.
  304. sm_bountyall – Turn Bounty on for all players.
  305. sm_cuff <name> - Cuff a player.
  306. sm_uncuff <name> - Uncuff a player.
  307. sm_push – Push a player.
  308. sm_setexp <name> <exp> - Set the amount of experience of a player.
  309. sm_playeroftheweek <name> - Reward the player of the week.
  310. sm_setgarbagezone – Set a zone up for garbage men to throw out trash.
  311.  
  312. 7
  313.  
  314.  
  315. Client Commands
  316.  
  317. Banking
  318.  
  319. sm_withdraw <amount> - Withdraw money from bank account.
  320. sm_deposit <amount> - Deposit money to bank account.
  321.  
  322.  
  323. Buydoor
  324.  
  325. sm_mydoormess <message> - Set the notice on your door.
  326. sm_givekeys <1-50> <name> - Give keys to your door.
  327. sm_deletekeys <1-50> - Take away keys from someone to your door.
  328. sm_listkeys – Print out which keys are given.
  329. sm_locks – Display how many locks are on a door.
  330.  
  331.  
  332. Casino
  333.  
  334. sm_mycasinos – List out all your casinos.
  335. sm_givecasinomoney <id> <amount> – Give money to your casino.
  336. sm_takecasinomoney <id> <amount> - Take money from your casino.
  337. sm_opencasino <id> - Open your casino to the public.
  338. sm_closecasino <id> - Close your casino to the public.
  339. sm_maxbet <id> <amount> - Maximum amount of money someone can bet at once.
  340.  
  341. sm_bet <type> <amount> - Bet at a casino.
  342. sm_bettypes – Print out types of betting.
  343. sm_casinocommands – Print out casino commands.
  344.  
  345.  
  346. Chat Commands
  347.  
  348. /items – Open up your inventory.
  349. !writecheck or /writecheck – Write a check.
  350. !buydoor – Buy a door.
  351. !selldoor – Sell a door.
  352. /tracers – Toggle tracers.
  353. /mainhud – Toggle main hud.
  354. /centerhud – Toggle center hud.
  355. /crimehud – Toggle crime hud (Combine Only).
  356. /stuck – Commit Suicide (Lose Money).
  357. /exitafk – Exit afk spot.
  358. /minutes – Print how many minutes your in server.
  359. /watergunon – Turn on watergun (Firefighter).
  360. /watergunoff – Turn off watergun (Firefighter).
  361. /dispose – Dispose a bomb (Firefighter).
  362. /diffuse – Diffuse a bomb (Firefighter).
  363. /answer – Answer a phone call.
  364. /hangup – Hangup a phone call.
  365. 8
  366.  
  367. /door – Owners of door online.
  368. Server Cvars
  369.  
  370. sv_crimetocuff - Minimum crime for a client to have to be cuffed. (Default
  371. 400)
  372.  
  373. sv_crimepermin - Assigned how much crime per minute when client goes to jail
  374. (Default 300)
  375.  
  376. sv_rpexperience - Enable/Disable the experience points for both rebels/cops.
  377. (Default 1)
  378.  
  379. sv_taximode - Modes: 0 = Use Taxi Only with 0 crime, 1 = Use Taxi with Crime
  380. (Default 1)
  381.  
  382. sv_robmode - Modes: 0 = Rebels can rob with no cops online, 1 = Rebels can
  383. only rob if cops are online (Default 1)
  384.  
  385. sv_starterpacks - Modes: 0 = No starterpacks, 1 = Starterpacks are given
  386. (Default 1)
  387.  
  388. sv_firefightermode - Modes: 0 = Easy mode with Menus, 1 = Hard mode with no
  389. Menus
  390.  
  391. sv_firefighterchiefmode - Modes: 0 = Chief is not a cop, 1 = Chief is a cop
  392.  
  393. sv_playeroftheweek - Modes: 0 = Disabled, 1 = Enable
  394.  
  395. sv_commandslocks - Modes: 0 = Disabled, 1 = Enable (sm_locks)
  396.  
  397. sv_crimehudamt - How much crime client's need to be on menu (Default 0 -
  398. Everyone is shown on menu)
  399.  
  400. sv_crimehudsetting - Modes: 0 - Disabled menu when combine comes. 1 - Enable
  401. menu when combine comes (Default 0)
  402.  
  403. sv_firefighterteam - Modes: 1 - Combine, 2 - Rebels (Default 1) [This doesn't
  404. include the chief]
  405.  
  406. sv_logdoors - Modes: 0 - off, 1 - on (Default 1)
  407.  
  408. sv_rpmotd "Message" - Message when person joins server [^ seperates lines]
  409. (Default is "Please Hit Escape to^Select a Job and^Begin Playing!")
  410.  
  411. sv_selldoordeduction "10" - Deduction Percentage off Original Price of
  412. buydoor
  413.  
  414. sv_inventorycategories "1" - Enable Categories For Inventory (0 – off)
  415.  
  416. sv_savejobs", "0" - Modes: 0 = Disable, 1 = Enable
  417.  
  418. sv_jobswitch "1" – Modes: 0 = Disable, 1 = Enable (Allow
Add Comment
Please, Sign In to add comment