Skip to content

Quake1011/CS2-plugins-lua

Repository files navigation

CS2-plugins-lua

IMPORTANT: Only for folder OTHER: Since when the map is changed, the player_connect event is not executed, in which all important data is transmitted, because of this, after changing the map, some functions will not work for those players who were at the time of changing the map to the server until they are do reconnect

Includes 14 lua plugins for CS2

  • Blocker Passes
  • Spawn point manager
  • Mini-admin
  • Voting for map
  • Ammo and health refill after kill
  • Connect/disconnect events announcer
  • Team switch announcer
  • Advertisement
  • Kill announcer with distance print
  • Round end/start announcer
  • Bomb explode announcer
  • Most destructive
  • Plant blocker
  • Weapon deleter(aka low-leveled weapon restrictor)
- WARNING: WEAPON DELETER NOT REFUND MONEY FOR WEAPON)

Preview

Blocker passes
The plugin allows you to block some certain passages by adding your own items
Spawn point manager
The plugin allows you to add spawn points up to 64
Weapon Deleter(Weapon Restrict)
The plugin removes prohibited weapons when buying and lifting them
Admin message
The plugin adds admin functions
Voting to map
The plugin adds the ability to vote for the map
Bomb explode announcer
The plugin adds a timer in the center of the screen warning of an imminent bomb explosion
Round start and player team changing messages
The plugin allows you to display your own messages at the beginning and end of the round, and team changing event
Connect/disconnect messages
The plugin displays players who have just connected/disconnect
Kill announcer with distance print
The plugin displays the murder and its distance in the chat
Advertisement of your server
Good old advertising for your server. Supports multi-line
Extended connect message
The plugin displays players who have just connected, displaying extended information
Plant blocker
The plugin blocks the selected tape at the beginning of the round

Ammo and health refiller:

Counter-strike.2.2023.10.12.-.14.11.14.06.1.1.mp4

Requirements

Patching

  • manual patching vscript.dll:
    • Windows VSCRIPT LIBRARY - Counter-Strike Global Offensive\game\bin\win64\vscript.dll
    • Linux VSCRIPT LIBRARY - Counter-Strike Global Offensive\game\bin\linuxsteamrt64\libvscript.so
  1. Open your vscript.dll / libvscript.so via any hex editor
    • Replace byte-sequence:
      • Windows - 01 00 00 00 2b d6 74 61 3b d6
      • Linux - 01 0F 84 0A 02 00 00 83 FE 02
    • to this byte-sequence:
      • Windows - 02 00 00 00 2b d6 74 61 3b d6
      • Linux - 02 0F 84 0A 02 00 00 83 FE 01
  2. Save the changes
  3. Success!

You can use one of automation methods below:

Install

  1. Place contains of folder(s) in game\csgo\scripts. If scripts folder not exist then you should to make it
  2. Add to gamemode_your_gamemode_name.cfg next lines:

You can load all script:

sv_cheats 1
script_reload_code your_script_name.lua
script_reload_code your_script_name.lua
script_reload_code your_script_name.lua
sv_cheats 0

or 1 one them:

sv_cheats 1
script_reload_code your_script_name.lua
sv_cheats 0
  1. Reload the server

Blocker Passes commands

  • BPEditor <secret_key> - enable/disable EDITOR mode
    • @secret_key - the string required to confirm switching to EDITOR mode
  • BPReload <secret_key> - reload BlockerPasses.ini config file. Required "secret_key" for this action
    • @secret_key - the string required to confirm file reloading
  • BPGen - generates a template from the added entities on the map in EDITOR mode to console formatted already
  • BPDel <argument> - deletes the selected entities.
    • @argument:
      • last - delete last created entity
      • all - delete all created entity
      • MyNam62eOfEni4tity - delete entities named as for example: MyNam62eOfEni4tity
  • BPTables - outputs a table of values of current entities to the console
  • BPSpawn - сreates an entity in front of the player who creates it
  • BPColor <r> <g> <b> <a> - sets the color for the entities that will be created after that
  • BPModel <path_to_vmdl> - sets the model for the entities that will be created after that

Spawn point manager commands

+ To unlock the player limit, add this to the exec params:
	-maxplayers 64 -maxplayers_override 64
  • SPM <secret_key> - switching the availability of editing
    • @secret_key - required key for SPM activate/deactivate
  • SPMDisplay <team> - toggles the display of current spawns
    • @team:
      • ct - display ct spawns
      • t - display ct spawns
      • if the argument is empty, all existing spawns will be displayed
  • SPMGen - generates a template from the added spawns on the map to console formatted already
  • SPMAdd <team> - adding new <team>-spawn point
    • @team:
      • ct - CT-spawn point
      • t - T-spawn point

Commands("Other" folder)

For admin:

  • kickit <uid> - kick player from server
  • setmap <map> - change the map after the specified time interval in seconds
  • conexec <convar> - change the value of the server variable
  • asay <message> - write a message from the admin to the chat (all characters up to 127 ascii encoding)
  • hp <value> - set the number of hp to the player
  • size <value> - set the player size (any decimal positive number, for example 0.5 or 49.0)
  • clr <uid> <r> <g> <b> <a> - set color and transparency to the player (all RGBA numbers within 0 - 255)
  • grav <uid> <value> - set gravity to the player (any decimal positive number, for example 0.5 or 49.0)
  • fric <uid> <value> - to set the grip on the surface of the player (any decimal positive number, for example 0.5 or 49.0)
  • disarm <uid> <weapon_classname> - remove the player's weapon, for example, weapon_ak47. Delete all weapons - instead of <weapon_classname> write - @all
  • slay <uid> - kill the player
  • changeteam <uid> <team> - change the player's team (team number or short name. For example ct or 3)
  • hudstatus <uid> <status> - turn off or turn off the hood to the player (0 or 1)
  • slap <uid> <hp> - slap player

For all:

  • login <password> - getting administrator rights for a session
  • votemap <mapname> - vote for the map
  • suicide - kill yourself

Credits

Thanks to all those who supported me and my work in any way

About possible problems, please let me know: