| Micros, 10.10.2008, 03:24 |
|---|
| Weiß einer wie man das scriptet, dass beim Godfather Script der OOC Chat um 0 Uhr automatisch angeht und um 10 Uhr wieder automatisch aus geht? Ich weiß, dass das irgentwie mit ghour und tmphour und mit diesem Zeugs geht, nur ich weiß nicht wie das genau geht^^ |
| kevin, 23.10.2008, 20:21 |
|---|
| Nur für den Godfather Script ganz unten bei public OnGameModeInit() einsetzten new oocOpen = 0; if (realtime) { new tmphour; new tmpminute; new tmpsecond; gettime(tmphour, tmpminute, tmpsecond); FixHour(tmphour); tmphour = shifthour; SetWorldTime(tmphour); if (tmphour<6) { oocOpen=1; } public SyncTime() { new string[64]; new tmphour; new tmpminute; new tmpsecond; gettime(tmphour, tmpminute, tmpsecond); FixHour(tmphour); tmphour = shifthour; if ((tmphour > ghour) || (tmphour == 0 && ghour == 23)) { format(string, sizeof(string), "SERVER: Es ist jetzt %d:00 Uhr",tmphour); BroadCast(COLOR_WHITE,string); ghour = tmphour; PayDay(); if (realtime) { SetWorldTime(tmphour); if (tmphour==0) { oocOpen=1; GameTextForAll("~g~0 Uhr~n~~w~Der ~r~OOC-Chat ~w~wurde geoeffnet", 5000, 5); } else if (tmphour==6) { oocOpen=0; GameTextForAll("~g~6 Uhr~n~~w~Der ~r~OOC-Chat ~w~wurde geschlossen", 5000, 5); } } } |