Info w say
kasza
15.06.2009
dezerter_af
16.06.2009
kasza
16.06.2009
u mnie napisy pokazuja sie co 3 min, jak dla mnie jest optymalny.Lecz mysle, ze mozna było by dodac wywolywanie poprzez komendę?
Misiaczek ;c
16.06.2009
A Plugin dobry i Ciekawy
Attached Files
dezerter_af
17.06.2009
Napisy zawsze pojawiają się od koniec rundy a nie co 3 minutyu mnie napisy pokazuja sie co 3 min, jak dla mnie jest optymalny.
Grycuk
23.06.2009
@@edit a zeby sma dzialalo to fajnie by bylo autora proszę o poprawienie
Rubasze 23.06.2009
Plugin nie daje sie skompilować
Nie udało się skompilować pluginu.
Przeczytaj poniższy bład:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright © 1997-2006 ITB CompuPhase, AMX Mod X Team
/home/groups/amxmodx/tmp3/textV609Jq.sma(3) : fatal error 100: cannot read from file: "colorchat"
Compilation aborted.
1 Error.
Proszę o poprawienie tego pluginu
Abes Mapper
23.06.2009
Wypakuj colorchat.rar i colorchat.inc wrzuć do scripting/include/
Ja jej używałem jako .inl i publikowałem razem z pluginami, ale funkcje te same
Attached Files
dezerter_af
24.06.2009
#include <amxmodx>
#include <csx>
#include <colorchat>
/*
* TimeProjector displays the remaining time and the next map on the top right corner of the client
* display as a hudmessage.
*
* History:
*
* v0.1: - first release
*/
new gcvarForum;
public plugin_init()
{
register_plugin("plg :P","0.1","emblaze")
set_task(160.0, "showTimer",0,"",0,"b")
gcvarForum=register_cvar("info_forum", "adres forum")
return PLUGIN_CONTINUE
}
public showTimer(id){
new nazwa[32]
get_cvar_string("hostname",nazwa,31)
ColorChat(id,GREEN, "**^x01 Witamy na: ^x03%s",nazwa);
new forum[32]
get_pcvar_string(gcvarForum,forum, 31)
ColorChat(id,GREEN, "**^x01 Forum serwera: ^x03%s",forum)
new nextmap[32]
get_cvar_string("amx_nextmap",nextmap,31)
ColorChat(id,GREEN, "**^x01 Nastepna mapa: ^x03%s", nextmap)
if (get_cvar_float("mp_timelimit"))
{
new a = get_timeleft()
if (get_cvar_num("amx_time_voice"))
{
}
ColorChat(id,GREEN, "**^x01 Czas do konca mapy: ^x03%d^x04:^x03%02d", (a / 60), (a % 60))
}
}
na 99% powinien działac
EDIT: wersja na komendę /info bez ranku
#include <amxmodx> #include <csx> #include <colorchat> /* * TimeProjector displays the remaining time and the next map on the top right corner of the client * display as a hudmessage. * * History: * * v0.1: - first release */ new gcvarForum; public plugin_init() { register_plugin("plg :P","0.1","emblaze") register_clcmd("say /info", "showTimer", 0, "Pokazuje krotkie info"); register_clcmd("say_team /info", "showTimer", 0, "Pokazuje krotkie info"); gcvarForum=register_cvar("info_forum", "adres forum") return PLUGIN_CONTINUE } public showTimer(id){ new nazwa[32] get_cvar_string("hostname",nazwa,31) ColorChat(id,GREEN, "**^x01 Witamy na: ^x03%s",nazwa); new forum[32] get_pcvar_string(gcvarForum,forum, 31) ColorChat(id,GREEN, "**^x01 Forum serwera: ^x03%s",forum) new nextmap[32] get_cvar_string("amx_nextmap",nextmap,31) ColorChat(id,GREEN, "**^x01 Nastepna mapa: ^x03%s", nextmap) if (get_cvar_float("mp_timelimit")) { new a = get_timeleft() if (get_cvar_num("amx_time_voice")) { } ColorChat(id,GREEN, "**^x01 Czas do konca mapy: ^x03%d^x04:^x03%02d", (a / 60), (a % 60)) } }
Do amxx.cfg dopisujemy
info_forum "adres naszego forum"