Usunięcie dźwięku z pluginu
Adi
12.07.2010
Proszę o usunięcie dźwięku z tego pluginu.
Domyślam się, że trzeba usunąć linijkę client_cmd(0, "speak ambience/rain"),
ale ja jestem zielony i wolę spytać fachowców
#include <amxmodx> #include <fakemeta> #define PLUGIN "Deszcz + Burza" #define VERSION "1.0" #define AUTHOR "Lelek" public plugin_precache() { register_plugin(PLUGIN, VERSION, AUTHOR) register_logevent("round_start", 2, "1=Round_Start") engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "env_rain")) deszcz() } public round_start(id) { client_cmd(id, "cl_weather 3") } public client_connect(id) { client_cmd(id, "cl_weather 3") } public deszcz() { client_cmd(0, "speak ambience/rain") set_task(1.0,"deszcz", 0) }
Domyślam się, że trzeba usunąć linijkę client_cmd(0, "speak ambience/rain"),
ale ja jestem zielony i wolę spytać fachowców
DarkGL
12.07.2010
#include <amxmodx>
#include <fakemeta>
#define PLUGIN "Deszcz + Burza"
#define VERSION "1.0"
#define AUTHOR "Lelek"
public plugin_precache()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_logevent("round_start", 2, "1=Round_Start")
engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "env_rain"))
}
public round_start()
{
client_cmd(0, "cl_weather 3")
}
public client_connect(id)
{
client_cmd(id, "cl_weather 3")
}
Edited by DarkGL, 12.07.2010 17:58.