Raised This Month: $ Target: $400
 0% 

Need plugin!


Post New Thread Reply   
 
Thread Tools Display Modes
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
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 12-24-2013 , 00:32   Re: Need plugin!
Reply With Quote #2

You might want to use an updated version of amxmodx since amxmod is not supported anymore.

Also, when you install amxmodx, you will be able to find the plugin you're looking for.
__________________
DruGzOG is offline
Send a message via AIM to DruGzOG
preetham
Member
Join Date: Sep 2012
Location: India
Old 12-24-2013 , 20:55   Re: Need plugin!
Reply With Quote #3

Anyone please make a plugin like this on amxmodx...cos i dont know about pawn..
preetham is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 12-25-2013 , 02:40   Re: Need plugin!
Reply With Quote #4

Search for Connect Sound in threads.
__________________
Kia is offline
Reply


Thread Tools
Display Modes

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