merhaba
el başı saydan skorun gectiği bir eklenti istiyorum
örnek; [TER5-0 CT] şeklinde yardımcı olabilecek varmıdır
ReckLesS PRO×PUB Since 2009 | ip: 95.173.173.9 | Ts3: recklesspro
)

#include <amxmodx>
#include <cstrike>
new g_Wins[2]; // 0 = T, 1 = CT
public plugin_init()
{
register_plugin("RoundScoreCounter", "1.0", "OSR");
register_event("TeamScore", "event_TeamScore", "a");
register_logevent("onRoundStart", 2, "1=Round_Start");
}
public event_TeamScore()
{
new team[4];
read_data(1, team, charsmax(team));
new score = read_data(2);
if (team[0] == 'T')
g_Wins[0] = score;
else
g_Wins[1] = score;
}
public onRoundStart()
{
new szMsg[128];
formatex(szMsg, charsmax(szMsg), "%L", LANG_SERVER, "ROUND_SCORE", g_Wins[0], g_Wins[1]);
client_print(0, print_chat, "%s", szMsg);
}(10-09-2025, 13:25)Serhat Öndeş Adlı Kullanıcıdan Alıntı:olmadı şöyle bi hata verdi say'danKod:#include <amxmodx>
#include <cstrike>
new g_Wins[2]; // 0 = T, 1 = CT
public plugin_init()
{
register_plugin("RoundScoreCounter", "1.0", "OSR");
register_event("TeamScore", "event_TeamScore", "a");
register_logevent("onRoundStart", 2, "1=Round_Start");
}
public event_TeamScore()
{
new team[4];
read_data(1, team, charsmax(team));
new score = read_data(2);
if (team[0] == 'T')
g_Wins[0] = score;
else
g_Wins[1] = score;
}
public onRoundStart()
{
new szMsg[128];
formatex(szMsg, charsmax(szMsg), "%L", LANG_SERVER, "ROUND_SCORE", g_Wins[0], g_Wins[1]);
client_print(0, print_chat, "%s", szMsg);
}
Telefondayım denersin, bunuda data/lang/roundscore.txt
roundscore metin belgesi açığ panele yüklersin
[tr]
ROUND_SCORE = [TER = %d - CT = %d]
[en]
ROUND_SCORE = [T = %d - CT = %d]
#include <amxmodx>
#include <cstrike>
new g_TScore = 0
new g_CTScore = 0
public plugin_init() {
register_plugin("Round Score Display", "1.0", "Osmanbnm")
register_event("HLTV", "on_new_round", "a", "1=0", "2=0")
register_event("SendAudio", "on_ct_win", "a", "2&%!MRAD_ctwin")
register_event("SendAudio", "on_ter_win", "a", "2&%!MRAD_terwin")
}
public on_new_round() {
set_task(0.2, "show_score")
}
public on_ct_win() {
g_CTScore++
}
public on_ter_win() {
g_TScore++
}
public show_score() {
static szMsg[64]
formatex(szMsg, charsmax(szMsg), "^4[TER^3%d^4-^3%d^4 CT]", g_TScore, g_CTScore)
for (new id = 1; id <= get_maxplayers(); id++) {
if (is_user_connected(id) && !is_user_bot(id)) {
client_print_color(id, id, szMsg)
}
}
}