![]() |
|
SvRestart Say İle - Printable Version +- CSPLague (https://www.csplague.com) +-- Forum: CS 1.6 Plugin (Eklenti) Bölümü (https://www.csplague.com/forumdisplay.php?fid=6) +--- Forum: [İSTEK] Cs 1.6 Plugin İstek Bölümü (https://www.csplague.com/forumdisplay.php?fid=80) +---- Forum: Çözülmüş İstekler (https://www.csplague.com/forumdisplay.php?fid=87) +---- Thread: SvRestart Say İle (/showthread.php?tid=5084) |
SvRestart Say İle - batuopoz0770 - 03-10-12 /* Plugin Yapımcısı: Game[R] */ #include <amxmodx> #include <amxmisc> #define PLUGIN "SayLaResAt" #define VERSION "v1.0" #define AUTHOR "Game[R]" new saniye = 10 public plugin_init() { register_plugin("SayLaResAt", "v1.0", "Game[R]") register_clcmd("say /ql","Ac", ADMIN_CVAR) } public Ac(id) { set_task(0.0,"Devamet",id) } public Devamet(id) { saniye-- if(saniye == 9) { chat_color(0,"!g[qL] !yqL hF Kalan Saniye !t(9)") } if(saniye == 8) { chat_color(0,"!g[qL] !yqL hF Kalan Saniye !t(8)") } if(saniye == 7) { chat_color(0,"!g[qL] !yqL hF Kalan Saniye !t(7)") } if(saniye == 6) { chat_color(0,"!g[qL] !yqL hF Kalan Saniye !t(6)") } if(saniye == 5) { chat_color(0,"!g[qL] !yqL hF Kalan Saniye !t(5)") } if(saniye == 4) { chat_color(0,"!g[qL] !yqL hF Kalan Saniye !t(4)") } if(saniye == 3) { chat_color(0,"!g[qL] !yqL hF Kalan Saniye !t(3)") } if(saniye == 2) { chat_color(0,"!g[qL] !yqL hF Kalan Saniye !t(2)") } if(saniye == 1) { chat_color(0,"!g[qL] !yqL hF Kalan Saniye !t(1)") chat_color(0,"!g[qL] !yRestart Atiliyor !tBasarilar!y...") server_cmd("amx_show_activity 0") server_cmd("amx_cvar sv_restart 1") server_cmd("amx_show_activity 2") } } //----------------------------------- Renkli Yazi --------------------------------// stock chat_color(const id, const input[], any:...) { new count = 1, players[32] static msg[191] vformat(msg, 190, input, 3) replace_all(msg, 190, "!g", "^4") replace_all(msg, 190, "!y", "^1") replace_all(msg, 190, "!t", "^3") replace_all(msg, 190, "!team2", "^0") if (id) players[0] = id; else get_players(players, count, "ch") for (new i = 0; i < count; i++) { { if (is_user_connected(players)) { message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players) write_byte(players); write_string(msg); message_end(); } } } } şimdi sorun şöyle bişi /ql yaziyosun diyelim [qL] qL hF Kalan Saniye (9) diyor sonra öle kalıyor sayım yapmıyor ![]() tekrar /ql yaziyosun [qL] qL hF Kalan Saniye (8) diyor sonra öle kalıyor öle öle çözemedim yardim edenlere teşekkürler[/i][/i] Cevap: SvRestart Say İle - к4dανяα - 03-10-12 PHP Code: #include <amxmodx>Cevap: SvRestart Say İle - batuopoz0770 - 03-10-12 teşekkürler
|