/*
* AMX X Mod script.
*
* © Copyright 2003, ST4life
* Remade by TaL
* This file is provided as is (no warranties).
*/
#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)
new timeleft = get_timeleft()
set_hudmessage(255,255,255,0.75,0.05,0, 1.0, 1.0, 0.1, 0.2, 13)
show_hudmessage(0,"Time remaining: %d:%02d^nNext map: %s",timeleft / 60, timeleft % 60,nextmap)
return PLUGIN_CONTINUE
}
public plugin_init()
{
register_plugin("TimeProjector","0.1","ST4life")
set_task(1.0, "show_timer",0,"",0,"b")
return PLUGIN_CONTINUE
}
Witamy w Nieoficjalnym polskim support'cie AMX Mod X
Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
|
Guest Message by DevFuse
timeprojector
Temat rozp.
Vixen123
, 13.03.2012 14:53
2 odpowiedzi w tym temacie
#1
Napisano 13.03.2012 14:53
Witam,przerobi mi ktoś plugin timeprojector,aby napisy były na zielono i migały+żeby były po polsku.
#2
Napisano 13.03.2012 16:24
Proszę.
#include <amxmodx>
public show_timer()
{
new nextmap[32]
get_cvar_string("amx_nextmap",nextmap,31)
new timeleft = get_timeleft()
set_hudmessage(0,255,0,0.75,0.05,1, 1.0, 1.0, 0.1, 0.2, 13)
show_hudmessage(0,"Pozostaly czas: %d:%02d^nNastepna mapa: %s",timeleft / 60, timeleft % 60,nextmap)
return PLUGIN_CONTINUE
}
public plugin_init()
{
register_plugin("TimeProjector","0.1","ST4life")
set_task(1.0, "show_timer",0,"",0,"b")
return PLUGIN_CONTINUE
}
Najlepszy serwer TeamPlay w Polsce !
Pomogłem, wejdź
Zapraszam na BHZ-Game.pl
Bo nie liczą się fragi tylko dobra atmosfera ;D
#3
Napisano 14.03.2012 00:33
Fajnie to napisałeś : "żeby były po polsku" .. jak już to żeby ktoś Ci to przetłumaczył
Użytkownicy przeglądający ten temat: 0
0 użytkowników, 0 gości, 0 anonimowych