#include <amxmodx>
#include <reapi>
public plugin_init()
{
register_clcmd("say !s", "@Command_ShowScore");
register_clcmd("say !score", "@Command_ShowScore");
register_clcmd("say /score", "@Command_ShowScore");
}
@Command_ShowScore()
{
return client_print(0, print_chat, "Score: %d (T) | %d (CT)", get_member_game(m_iNumTerroristWins), get_member_game(m_iNumCTWins));
}
браток, у меня не reapiНе знаю, как там на "Fastcup", но держи такой вариант. Допилишь сам как хочешь, либо за $ ;)
Код:#include <amxmodx> #include <reapi> public plugin_init() { register_clcmd("say !s", "@Command_ShowScore"); register_clcmd("say !score", "@Command_ShowScore"); register_clcmd("say /score", "@Command_ShowScore"); } @Command_ShowScore() { return client_print(0, print_chat, "Score: %d (T) | %d (CT)", get_member_game(m_iNumTerroristWins), get_member_game(m_iNumCTWins)); }
Твои проблемыбраток, у меня не reapi
на hlds не найдется бро?Твои проблемы
За ₽ найдуна hlds не найдется бро?
#include <amxmodx>
#include <amxmisc>
new g_ct_score, g_te_score
public plugin_init()
{
register_plugin("[CS] Team Score", "1.0", "406/Nordic Warrior")
register_event("TeamScore", "cs_team_score", "a")
register_clcmd("say !s", "show_score");
register_clcmd("say !score", "show_score");
register_clcmd("say /s", "show_score");
register_clcmd("say /score", "show_score");
}
public cs_team_score()
{
new team[32]
read_data(1, team, charsmax(team))
if(equal(team, "CT"))
g_ct_score = read_data(2)
else if(equal(team, "TERRORIST"))
g_te_score = read_data(2)
}
public show_score(id)
{
client_print(id, print_chat, "Счёт: Т:%i vs. CT:%i", g_te_score, g_ct_score)
return PLUGIN_HANDLED;
}
Будь здоров ! спасибоELYOR,
Код:#include <amxmodx> #include <amxmisc> new g_ct_score, g_te_score public plugin_init() { register_plugin("[CS] Team Score", "1.0", "406/Nordic Warrior") register_event("TeamScore", "cs_team_score", "a") register_clcmd("say !s", "show_score"); register_clcmd("say !score", "show_score"); register_clcmd("say /s", "show_score"); register_clcmd("say /score", "show_score"); } public cs_team_score() { new team[32] read_data(1, team, charsmax(team)) if(equal(team, "CT")) g_ct_score = read_data(2) else if(equal(team, "TERRORIST")) g_te_score = read_data(2) } public show_score(id) { client_print(id, print_chat, "Счёт: Т:%i vs. CT:%i", g_te_score, g_ct_score) return PLUGIN_HANDLED; }