Donate to the B3 fund!

"even a small donation helps!"
Donate with PayPal!

Author Topic: SourceMod Plugin for B3  (Read 4356 times)

Offline Spoon

  • Sr. Member
  • ****
  • Posts: 255
    • EHD Gaming
SourceMod Plugin for B3
« on: September 13, 2012, 03:02:59 AM »
This is a simple SourceMod plugin i made for B3 what it does it added the following rcon commands:
b3_say -Normal say message
b3_psay -Private message
b3_hsay -Message to Hint Box (&commands)

What this plugin does is changes the name from "Console" to "B3" so it will output the following:

b3_say <message>:

b3_psay <#id|name> <message>:

b3_hsay <message>:


Enable for B3 to use these commands you would have to edit your b3/parsers/csgo.py

on line 384 replace "self.output.write('sm_say "%s"' % line)" with "self.output.write('b3_say "%s"' % line)"

on line 393 replace "self.output.write('sm_hsay "%s"' % line)" with "self.output.write('b3_hsay "%s"' % line)"

on line 403 replace "self.output.write('sm_psay #%s "%s"' % (client.guid, line))" with "self.output.write('b3_psay #%s "%s"' % (client.guid, line))"

Download: B3Say.smx and place it into your csgo\addons\sourcemod\plugins folder
« Last Edit: September 13, 2012, 03:06:36 AM by Spoon »

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: SourceMod Plugin for B3
« Reply #1 on: September 13, 2012, 09:41:53 AM »
This is brilliant ! Thanks for sharing that.

if you are using a B3 version which has the csgo.py file version > 1.1 then you can just install the SM plugin and B3 will automatically recognize it and use it. No need to edit your b3/parsers/csgo.py


Offline Spoon

  • Sr. Member
  • ****
  • Posts: 255
    • EHD Gaming
Re: SourceMod Plugin for B3
« Reply #2 on: September 28, 2012, 05:51:51 PM »
Made an update to the plugin it now creates a config file when you run it from there you can set the prefix you want displayed.

Code: [Select]
// This file was auto-generated by SourceMod (v1.5.0-dev)
// ConVars for plugin "b3say.smx"


// Prefix that is displayed when message is sent
// -
// Default: "[B3]"
b3_say_prefix "[B3]"

 


Rate this page +1 at Google Search