şöyle bi plugin istiyorum chata "spec" yazılınca otomatik şöyle bir yazı yazılsın bot tarafından.
"/spec yazarak spectator takımına geçebildiğini biliyor muydun?" gibi.
Konu
(21-08-2024, 13:34)mehmetalisabanci Adlı Kullanıcıdan Alıntı: şöyle bi plugin istiyorum chata "spec" yazılınca otomatik şöyle bir yazı yazılsın bot tarafından.
"/spec yazarak spectator takımına geçebildiğini biliyor muydun?" gibi.
Kod:
#include <amxmodx>
new const KELIME_1[] = "/spec yazarak spectator takımına geçebildiğini biliyor muydun?"; // Botun Demesini İstediginz Seyi buraya yazınız.
public plugin_init()
{
register_plugin("Say Bot", "1.0", "Swezy");
register_clcmd("say spec", "show_say");
}
public show_say(id)
{
renkli_yazi(id, "!nBot 1: !g%s", KELIME_1);
}
stock renkli_yazi(const id, const input[], any:...)
{
new count = 1, players[32];
static msg[191];
vformat(msg, 190, input, 3);
replace_all(msg, 190, "!n", "^x01"); // Default Renk(Sarı)
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();
}
}
}
}
Bot 1: /spec yazarak spectator takımına geçebildiğini biliyor muydun?
Server İp : 95.173.173.31 Ts3 : Serahor ---Valorant Mod---
(21-08-2024, 14:14)swezy* Adlı Kullanıcıdan Alıntı:(21-08-2024, 13:34)mehmetalisabanci Adlı Kullanıcıdan Alıntı: şöyle bi plugin istiyorum chata "spec" yazılınca otomatik şöyle bir yazı yazılsın bot tarafından.
"/spec yazarak spectator takımına geçebildiğini biliyor muydun?" gibi.hocam kurdum fakat calısmadı siz dener mısınız acaba https://hizliresim.com/fsfo5t0Kod:#include <amxmodx>
new const KELIME_1[] = "/spec yazarak spectator takımına geçebildiğini biliyor muydun?"; // Botun Demesini İstediginz Seyi buraya yazınız.
public plugin_init()
{
register_plugin("Say Bot", "1.0", "Swezy");
register_clcmd("say spec", "show_say");
}
public show_say(id)
{
renkli_yazi(id, "!nBot 1: !g%s", KELIME_1);
}
stock renkli_yazi(const id, const input[], any:...)
{
new count = 1, players[32];
static msg[191];
vformat(msg, 190, input, 3);
replace_all(msg, 190, "!n", "^x01"); // Default Renk(Sarı)
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();
}
}
}
}
(21-08-2024, 15:55)mehmetalisabanci Adlı Kullanıcıdan Alıntı:hocam calıstı ama şöyle olabilir mi acaba, cümle içerisinde de spec kelimesi geçtiği zaman aynısını yazsa? ÇOK TEŞEKKKÜRLER.(21-08-2024, 14:14)swezy* Adlı Kullanıcıdan Alıntı:Kod:#include <amxmodx>
new const KELIME_1[] = "/spec yazarak spectator takımına geçebildiğini biliyor muydun?"; // Botun Demesini İstediginz Seyi buraya yazınız.
public plugin_init()
{
register_plugin("Say Bot", "1.0", "Swezy");
register_clcmd("say spec", "show_say");
}
public show_say(id)
{
renkli_yazi(id, "!nBot 1: !g%s", KELIME_1);
}
stock renkli_yazi(const id, const input[], any:...)
{
new count = 1, players[32];
static msg[191];
vformat(msg, 190, input, 3);
replace_all(msg, 190, "!n", "^x01"); // Default Renk(Sarı)
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();
}
}
}
}
Son Düzenleme: 21-08-2024, 16:27, Düzenleyen: mehmetalisabanci.
(Sebep: hata)
Kod:
#include <amxmodx>
new const KELIME_1[] = "/spec yazarak spectator takımına geçebildiğini biliyor muydun?"; // Botun Demesini İstediginz Seyi buraya yazınız.
new const KELIME_2[] = "Gecmek Icin /spec Yazman Yeterli Iyi Eglenceler"; // Botun Demesini İstediginz Seyi buraya yazınız.
public plugin_init()
{
register_plugin("Say Bot", "1.0", "Swezy");
register_clcmd("say spec", "show_say");
}
public show_say(id)
{
renkli_yazi(id, "!nBot 1: !g%s", KELIME_1);
renkli_yazi(id, "!nBot 2: !g%s", KELIME_2);
}
stock renkli_yazi(const id, const input[], any:...)
{
new count = 1, players[32];
static msg[191];
vformat(msg, 190, input, 3);
replace_all(msg, 190, "!n", "^x01"); // Default Renk(Sarı)
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();
}
}
}
}
Server İp : 95.173.173.31 Ts3 : Serahor ---Valorant Mod---
Son Düzenleme: 21-08-2024, 17:08, Düzenleyen: swezy*.
(21-08-2024, 17:03)swezy* Adlı Kullanıcıdan Alıntı: new const KELIME_1[] = "/spec yazarak spectator takımına geçebildiğini biliyor muydun?"; // Botun Demesini İstediginz Seyi buraya yazınız.Hocam oluyor fakat dediğim gibi cümle içerisinde kullanıldığı zaman da aynı şekil yazsa olmaz mı? Örnek; spec atabilir misin"
"/spec yazarak spectator takımına geçebildiğini biliyor muydun?" Burayı İstedigin Gibi Degiştirebilirsin Bot 1 Yazan Yerede Klan Adı Yazabilirsin
Bir de "/spec yazarak spectator takımına geçebildiğini biliyor muydun?" yazısının /spec kısmını mavi diğer kelimeler yeşil kalacak şekilde güncelleyebilir misiniz.
zahmet veriyorsam kalsın hocam ugrasmayın. :/
@mehmetalisabanci
herhangi bir cümlede spec gecince bot mesajları cıkıcaktır /spec yazısı ise takıma gore ct mavi t kırmızı diger yazılar yeşil denersin reis
Kod:
#include <amxmodx>
new const KELIME_1[] = "!t/spec !gyazarak spectator takımına geçebildiğini biliyor muydun?"; // Botun Demesini İstediginz Seyi buraya yazınız.
new const KELIME_2[] = "!gGecmek Icin !t/spec !gYazman Yeterli Iyi Eglenceler"; // Botun Demesini İstediginz Seyi buraya yazınız.
public plugin_init()
{
register_plugin("Say Bot", "1.0", "Swezy");
register_clcmd("say", "check_message");
}
public check_message(id)
{
new message[192];
read_args(message, 191);
if (containi(message, "spec") != -1)
{
renkli_yazi(id, "!gBot 1: !g%s", KELIME_1);
renkli_yazi(id, "!gBot 2: !g%s", KELIME_2);
}
}
stock renkli_yazi(const id, const input[], any:...)
{
new count = 1, players[32];
static msg[191];
vformat(msg, 190, input, 3);
replace_all(msg, 190, "!n", "^x01"); // Default Renk(Sarı)
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();
}
}
}
}
Server İp : 95.173.173.31 Ts3 : Serahor ---Valorant Mod---
(21-08-2024, 21:04)swezy* Adlı Kullanıcıdan Alıntı: @mehmetalisabancimlsf olmadı hocam gene /spec komutunu yazınca bot mesajı cıkmaya devam ediyor.
herhangi bir cümlede spec gecince bot mesajları cıkıcaktır /spec yazısı ise takıma gore ct mavi t kırmızı diger yazılar yeşil denersin reisKod:#include <amxmodx>
new const KELIME_1[] = "!t/spec !gyazarak spectator takımına geçebildiğini biliyor muydun?"; // Botun Demesini İstediginz Seyi buraya yazınız.
new const KELIME_2[] = "!gGecmek Icin !t/spec !gYazman Yeterli Iyi Eglenceler"; // Botun Demesini İstediginz Seyi buraya yazınız.
public plugin_init()
{
register_plugin("Say Bot", "1.0", "Swezy");
register_clcmd("say", "check_message");
}
public check_message(id)
{
new message[192];
read_args(message, 191);
if (containi(message, "spec") != -1)
{
renkli_yazi(id, "!gBot 1: !g%s", KELIME_1);
renkli_yazi(id, "!gBot 2: !g%s", KELIME_2);
}
}
stock renkli_yazi(const id, const input[], any:...)
{
new count = 1, players[32];
static msg[191];
vformat(msg, 190, input, 3);
replace_all(msg, 190, "!n", "^x01"); // Default Renk(Sarı)
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();
}
}
}
}
Benzer Konular
Yorum
2.019
Okunma
12-02-2025, 02:26
Yorum
3.721
Okunma
30-11-2024, 22:00
Yorum
4.018
Okunma
11-11-2024, 00:08
Yorum
4.585
Okunma
16-10-2024, 19:10
Yorum
5.436
Okunma
09-09-2024, 17:32