Szerző Téma: idõ  (Megtekintve 791 alkalommal)

idõ
« Dátum: 2013. Február 20. - 15:22:03 »
0 Show voters
Hali. Valaki tudna nekem segíteni van egy idõ dátum scriptem és azt kéne meg csinálni este 7kor sötétedjen és 8 kor sötét legyen és reggel 8-ra pedig világos ebbe a scriptbe kellene be állítani:
 
#include <a_samp>
#define FILTERSCRIPT
new Text:Time, Text:Date;
forward settime(playerid);
public OnFilterScriptInit()
{
print(\"\\n--------------------------------------\");
print(\" Updated Version! WORLDCLOCK+DATE By Shadow\");
print(\"--------------------------------------\\n\");
    SetTimer(\"settime\",1000,true);
Date = TextDrawCreate(547.000000,11.000000,\"---\");
TextDrawFont(Date,3);
TextDrawLetterSize(Date,0.399999,1.600000);
    TextDrawColor(Date,0xffffffff);
Time = TextDrawCreate(547.000000,28.000000,\"--\");
TextDrawFont(Time,3);
TextDrawLetterSize(Time,0.399999,1.600000);
TextDrawColor(Time,0xffffffff);
UpdateTime();
SetTimer(\"settime\",1000 * 60,1);
return 1;
}
public OnFilterScriptExit()
{
print(\"\\n-----------------------------------------------------\");
print(\" Update Version! WORLDCLOCK+DATE By Shadow !UNLOADED!\");
print(\"-----------------------------------------------------/n\");
return 1;
}
public OnPlayerSpawn(playerid)
{
TextDrawShowForPlayer(playerid, Time), TextDrawShowForPlayer(playerid, Date);
 
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
TextDrawHideForPlayer(playerid, Time), TextDrawHideForPlayer(playerid, Date);
return 1;
}
public settime(playerid)
{
new string[256],year,month,day,hours,minutes,seconds;
getdate(year, month, day), gettime(hours, minutes, seconds);
format(string, sizeof string, \"%d/%s%d/%s%d\", day, ((month < 10) ? (\"0\") : (\"\")), month, (year < 10) ? (\"0\") : (\"\"), year);
TextDrawSetString(Date, string);
format(string, sizeof string, \"%s%d:%s%d:%s%d\", (hours < 10) ? (\"0\") : (\"\"), hours, (minutes < 10) ? (\"0\") : (\"\"), minutes, (seconds < 10) ? (\"0\") : (\"\"), seconds);
TextDrawSetString(Time, string);
}

idõ
« Válasz #1 Dátum: 2013. Február 20. - 15:45:26 »
0 Show voters

public settime(playerid)
{
new string[256],year,month,day,hours,minutes,seconds;
getdate(year, month, day), gettime(hours, minutes, seconds);
format(string, sizeof string, \"%d/%s%d/%s%d\", day, ((month < 10) ? (\"0\") : (\"\")), month, (year < 10) ? (\"0\") : (\"\"), year);
TextDrawSetString(Date, string);
format(string, sizeof string, \"%s%d:%s%d:%s%d\", (hours < 10) ? (\"0\") : (\"\"), hours, (minutes < 10) ? (\"0\") : (\"\"), minutes, (seconds < 10) ? (\"0\") : (\"\"), seconds);
TextDrawSetString(Time, string);
SetPlayerTime(playerid, hours, minutes); //Beállitja a játékban a pontos idõt.
}

 
Ez beállitja a játékban is az idõt (tehát nem csak azt irja, hogy 5 óra van, hanem annyira is van sötét), de ha nem jó, szólj. :)

idõ
« Válasz #2 Dátum: 2013. Február 20. - 18:49:07 »
0 Show voters
Nem sötétedik :S és nekem olyan kéne este sötétedjen reggel világosodjon

idõ
« Válasz #3 Dátum: 2013. Február 27. - 20:20:07 »
0 Show voters
Próbálkoztam allakításal de nem jó:S valaki esetleg?

Nem elérhető Cappsy

  • Adminisztrátor
  • 2754
    • Profil megtekintése
idõ
« Válasz #4 Dátum: 2013. Február 27. - 20:49:05 »
0 Show voters
alap script asszem a neve gl_realtime  :facepalm:

idõ
« Válasz #5 Dátum: 2013. Február 27. - 20:51:19 »
0 Show voters
Jó igen azt én is tudom de nekem ugyan az a sötétedés kéne ebbe

Nem elérhető Cappsy

  • Adminisztrátor
  • 2754
    • Profil megtekintése
idõ
« Válasz #6 Dátum: 2013. Február 27. - 20:53:56 »
0 Show voters
Most nem vágom ha van egy ugyan olyan script miért nem jó Real time szal jó lesz....
Kell bele valami írjak neked bele valamit vagy mi a ....??

idõ
« Válasz #7 Dátum: 2013. Február 27. - 21:01:54 »
0 Show voters
Azt kellene meg csinálni hogy ebbe a scriptbe is sötétedjen és világosodjon

Nem elérhető Cappsy

  • Adminisztrátor
  • 2754
    • Profil megtekintése
idõ
« Válasz #8 Dátum: 2013. Február 27. - 21:03:40 »
0 Show voters
megvan csinálva....

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal