Raised This Month: $ Target: $400
 0% 

Need plugin!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
preetham
Member
Join Date: Sep 2012
Location: India
Old 12-24-2013 , 00:20   Need plugin!
Reply With Quote #1

I need a plugin which plays a sound(eg:-welcome sound) when a player connects(at motd stage).

I have this code but this is'nt working :\ any suggestions??
Code:
/* 
* Author: Ruffneck
* Plugin: Connect msg with sound.
*/

#include <amxmod>
#include <amxmisc>

public plugin_precache(){
if (file_exists("sound/misc/welcometonorthzone.wav"))
precache_sound("misc/welcometonorthzone.wav")
}


public client_connect(id) {
new s[32]
get_user_name(id,s,31) 


if (file_exists("sound/misc/welcometonorthzone.wav")==1)
client_cmd(0,"spk misc/welcometonorthzone")


return PLUGIN_HANDLED
}

public plugin_init() {
register_plugin("Connect Sound","0.4","Rufneck")
return PLUGIN_CONTINUE
}
Any help would be appreciated
preetham is offline
 



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 20:40.


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