Thanks it works outstanding!!!
I have a secound plugins where i include a soundfile to playup to all clients at the server do you know how i can made it works?
Code:
[code]#include <amxmodx>
#include <amxmisc>
public informclient(strindex[])
{
new myindex
myindex=str_to_num(strindex)
if(myindex>0)
client_print(myindex,print_chat,"Say ^"BINDS^" Um zu sehen wie Du die Verschiedenen Serverstatistiken abrufen kannst")
}
public mandatoryinform(strindex[])
{
new myindex
myindex=str_to_num(strindex)
if(myindex>0)
show_motd(myindex,"/addons/amxmodx/configs/binds.txt","Server Binds")
}
public client_putinserver(id){
new str[4]
num_to_str(id,str,2)
set_task(10.0,"informclient",432211+id,str,2)
if(get_cvar_num("forcerules"))
set_task(11.0,"mandatoryinform",432611+id,str,2)
}
public client_disconnect(id){
remove_task(432211+id)
remove_task(432611+id)
}
public server_binds(id){
show_motd(id,"/addons/amxmodx/configs/binds.txt","Server Binds")
return PLUGIN_HANDLED
}
public plugin_precache() {
precache_sound("misc/afk.wav")
}
public admin_showthem(id,level,cid){
if (!cmd_access(id,level,cid,2))
return PLUGIN_HANDLED
new arg[32]
read_argv(1,arg,31)
new player = cmd_target(id,arg,5)
if (!player) return PLUGIN_HANDLED
client_cmd(0,"spk misc/afk.wav")
//new name[32]
//get_user_name(player,name,31)
client_cmd(player,"say Bitte nicht Fraggen ! Ich versuche die Serverbinds zu erfassen!")
client_cmd(0,"spk misc/afk.wav")
show_motd(player,"/addons/amxmodx/configs/binds.txt","Lese die Server BINDS !")
return PLUGIN_HANDLED
}
public plugin_init()
{
register_plugin("Server Binds German","1.1","RCC| Dynamite")
register_clcmd("say /showbinds", "server_binds")
register_clcmd("say showbinds", "server_binds")
register_clcmd("say /binds", "server_binds")
register_clcmd("say binds", "server_binds")
register_cvar("forcerules","0")
register_concmd("amx_showrules","admin_showthem",ADMIN_SLAY,"<authid, nick or #userid>")
return PLUGIN_CONTINUE
} [/code]