#include <amxmodx>
/*
* 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
*/
public show_timer(){
new nextmap[32]
get_cvar_string("amx_nextmap",nextmap,31)
fnGreenChat(0, "**Nastepna mapa: %s",nextmap)
return PLUGIN_CONTINUE
}
public show_timer2() {
new forum[32]
get_cvar_string("amx_forum",forum, 31)
fnGreenChat(0, "**Forum serwera: %s",forum)
}
public show_timer3() {
if (get_cvar_float("mp_timelimit"))
{
new a = get_timeleft()
if (get_cvar_num("amx_time_voice"))
{
}
fnGreenChat(0, "**Czas do konca mapy: %d:%02d", (a / 60), (a % 60))
}
}
public show_timer4() {
new nazwa[32]
get_cvar_string("hostname",nazwa,31)
fnGreenChat(0, "**Witamy na %s",nazwa)
}
public plugin_init()
{
register_plugin("plg :P","0.1","emblaze")
set_task(180.0, "show_timer4",0,"",0,"b")
set_task(180.0, "show_timer3",0,"",0,"b")
set_task(180.0, "show_timer",0,"",0,"b")
set_task(180.0, "show_timer2",0,"",0,"b")
register_cvar("amx_forum", "adres forum")
return PLUGIN_CONTINUE
}
fnGreenChat( plr, const message[], {Float,Sql,Result,_}:... )
{
static max_players, svc_saytext;
if( !max_players )
max_players = get_maxplayers( );
if( !svc_saytext )
svc_saytext = get_user_msgid( "SayText" );
static msg[192];
msg[0] = 0x04;
vformat( msg[1], sizeof msg - 2, message, 3 );
if( plr > 0 && plr <= max_players )
{
message_begin( MSG_ONE, svc_saytext, { 0, 0, 0 }, plr );
write_byte( plr );
write_string( msg );
message_end( );
}
else if( plr == 0 )
{
for( new i = 1 ; i <= max_players ; i++ )
{
if( is_user_connected( i ) )
{
message_begin( MSG_ONE, svc_saytext, { 0, 0, 0 }, i );
write_byte( i );
write_string( msg );
message_end( );
}
}
}
return 1;
}chodzi mi o to ze plugin pokazuje cale napisy na spielono :
http://extreme-ultra.xaa.pl/obraz.bmp
a chodzi mi o to aby bylo tak :
**- zielono
takst zwysly
i timeleft, nextmap, forum na kolor teamu.


Dodatki SourceMod



Temat jest zamknięty




pokazuj.amxx








