HLMOD.HU Forrás Megtekintés
- www.hlmod.hu#include <amxmodx>
#include <amxmisc>
new enabled, allow
public plugin_init()
{
register_plugin("Mini Sound Fixer" , "1.0" , "Throstur")
register_event("ResetHUD" , "Event_Reset" , "b")
register_clcmd("say /fixsound" , "cmdStopsound")
allow = register_cvar("amx_msoundfix_pallow","1")
enabled = register_cvar("amx_msoundfix","1")
}
public Event_Reset(id)
{
if(get_pcvar_num(enabled) == 1)
{
client_cmd(id,"room_type 00")
}
}
public cmdStopsound(id)
{
if((get_pcvar_num(allow) == 1) || (access(id,ADMIN_IMMUNITY)) )
{
client_cmd(id,"stopsound;room_type 00")
client_cmd(id,"stopsound")
client_print(id,print_chat,"[AMXX] Mostmar nincs visszhang.")
}
else
{
client_print(id,print_console,"[AMXX] Ez a parancs le van tiltva.")
return PLUGIN_HANDLED
}
return PLUGIN_CONTINUE
}