1. sayfa (Toplam 1 sayfa)
/ts3 Edit
Gönderilme zamanı: Cmt Tem 29, 2017 12:43 pm
gönderen BuroooUst
/ts3 Yoneltme Plugınım Var 5 Dk Oyunda Duranı Ts3'ü Varsa Tsye Yonlendırıyor Otomatık Ama Bu Sadece Playerlerde Olsun Istıyorum Bı Arkadaş Yapmayı Denedi Olmadı Yardımcı Olucak Varmı ?
/ts3 Edit
Gönderilme zamanı: Cmt Tem 29, 2017 1:00 pm
gönderen amad
Kod: Tümünü seç
#include <amxmodx>
#define PLUGIN "Ts3 Yonelt"
#define VERSION "1.0"
#define AUTHOR "emirakpinar"
new online[33]
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
}
public client_putinserver(id){
online[id] = true
set_task(300.0,"ts3yonelt",id)
}
public client_disconnected(id){
if(online[id])
online[id] = false
}
public ts3yonelt(id){
if(get_user_flags(id) & ADMIN_USER)
{
if(online[id]){
client_cmd(id,"say /ts3")
ChatColor(id,"!5 !teamdakikadir serverde oldugunuz icin !gts3 !teamadresimize yonlendiriliyorsunuz.")
}
}
}
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();
}
}
}
}