#include <a_samp>
forward Relogio(playerid);
new Text:Textdraw0;
public OnFilterScriptInit()
{
print("Relogio By:Don_Speed");
SetTimer("Relogio",1000,1);
Textdraw0 = TextDrawCreate(250.000000, 10.000000,"00/00/00 || 00:00:00");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 1);
TextDrawLetterSize(Textdraw0, 0.500000, 1.000000);
TextDrawColor(Textdraw0, -1);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);
for(new i; i < MAX_PLAYERS; i ++)
{
if(IsPlayerConnected(i))
{
TextDrawShowForPlayer(i, Textdraw0);
}
}
return 1;
}
public OnFilterScriptExit()
{
TextDrawHideForAll(Textdraw0);
TextDrawDestroy(Textdraw0);
return 1;
}
public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid, Textdraw0);
return 1;
}
public Relogio(playerid)
{
new str[128], mes[12], ano, month, dia, horas, minutos, segundos;
getdate(ano, month, dia);
gettime(horas,minutos,segundos);
if(month == 1) { mes = "1"; }
else if(month == 2) {mes = "2";}
else if(month == 3) {mes = "3";}
else if(month == 4) {mes = "4";}
else if(month == 5) {mes = "5";}
else if(month == 6) {mes = "6";}
else if(month == 7) {mes = "7";}
else if(month == 8) {mes = "8";}
else if(month == 9) {mes = "9";}
else if(month == 10) {mes = "10";}
else if(month == 11) {mes = "11";}
else if(month == 12) {mes= "12";}
format(str, sizeof(str), "%d/%s/%d || %d:%d:%d", dia, mes,ano,horas, minutos, segundos);
TextDrawSetString(Text:Textdraw0, str);
}
#include <a_samp>
forward Relogio(playerid);
new Text:Textdraw0;
public OnFilterScriptInit()
{
print("Relogio By:Don_Speed");
SetTimer("Relogio",1000,1);
Textdraw0 = TextDrawCreate( 250.000000, 10.000000,"Dia 00 de 00 de 00 [[00:00:00]]");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 3);
TextDrawLetterSize(Textdraw0, 0.500000, 1.000000);
TextDrawColor(Textdraw0, 0xFFC80166);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 3);
TextDrawSetShadow(Textdraw0, 1);
for(new i; i < MAX_PLAYERS; i ++)
{
if(IsPlayerConnected(i))
{
TextDrawShowForPlayer(i, Textdraw0);
}
}
return 1;
}
public OnFilterScriptExit()
{
TextDrawHideForAll(Textdraw0);
TextDrawDestroy(Textdraw0);
return 1;
}
public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid, Textdraw0);
return 1;
}
public Relogio(playerid)
{
new str[259], mes[12], ano, month, dia, horas, minutos, segundos;
getdate(ano, month, dia);
gettime(horas,minutos,segundos);
if(month == 1) { mes = "Janeiro"; }
else if(month == 2) {mes = "Fevereiro";}
else if(month == 3) {mes = "Marco";}
else if(month == 4) {mes = "Abril";}
else if(month == 5) {mes = "Maio";}
else if(month == 6) {mes = "Junho";}
else if(month == 7) {mes = "Julho";}
else if(month == 8) {mes = "Agosto";}
else if(month == 9) {mes = "Setembro";}
else if(month == 10) {mes = "Outubro";}
else if(month == 11) {mes = "Novembro";}
else if(month == 12) {mes= "Dezembro";}
format(str, sizeof(str), "Dia %d de %s de %d [[%d:%d:%d]]", dia, mes,ano,horas, minutos, segundos);
TextDrawSetString(Text:Textdraw0, str);
}
Nгo que nгo ficou bom.
Mais sei lб, eu achei feio, pela posiзгo, pela cor e pela fonte da letra. ![]() Mais o que vale a intenзгo, obrigado por compartilhar. |
Fonte e Cor Qualquer Um Pode Alterar Posiзao eu Achei Legal
![]() 400 Post HeHe |
Уbvio que eu sei nй, mais eu sу estou dando uma sugestгo para vocк tentar melhorar na prуxima versгo(se tiver).
|
Traduzindo para o Portuguкs .
Relуgio legal , mas o ruim й a posiзгo, mas o que vale й a intensгo . @TOPIC Belo FS , Parabйns |