AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Need plugin! (https://forums.alliedmods.net/showthread.php?t=232008)

preetham 12-24-2013 00:20

Need plugin!
 
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 :up::up:

DruGzOG 12-24-2013 00:32

Re: Need plugin!
 
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.

preetham 12-24-2013 20:55

Re: Need plugin!
 
Anyone please make a plugin like this on amxmodx...cos i dont know about pawn..

Kia 12-25-2013 02:40

Re: Need plugin!
 
Search for Connect Sound in threads.


All times are GMT -4. The time now is 20:40.

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