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

Sound plugin first round


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
remix.allstarz
Member
Join Date: Dec 2013
Old 03-16-2023 , 12:33   Sound plugin first round
Reply With Quote #1

Hey Guys,
I Need a plugin when people enter my server that plays a song not on the loading screen but when they press ct or t


Thanks you all <3
remix.allstarz is offline
Dexon
Member
Join Date: Aug 2019
Old 03-19-2023 , 08:36   Re: Sound plugin first round
Reply With Quote #2

Hey, i believe this should work: (only for mp3, if need wav write comment)
PHP Code:
#include <amxmodx>

new const g_cMusics[][] = {
    
"sound/example.mp3""sound/example2.mp3"
};

public 
plugin_init(){
    
register_plugin("Music After Join""1.0.0""DexoN");
    
    
register_clcmd("jointeam""@Cmd_Change_Team");
}

public 
plugin_precache(){
    for(new 
isizeof g_cMusicsi++)
        
precache_generic(g_cMusics[i]);
}

@
Cmd_Change_Team(iId)
    
client_cmd(iId"mp3 play %s"g_cMusics[random(sizeof g_cMusics)]); 
__________________
[ExTasY] Furien Hero [CRAFT SYSTEM]
213.181.206.21:27140

[ExTasY] Zombie Mutation [ZOMBIE NPC]
213.181.206.28:27057

Join now!

Video: https://www.youtube.com/watch?v=fNahCsS8DOU&t=328s
DC: https://discord.gg/swARTUZCZ4

Creating private plugins, reference above.

Last edited by Dexon; 03-19-2023 at 12:10.
Dexon 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 14:04.


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