Satir 748 :
Kod: Tümünü seç
startbet(id) {
if (!g_betting) {
client_print(id, print_center, "Your bet is too late!")
return
Moderatör: Moderatörler
Kod: Tümünü seç
startbet(id) {
if (!g_betting) {
client_print(id, print_center, "Your bet is too late!")
return
Link: | |
Linklerini gizle |
Kod: Tümünü seç
stock ChatColor(const id, const input[], any:...)
{
new count = 1, players[32]
static msg[191]
vformat(msg, 190, input, 3)
format(msg, sizeof(msg), "%s", msg)
replace_all(msg, 190, "!g", "^4")
replace_all(msg, 190, "!y", "^1")
replace_all(msg, 190, "!team", "^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, get_user_msgid("SayText"), _, players[i])
write_byte(players[i]);
write_string(msg);
message_end();
}
}
}
}
ChatColor(x,"!gMesaj1 - !yMesaj2 - !teamMesaj3")
Link: | |
Linklerini gizle |
Sağolasin emiremirakpinar yazdı:Ogi pluginin en altına şu satırları ekle.
Kullanım:Kod: Tümünü seç
stock ChatColor(const id, const input[], any:...) { new count = 1, players[32] static msg[191] vformat(msg, 190, input, 3) format(msg, sizeof(msg), "%s", msg) replace_all(msg, 190, "!g", "^4") replace_all(msg, 190, "!y", "^1") replace_all(msg, 190, "!team", "^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, get_user_msgid("SayText"), _, players[i]) write_byte(players[i]); write_string(msg); message_end(); } } } }
x: x yerine 0 yazarsan herkes, publicin parantez içerisindekini yazarsan sadece o kişi görür. Genelde "id"dir.
!gMesaj1: !g yeşil renk
!yMesaj2: !y oyuncunun con_color rengi
!teamMesaj3: !team takım rengi.ChatColor(x,"!gMesaj1 - !yMesaj2 - !teamMesaj3")
Link: | |
Linklerini gizle |