Raised This Month: $51 Target: $400
 12% 

[CSGO] Create own Radio with custom Sounds


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
NatsUpX
Junior Member
Join Date: Jun 2022
Old 07-03-2022 , 10:01   [CSGO] Create own Radio with custom Sounds
Reply With Quote #1

Hello,

Does anyone know a plugin on where i can create my own radio and put my own soundfiles in it?

I jsut know this one but this is replacing the existing radio commands.
https://forums.alliedmods.net/showthread.php?p=2609949


I more need a new window appearing with custom text.
NatsUpX is offline
Cruze
Veteran Member
Join Date: May 2017
Old 07-04-2022 , 07:29   Re: [CSGO] Create own Radio with custom Sounds
Reply With Quote #2

Untested.

Command:
sm_radio [opens radio menu]
Admin Command:
sm_reloadradio [reload radio config file]

custom_radios.cfg file in addons/sourcemod/configs
Attached Files
File Type: sp Get Plugin or Get Source (CustomRadio.sp - 18 views - 3.6 KB)
File Type: cfg custom_radios.cfg (125 Bytes, 16 views)
File Type: smx CustomRadio.smx (15.4 KB, 8 views)
__________________
Taking paid private requests! Contact me

Last edited by Cruze; 07-04-2022 at 14:53. Reason: Added command to post.
Cruze is offline
Cruze
Veteran Member
Join Date: May 2017
Old 07-04-2022 , 14:46   Re: [CSGO] Create own Radio with custom Sounds
Reply With Quote #3

Version 1.0.1

Changelog:
- Added `command` option that hooks the specific radio on a console command.
- Added `volume` option to set volume of radio sound individually.
- Added cooldown ConVar (`sm_customradio_cooldown`) for radio to avoid spamming. [No config file will be generated so put this convar in some valve config file; for eg. server.cfg]

Version 1.0.2

Bug fix:
- Forgot to delete KeyValues variable at the end. [Can cause memory leak]

Version 1.0.3

Bug fix:
- `sound` path string & `print` string length increased to 256 & 128 respectively.
Attached Files
File Type: cfg custom_radios.cfg (205 Bytes, 9 views)
File Type: sp Get Plugin or Get Source (CustomRadio.sp - 16 views - 5.5 KB)
File Type: smx CustomRadio.smx (17.7 KB, 10 views)
__________________
Taking paid private requests! Contact me

Last edited by Cruze; 07-04-2022 at 15:57. Reason: Version 1.0.3
Cruze is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:09.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode