GTA Közösség - A magyar GTA fórum

San Andreas Multiplayer (SA-MP) => SA-MP: Szerverfejlesztés => Szkript kérések => A témát indította: Bobo60 - 2012. augusztus 03. - 14:11:21

Cím: Dátum És Óra Kérése
Írta: Bobo60 - 2012. augusztus 03. - 14:11:21
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
Cím: Dátum És Óra Kérése
Írta: Kovacs_Bela - 2012. augusztus 08. - 00:11:58
http://www.solidfiles.com/d/1503/
ha sikerült megcsinálni a textdrawot akkor szólj...
Cím: Dátum És Óra Kérése
Írta: Flash - 2012. augusztus 08. - 03:18:13
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\"