Код:
/*
COM CERTEZA IRA REMOVER ESSA PARTE MAS PELO MENOS POSTEI =D
• FILESCRIPT FEITO / CRIADO POR MURILO DE SOUSA
• USE E ABUSE MAS NAO RETIRE OS CREDITOS
• BOM JOGO !
*/
#include <a_samp>
new Text:txtTimeDisp;
new Text:txtDateDisp;
forward hora(playerid);
public OnFilterScriptInit()
{
print("\n--------------------------------------------------------");
print(" FileScript Feito Por Murilo! Use e Abuse mas Nao Retire os Creditos '-' ");
print("----------------------------------------------------------\n");
txtDateDisp = TextDrawCreate(620.0,5.0,"00 de 00");
TextDrawUseBox(txtDateDisp, 0);
TextDrawFont(txtDateDisp, 3);
TextDrawSetShadow(txtDateDisp,0);
TextDrawSetOutline(txtDateDisp,2);
TextDrawBackgroundColor(txtDateDisp,0x000000FF);
TextDrawColor(txtDateDisp,0xFFFFFFFF);
TextDrawAlignment(txtDateDisp,3);
TextDrawLetterSize(txtDateDisp,0.5,1.5);
txtTimeDisp = TextDrawCreate(632.0,25.0,"--:--:--");
TextDrawUseBox(txtTimeDisp, 0);
TextDrawFont(txtTimeDisp, 3);
TextDrawSetShadow(txtTimeDisp,0);
TextDrawSetOutline(txtTimeDisp,2);
TextDrawBackgroundColor(txtTimeDisp,0x000000FF);
TextDrawColor(txtTimeDisp,0xFFFFFFFF);
TextDrawAlignment(txtTimeDisp,3);
TextDrawLetterSize(txtTimeDisp,0.5,1.5);
SetTimer("hora",1000,1);
return 1;
}
public OnPlayerSpawn(playerid)
{
return 1;
}
public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid, txtDateDisp);
TextDrawShowForPlayer(playerid, txtTimeDisp);
return 1;
}
public hora(playerid)
{
new str[128],
str2[128],
year,
month,
day,
hour,
minute,
second;
getdate(year,month,day);
gettime(hour,minute,second);
new mes[12];
if(month == 1) { mes = "Janeiro"; }
else if(month == 2) {mes = "Fevereiro";}
else if(month == 3) {mes = "Marзo";}
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), "%d de %s", day, mes,year);
TextDrawSetString(Text:txtDateDisp, str);
format(str2, sizeof(str2), "%d:%d:%d", hour, minute, second);
TextDrawSetString(Text:txtTimeDisp, str2);
}