Thanks guys!!! i will try to solve it now, i will use , but I need to use more than one task, how do?
I tried using this way:
PHP Code:
#include <amxmodx>
#define TASK_ONE 9283
#define TASK_TWO 2973
public plugin_init()
{
register_plugin("WelcomeSound","1.0","nOSounD")
register_event("SendAudio", "client_putinserver", "a", "2&%!MRAD_client_putinserver")
}
public client_putinserver()
enum (+= 1234)
{
TASK_ONE,9283
TASK_TWO,2973
}
{
TASK_ONE(3.0, "start_music", id + 9283_task)
}
{
TASK_TWO(5.0, "welcome", id + 2973_task)
return PLUGIN_CONTINUE
}
public start_music( 9283_task )
{
client_cmd(id,"spk misc/welcomesound/player_connect0")
return PLUGIN_CONTINUE
}
public welcome( 2973_task )
{
new name [ 32 ]
get_user_name( id, name, 31 )
set_hudmessage(0, 255, 0, -1.0, -1.0)
show_hudmessage(id, "Welcome to MK-Line Server Game")
return PLUGIN_CONTINUE
}
public plugin_precache()
{
precache_sound("misc/welcomesound/player_connect0.wav")
return PLUGIN_CONTINUE
}
But dont works, are experiencing some errors when compiling, and I have tried to solve them, but I can not, do not know how ... it's the first time I'm doing plugins ... always just edited, but also wanted to learn to do ... anyway, thanks for the help you are giving me is helping a lot !!!
PS: I will give feedback, if i fix problems (Sound Working!!!)