-stock renkliyazi kullanmana gerek yok.orucoglukayra yazdı: Cum Ara 31, 2021 4:32 pm Buyur ;
Kod: Tümünü seç
#include <amxmodx> #include <amxmisc> #define PLUGIN "Saat Sistem" #define VERSION "1.0" #define AUTHOR "AhmetBey*" new suankimap[250] public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_logevent("elbasi", 2, "1=Round_Start") register_cvar("escape_kill_xp", "1") } public elbasi() { new saat[6], dakika[6] get_time("%H", saat, 5) get_time("%M", dakika, 5) new cevir_saat = str_to_num(saat) get_mapname(suankimap,249) // Sunucu Ayarlari if((cevir_saat >= 22 && cevir_saat < 24) || (cevir_saat >= 0 && cevir_saat < 3) || get_cvar_num("escape_kill_xp")) { set_cvar_num("escape_kill_xp", 2) renkli_yazi(0,"!g[ZE] !tDoubleXP !t-> !gACTIVE!") renkli_yazi(0,"!g[ZE] !tDoubleXP !t-> !gACTIVE!") if((contain(suankimap, "cs_") != -1) || (contain(suankimap, "de_") != -1) || (contain(suankimap, "fy_") != -1)) { server_cmd("hostname ^"[X2EXP ACTIVE]VEENCS | Zombie Escape | [TR] ^"") } else { server_cmd("hostname ^"[X2EXP ACTIVE]VEENCS | Zombie Escape | [TR] ^"") } } else { if((cevir_saat >= 3 && cevir_saat < 9) || get_cvar_num("escape_kill_xp")) { set_cvar_num("escape_kill_xp", 3) renkli_yazi(0, "!g[TM] !tX3EXP !t-> !gACTIVE!") renkli_yazi(0, "!g[TM] !tX3EXP !t-> !gACTIVE!") if((contain(suankimap, "cs_") != -1) || (contain(suankimap, "de_") != -1) || (contain(suankimap, "fy_") != -1)) { server_cmd("hostname ^"[X3EXP ACTIVE]VEENCS | Zombie Escape | [TR] ^"") } else { server_cmd("hostname ^"[X3EXP ACTIVE]VEENCS | Zombie Escape | [TR] ^"") } } else { set_cvar_num("escape_kill_xp", 1) } } } stock renkli_yazi(const id, const input[], any:...) { new count = 1, players[32] static msg[191] vformat(msg, sizeof(msg) - 1, input, 3) replace_all(msg, 190, "!n", "^x01") replace_all(msg, 190, "!g", "^x04") replace_all(msg, 190, "!t", "^x03") 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() } } } /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1055\\ f0\\ fs16 \n\\ par } */
-hostname i tamamen değiştirmene gerek yok.
-İf sorgusu yanlış