kural hatası
Moderatör: Moderatörler
Forum kuralları
[font size=20] DİKKAT [/font]
Silinmiş konu içerikleri hiçbir şekilde kontrol edlimemektedir. İndirdiğiniz dosyaların sorumluluğu tamamiyle size aittir.
Mutlaka indirdiğiniz dosyaları antivirüs ile taratınız.
[font size=20] DİKKAT [/font]
Silinmiş konu içerikleri hiçbir şekilde kontrol edlimemektedir. İndirdiğiniz dosyaların sorumluluğu tamamiyle size aittir.
Mutlaka indirdiğiniz dosyaları antivirüs ile taratınız.
-
Konu Sahibi - Mesajlar: 1045
- Kayıt: Pzr Oca 28, 2018 11:45 pm
- Konum: SAMSUNLUYUZ
kural hatası
ek'te verdiğim sma kural ihlali vermekte. yardımcı olurmusunuz
Bu mesaja eklenen dosyaları görüntülemek için gerekli izinlere sahip değilsiniz.
Link: | |
Linklerini gizle |
-
- Mesajlar: 822
- Kayıt: Prş Haz 07, 2018 6:18 pm
- Konum: İstanbul
- Clan İsmi: Ke$`h Gaming
- İletişim:
kural hatası
dhudmessage tekrar tanıtılmış. Düzelttim dene.
Kod: Tümünü seç
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Vox Round Say"
#define VERSION "1.2"
#define AUTHOR "God@Dorin-NiCoMeDiA"
new rounds_elapsed;
new chat_message;
new play_sound;
new say_text;
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("HLTV", "new_round", "a", "1=0", "2=0");
register_event("TextMsg", "restart_round", "a", "2=#Game_will_restart_in");
play_sound = register_cvar("amx_playsound","1");
chat_message = register_cvar("mesaj_turu","1");
say_text = get_user_msgid("SayText");
}
public new_round()
{
rounds_elapsed += 1;
new map[32]
get_mapname(map, 31)
new p_players;
new p_playernum;
p_players = get_maxplayers();
p_playernum = get_playersnum(1);
if(get_pcvar_num(chat_message) == 1)
{
client_printc(0,"!t[www.CSPLAGUE.com] !yRound: !g%d !yHarita: !g%s !yOyuncular: !t%d!y/!t%d", rounds_elapsed, map, p_playernum, p_players);
}
if(get_pcvar_num(chat_message) == 2)
{
client_print(0,print_center,"[ Round: %d ] - [ Harita: %s ] - [ Oyuncular: %d/%d ]", rounds_elapsed, map, p_playernum, p_players);
}
if(get_pcvar_num(chat_message) == 3)
{
set_dhudmessage(255, 0, 0, -1.0, 0.35, 2, 6.0, 3.0, 0.1, 3.0)
show_dhudmessage(0, "[ Round: %d ] - [ Harita: %s ] - [ Oyuncular: %d/%d ]", rounds_elapsed, map, p_playernum, p_players);
}
if(get_pcvar_num(chat_message) == 4)
{
set_dhudmessage(0, 255, 0, -1.0, 0.35, 2, 2.0, 2.0, 0.1, 3.0)
show_dhudmessage(0, "Round: [ %d ]", rounds_elapsed);
set_dhudmessage(255, 0, 0, -1.0, 0.35, 2, 2.0, 2.0, 0.1, 3.0)
show_dhudmessage(0, "^nHarita: [ %s ]", map);
set_dhudmessage(150, 150, 150, -1.0, 0.35, 2, 2.0, 2.0, 0.1, 3.0)
show_dhudmessage(0, "^n^nOyuncular: [ %d/%d ]", p_playernum, p_players);
}
if(get_pcvar_num(play_sound) == 1)
{
new rndctstr[21]
num_to_word(rounds_elapsed, rndctstr, 20);
client_cmd(0, "spk ^"vox/round %s^"",rndctstr)
}
return PLUGIN_CONTINUE;
}
public restart_round()
{
rounds_elapsed = 0;
}
stock client_printc(const id, const string[], {Float, Sql, Resul,_}:...) {
new msg[191], players[32], count = 1;
vformat(msg, sizeof msg - 1, string, 3);
replace_all(msg,190,"!g","^4");
replace_all(msg,190,"!y","^1");
replace_all(msg,190,"!t","^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, say_text,_, players[i]);
write_byte(players[i]);
write_string(msg);
message_end();
}
}
}
Link: | |
Linklerini gizle |
-
Konu Sahibi - Mesajlar: 1045
- Kayıt: Pzr Oca 28, 2018 11:45 pm
- Konum: SAMSUNLUYUZ