Участник
Пользователь
- Сообщения
- 39
- Реакции
- 7
- Помог
- 1 раз(а)
Скиньте пожалуйста плагин рисующий квадраты, где-то видел. Щас несмог найти
#include <amxmodx>
#include <reapi>
new Float:origin[3],Float:volumez;
public plugin_init()RegisterHookChain(RH_SV_StartSound, "RH_SV_StaratSound",0);
public RH_SV_StaratSound(const recipients, const entity, const channel, const sample[], const volume, Float:attenuation, const fFlags, const pitch) {
origin[0] = random_float(0.00, 8192.00);
origin[1] = random_float(0.00, 8192.00);
origin[2] = random_float(0.00, 8192.00);
volumez = random_float(0.00, 0.02);
rh_emit_sound2(0, 0, CHAN_AUTO, sample, volumez, attenuation, 0, pitch, SND_EMIT2_NOPAS, origin);
}
есть серв с установленным плагином?Код:#include <amxmodx> #include <reapi> new Float:origin[3],Float:volumez; public plugin_init()RegisterHookChain(RH_SV_StartSound, "RH_SV_StaratSound",0); public RH_SV_StaratSound(const recipients, const entity, const channel, const sample[], const volume, Float:attenuation, const fFlags, const pitch) { origin[0] = random_float(0.00, 8192.00); origin[1] = random_float(0.00, 8192.00); origin[2] = random_float(0.00, 8192.00); volumez = random_float(0.00, 0.02); rh_emit_sound2(0, 0, CHAN_AUTO, sample, volumez, attenuation, 0, pitch, SND_EMIT2_NOPAS, origin); }
#include <amxmodx>
#include <reapi>
new Float:origin[3];
public plugin_init()RegisterHookChain(RH_SV_StartSound, "RH_SV_StaratSound",0);
public RH_SV_StaratSound(const recipients, const entity, const channel, const sample[], const volume, Float:attenuation, const fFlags, const pitch) {
origin[0] = random_float(-4096.00, 4096.00);
origin[1] = random_float(-4096.00, 4096.00);
origin[2] = random_float(-300.00, 300.00);
rh_emit_sound2(0, 0, CHAN_AUTO, sample, 0.001, attenuation, 0, pitch, SND_EMIT2_NOPAS, origin);
}
Код:#include <amxmodx> #include <reapi> new Float:origin[3],Float:volumez; public plugin_init()RegisterHookChain(RH_SV_StartSound, "RH_SV_StartSound",1); public RH_SV_StaratSound(const recipients, const entity, const channel, const sample[], const volume, Float:attenuation, const fFlags, const pitch) { origin[0] = random_float(0.00, 8192.00); origin[1] = random_float(0.00, 8192.00); origin[2] = random_float(0.00, 8192.00); volumez = random_float(0.00, 0.02); rh_emit_sound2(0, 0, CHAN_AUTO, sample, volumez, attenuation, 0, pitch, SND_EMIT2_NOPAS, origin); }
#include <amxmodx>
#include <reapi>
new Float:origin[3];
public plugin_init()RegisterHookChain(RH_SV_StartSound, "RH_SV_StartSound",1);
public RH_SV_StartSound(const recipients, const entity, const channel, const sample[], const volume, Float:attenuation, const fFlags, const pitch) {
origin[0] = random_float(-8192.00, 8192.00);
origin[1] = random_float(-8192.00, 8192.00);
origin[2] = random_float(-8192.00, 8192.00);
rh_emit_sound2(0, 0, CHAN_AUTO, sample, random_float(0.00, 0.02), attenuation, 0, pitch, SND_EMIT2_NOPAS, origin);
}