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

[L4D] The Best Thing


Post New Thread Reply   
 
Thread Tools Display Modes
Author
finishlast
Senior Member
Join Date: Nov 2018
Location: In Reno with the vitamin
Plugin ID:
7633
Plugin Version:
0.1
Plugin Category:
Fun Stuff
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Make the clients download a mp3 and then play it in chat via !thebestthing
    Old 05-07-2021 , 10:46   [L4D] The Best Thing
    Reply With Quote #1

    This plugin makes the clients download a custom mp3 on connect and an admin with vote flag can play it by chat command:

    !thebestthing

    Based on ([L4D/Any?] Map (round) Start Music Player (infinite tracks)) by Dragokas and Harry Potter

    Preperation:

    You will need a webserver to host the mp3, you will prolly have one, take the one that is hosting your motd for example.

    Create an mp3 encoded in 44100 Hz sample rate, otherwise it may not play at all.
    See attached file in zip file for testing. (Use testfile it works 100%)

    In server.cfg allowdownload and set path to DL folder:
    PHP Code:
    sm_cvar sv_allowdownload "1"
    sm_cvar sv_downloadurl "http://your-content-server.com/game/left4dead/" 
    Create a folder in:
    PHP Code:
    http://your-content-server.com/game/left4dead/ 
    called sound
    and in there another folder called random

    PHP Code:
    http://your-content-server.com/game/left4dead/sounds/random 
    Put the testfile there.

    Manually check if downloadable from:
    PHP Code:
    http://your-content-server.com/game/left4dead/sound/random/thebestthing.mp3 
    Compile l4d_thebestthing.sp and place l4d_thebestthing.smx into sourcemod/plugins folder.

    If all went well you should connect to the server, the client downloads the mp3 and if you are admin with ADMFLAG_VOTE you can play that file via chat !thebestthing

    Allied Modders is the best thing since sliced bread.

    Take it as a statement.

    Have Fun!

    p.s. Just like all the other plugins messing with the download table it makes players with a MAC crash. Well better get a real computer anyways.

    p.p.s the client will only DL the file once, so if you change it, only new players get the new version, so if you change it, you might wanna use a different mp3 name.
    Attached Files
    File Type: zip thebestthing.zip (40.5 KB, 198 views)
    File Type: sp Get Plugin or Get Source (l4d_thebestthing.sp - 400 views - 1.3 KB)
    __________________

    Last edited by finishlast; 11-05-2021 at 11:18.
    finishlast is offline
    GoGetSomeSleep
    Senior Member
    Join Date: Dec 2018
    Location: Miami/Florida
    Old 05-10-2021 , 13:03   Re: [L4D] The Best Thing
    Reply With Quote #2

    we love sliced bread.
    GoGetSomeSleep 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 06:42.


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