Szerző Téma: Dátum És Óra Kérése  (Megtekintve 450 alkalommal)

Dátum És Óra Kérése
« Dátum: 2012. Augusztus 03. - 14:11:21 »
0 Show voters
Hálliii :D Órát és Dátumot Szeretnék Erre a Kijelölt Helyre .. Itt A Kép Link Hogy Érthetõ Legyen Hova :)! :P
http://kepfeltoltes.hu/view/120803/191768876K_pkiv_g_s_www.kepfeltoltes.hu_.png
Pl Igy 12:00(Pirossal)
ALÁ A DÁTUM
2012.08.03(Kékkel)
Elõre Is Köszi :)>:D

Kovacs_Bela

  • Vendég
Dátum És Óra Kérése
« Válasz #1 Dátum: 2012. Augusztus 08. - 00:11:58 »
0 Show voters
http://www.solidfiles.com/d/1503/
ha sikerült megcsinálni a textdrawot akkor szólj...

Nem elérhető Flash

  • 5726
  • (っ◕‿◕)っ
    • Profil megtekintése
Dátum És Óra Kérése
« Válasz #2 Dátum: 2012. Augusztus 08. - 03:18:13 »
+2 Show voters
Tessék:
Script:
 
#include <a_samp>
new Text:TimeDate;
new timedate, str[68];
public OnFilterScriptInit()
{
TimeDate = TextDrawCreate(586.000000, 27.000000, \"_\");
TextDrawAlignment(TimeDate, 2);
TextDrawBackgroundColor(TimeDate, 255);
TextDrawFont(TimeDate, 1);
TextDrawLetterSize(TimeDate, 0.420000, 0.899999);
TextDrawColor(TimeDate, -1);
TextDrawSetOutline(TimeDate, 1);
TextDrawSetProportional(TimeDate, 1);
timedate = SetTimer(\"TimeAndDate\", 1000, true);
return 1;
}
forward TimeAndDate();
public TimeAndDate()
{
new year,month,day,hours,minutes,seconds;
getdate(year, month, day), gettime(hours, minutes, seconds);
format(str, sizeof str, \"~r~~h~%02d:%02d:%02d~n~~n~~b~~h~~h~%d/%02d/%02d\", hours, minutes, seconds, year, month, day);
TextDrawSetString(TimeDate, str);
}
public OnFilterScriptExit()
{
TextDrawHideForAll(TimeDate);
TextDrawDestroy(TimeDate);
KillTimer(timedate);
return 1;
}
public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid, TimeDate);
return 1;
}

 
Kép:
\"image-3FB6_5021BE2E.jpg\"

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal