Руслан Миронов
Пользователь
- Регистрация
- 24 Июн 2017
- Сообщения
- 276
- Симпатии
- 3
- Предупреждения
- 30
- Пол
- Мужской
Добрый вечер помогите убрать звуки ResetScore а то не получается?
Код:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
new SayText;
#define PLUGIN "Reset Score and Sound"
#define VERSION "1.0"
#define AUTHOR "FarCher"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /rs","resetscore")
register_clcmd("say /restartscore","resetscore")
SayText = get_user_msgid("SayText")
}
public plugin_precache()
{
precache_sound("ResetScore/ResetScore.wav" )
}
public resetscore(id)
{
cs_set_user_deaths(id, 0)
set_user_frags(id, 0)
cs_set_user_deaths(id, 0)
set_user_frags(id, 0)
emit_sound(id,0,"ResetScore/ResetScore.wav",1.0, 1.0, 0, 100 )
new name[33]
get_user_name(id, name, 32)
print_col_chat( id, "^4[^3ResetScore^4] ^3%s^1, ваш счёт ^4Убийств ^1и ^4Смертей ^1обнулён.", name)
}
stock print_col_chat(const id, const input[], any:...)
{
new count = 1, players[32];
static msg[191];
vformat(msg, 190, input, 3);
replace_all(msg, 190, "!g", "^4");
replace_all(msg, 190, "!y", "^1");
replace_all(msg, 190, "!t", "^3");
if (id) players[0] = id; else get_players(players, count, "ch");
{
for ( new i = 0; i < count; i++ )
{
if ( is_user_connected(players[i]) )
{
message_begin(MSG_ONE_UNRELIABLE, SayText, _, players[i]);
write_byte(players[i]);
write_string(msg);
message_end();
}
}
}
}