Szukam "który Dzien" pluginu (Dla...
The.Scott
16.07.2014
Witam, poszukuje plugin, który z góry czerwonym wyświetla wiadomość jaki teraz dzień.
Potrzebuję tylko ten plugin, który nie ma nic więcej.
(Widzialem tylko taki podobny plugin, lecz w nim jest duzo innych, mnie nepotrzebnych funkcji)
Użytkownik The.Scott edytował ten post 16.07.2014 12:24
The.Scott
18.08.2014
+ u mnie nastawiony 15round limit, to gdy CT na nowo wchodzą i round restartuje się, to musi pokazywac znowu 1,2,3... dzien..
Nltj
18.08.2014
#include <amxmodx> #include <amxmisc> #define TASK_END 32515 #define PLUGIN "New plug-in" #define VERSION "1.0" #define AUTHOR "author" new rounds public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_logevent("round_end", 2, "1=Round_End") register_event("TextMsg","restart_roundsnum","a","2&#Game_C"/*,"2&#Game_w"*/) set_task(0.1, "hud",TASK_END,_,_,"b"); } public round_end() { rounds ++ } public restart_roundsnum() { rounds = 0 } public hud() { if(rounds == 1 || rounds == 8 || rounds == 15) { set_hudmessage(255, 0, 0, 0.3, -1.0, 2, 0.5, 5.0); show_hudmessage(0, "|Dzien: Poniedzialek|(%d)",rounds); } else if(rounds == 2 || rounds == 9) { set_hudmessage(255, 0, 0, 0.3, -1.0, 2, 0.5, 5.0); show_hudmessage(0, "|Dzien: Wtorek|(%d)",rounds); } else if(rounds == 3 || rounds == 10) { set_hudmessage(255, 0, 0, 0.3, -1.0, 2, 0.5, 5.0); show_hudmessage(0, "|Dzien: Sroda|(%d)",rounds); } else if(rounds == 4 || rounds == 11) { set_hudmessage(255, 0, 0, 0.3, -1.0, 2, 0.5, 5.0); show_hudmessage(0, "|Dzien: Czwartek|(%d)",rounds); } else if(rounds == 5 || rounds == 12) { set_hudmessage(255, 0, 0, 0.3, -1.0, 2, 0.5, 5.0); show_hudmessage(0, "|Dzien: Piatek|(%d)",rounds); } else if(rounds == 6 || rounds == 13) { set_hudmessage(255, 0, 0, 0.3, -1.0, 2, 0.5, 5.0); show_hudmessage(0, "|Dzien: Sobota|(%d)",rounds); } else if(rounds == 0 || rounds == 7 || rounds == 14) { set_hudmessage(255, 0, 0, 0.3, -1.0, 2, 0.5, 5.0); show_hudmessage(0, "|Dzien: Niedziela|(%d)",rounds); } }
proszę
Użytkownik Nltj edytował ten post 18.08.2014 20:08
The.Scott
18.08.2014
#include <amxmodx> #include <amxmisc> #define TASK_END 32515 #define PLUGIN "New plug-in" #define VERSION "1.0" #define AUTHOR "author" new rounds public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_logevent("round_end", 2, "1=Round_End") register_event("TextMsg","restart_roundsnum","a","2&#Game_C"/*,"2&#Game_w"*/) set_task(0.1, "hud",TASK_END,_,_,"b"); } public round_end() { rounds ++ } public restart_roundsnum() { rounds = 0 } public hud() { if(rounds == 1 || rounds == 8 || rounds == 15) { set_hudmessage(255, 0, 0, 0.3, -1.0, 2, 0.5, 5.0); show_hudmessage(0, "|Dzien: Poniedzialek|(%d)",rounds); } else if(rounds == 2 || rounds == 9) { set_hudmessage(255, 0, 0, 0.3, -1.0, 2, 0.5, 5.0); show_hudmessage(0, "|Dzien: Wtorek|(%d)",rounds); } else if(rounds == 3 || rounds == 10) { set_hudmessage(255, 0, 0, 0.3, -1.0, 2, 0.5, 5.0); show_hudmessage(0, "|Dzien: Sroda|(%d)",rounds); } else if(rounds == 4 || rounds == 11) { set_hudmessage(255, 0, 0, 0.3, -1.0, 2, 0.5, 5.0); show_hudmessage(0, "|Dzien: Czwartek|(%d)",rounds); } else if(rounds == 5 || rounds == 12) { set_hudmessage(255, 0, 0, 0.3, -1.0, 2, 0.5, 5.0); show_hudmessage(0, "|Dzien: Piatek|(%d)",rounds); } else if(rounds == 6 || rounds == 13) { set_hudmessage(255, 0, 0, 0.3, -1.0, 2, 0.5, 5.0); show_hudmessage(0, "|Dzien: Sobota|(%d)",rounds); } else if(rounds == 0 || rounds == 7 || rounds == 14) { set_hudmessage(255, 0, 0, 0.3, -1.0, 2, 0.5, 5.0); show_hudmessage(0, "|Dzien: Niedziela|(%d)",rounds); } }proszę
Nie dziala.. W centru pisze tylko |Dzien New plug-in|
EDIT: Jak edytowales juz dziala, ale wszystko rowno w centru text, a nie u gory..
Użytkownik The.Scott edytował ten post 18.08.2014 20:47
Nltj
18.08.2014
set_hudmessage(255, 0, 0, 0.3, -1.0, 2, 0.5, 5.0); w każdej linijce z set_hudmessage zmień na
set_hudmessage(255, 0, 0, 0.3, 1.0, 2, 0.5, 5.0); da message na samej górze po lewej
set_hudmessage(255, 0, 0, 0.8, 1.0, 2, 0.5, 5.0); da message na samej górze po prawej
Nltj
18.08.2014
Chcesz większe napisy ?
ściągnij plik INC z tego tematu http://amxx.pl/topic...or-hud-message/
wrzuć go do include na serwerze i jak kompilujesz lokalnie do folderu Include w swoim kompilatorze
pod #include dodaj
#include <dhudmessage>
a odpowiednio
set_hudmessage i show_hudmessage
zamień na
set_dhudmessage i show_dhudmessage
Użytkownik Nltj edytował ten post 18.08.2014 21:11
The.Scott
19.08.2014
WIELKIE DZIĘKI Nlj, ale jesze jedna rzecz, z tym pluginem bardzo szybko przepadają ADMIN Chat text, np. admin cos napisze przez @ ir prawie zrazu text przepada, często nawet zrazu.. ( Nie uzywalem większego napisu )
Nltj
19.08.2014
po 0.5, 5.0) dodaj ,_,_,4
Wygląda to tak dla wiadomości na samej górze i lekko po lewej
- set_hudmessage(255, 0, 0, 0.3, 1.0, 2, 0.5, 5.0,_,_,4);
The.Scott
19.08.2014
po 0.5, 5.0) dodaj ,_,_,4
Wygląda to tak dla wiadomości na samej górze i lekko po lewej
- set_hudmessage(255, 0, 0, 0.3, 1.0, 2, 0.5, 5.0,_,_,4);
Wszystko rowno admin chat szybko przepada..