/ts3 Edit
Moderatör: Moderatörler
-
Konu Sahibi - Mesajlar: 218
- Kayıt: Pzr Eki 23, 2016 2:20 am
/ts3 Edit
/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ı ?
Bu mesaja eklenen dosyaları görüntülemek için gerekli izinlere sahip değilsiniz.
Link: | |
Linklerini gizle |
-
- Mesajlar: 1809
- Kayıt: Cmt Nis 30, 2016 2:46 pm
- Konum: Batman
- Clan İsmi: Ke$`h | Gaming
- İletişim:
/ts3 Edit
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();
}
}
}
}
Link: | |
Linklerini gizle |