Kod:
#include <amxmodx>
#include <cstrike>
#include <fun>
#define SayTag "JusticeGaming"
new stock SayMesaj[][] = {
{"say /rr"}, {"say .rr"}, {"say !rr"},
{"say /reset"}, {"say .reset"}, {"say !reset"}
}
public plugin_init() {
register_plugin("Skor Sifirlama", "1.0", "RasKoLn")
for(new i; i < sizeof(SayMesaj); i++)
register_clcmd(SayMesaj[i][0],"pScore")
}
public pScore(id) {
for(new i ; i < 3;i++)
cs_set_user_deaths(id, 0),set_user_frags(id, 0)
client_printc(id,"!n[ !t- !g%s !t- !n] !gBasarili Bir Sekilde !nSkorun !tSifirlandi!",SayTag)
client_printc(id,"!n[ !t- !g%s !t- !n] !gCs 1.6 !nAdresimiz !t95.173.173.128",SayTag)
client_printc(id,"!n[ !t- !g%s !t- !n] !gTeamSpeak 3 !nAdresimiz !tJusticeGaming",SayTag)
client_printc(id,"!n[ !t- !g%s !t- !n] !gFaceBook !nAdresimiz !tJusticeGamingJB",SayTag)
}
stock client_printc(const id, const input[], any:...) {
new count = 1, players [32];
static msg[191];
vformat(msg, 190, input, 3);
replace_all(msg , 190, "!n", "^x01"); // Sarı Renk
replace_all(msg , 190, "!g", "^x04"); // Yeşil Renk
replace_all(msg , 190, "!t", "^x03"); // Takım Renk ( CT Mavi , T Kırmızı )
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, get_user_msgid("SayText"), _, players[i]);
write_byte(players[i]);
write_string(msg);
message_end();
}
}
}
}
şöyle bi tane skor sıfırlama yaptım pawnod du bi kaç tane daha reset mesajı ekledim. ama mapı degistim /reset yazdım bu hatayı verdi