Hi mates
I'm Looking for MOD which I Can Put the time and Clock in my server !
Hi mates
I'm Looking for MOD which I Can Put the time and Clock in my server !
As i remember this comes with all the new features from reborn patch.
local.time = gettime 0
So you need to call :
XXX = values to place the message on the screen.Code:Inside a loop (WHILE (1) command) call all these commands: local.time = gettime 0 huddraw_virtualsize XXX huddraw_align XXX huddraw_font XXX huddraw_rect XXX huddraw_color XXX huddraw_alpha XXX huddraw_string XXX (local.time)
This comes from Reborn Scripting Commands website:
Code:gettime ( Integer zero ) { Gets current time in format: H:M:S Example: Code: local.time = gettime 0 or local.time = gettime(0) Result: Code: String with current time. } ScriptThread -> Listener -> Class gettimezone ( Integer zero ) { Gets current time zone. Example: Code: local.timezone = gettimezone 0 or local.timezone = gettimezone(0) Result: Code: Integer value that represents current time zone. eg. 2 = GMT +2 }
@PacRac It don't want to work :'(
Code:main: while(1) { wait 1 local.time = gettime 0 huddraw_align 176 "center" "bottom" huddraw_font 176 "facfont-20" huddraw_rect 176 1 -86 260 1 huddraw_color 176 1 1 1 // change color here huddraw_alpha 176 "1" huddraw_string 176 "(local.time)" } wait 1 end
and i saved it in PK3 file and i executed it from DMPrecache what's wrong i did ?
Last edited by BeroO; 06-30-2018 at 01:03 AM.
You have done wrong this:
Needs to be without " and ) like this:Code:huddraw_string 176 "(local.time)"
Code:huddraw_string 176 local.time
Thank you @DoubleKill for ur reply but it still didn't work
Note: The Steps What i did:
Code:main: while(1) { wait 1 local.time = gettime 0 huddraw_align 157 "center" "bottom" huddraw_font 157 "facfont-20" huddraw_rect 157 1 -86 260 1 huddraw_color 157 1 1 1 // change color here huddraw_alpha 157 "1" huddraw_string 157 local.time } wait 1 end
1- i saved the script in Global/clock.scr pk3 file Behind reborn patch
2- then i executed it From DMPrecache1.jpgCode:exec global/clock.scr
3- and i changed indexes many times coz if the last index working in another one and the rect in the center of server and i'll move it later but see if it will work or no
2.jpg
but didn't work can someone trying to run this script and tell me if he succeeded or not
Last edited by BeroO; 06-30-2018 at 01:42 PM.
Is working on my local server.
Theres something is conflicting with him or is not let him run.
Thank you very much Double Kill there was mistake in my DMPrecache Mod "IP2Co" Was overhead of this script and i fixed it and it is working now and i added (the date too) but something strange the font is too huge size more than normal there is difference between my server and server -=[[ETT]]=-
note: i tried if the resolution which make huge size of font the but it isn't which make this , and Purple Elephant said to me to addand it didn't work too and i moved the execute this script from DMPrecache up to level waittill spawn and nothing changePHP Code:
huddraw_virtualsize 157 1
PHP Code:
main:
while(1)
{
wait 1
local.time = gettime (0)
huddraw_align 176 "center" "bottom"
huddraw_font 176 "facfont-20"
huddraw_rect 176 395 -15 260 1
huddraw_color 176 0.6 0.5 0 // change color here
huddraw_alpha 176 1
huddraw_virtualsize 176 1
huddraw_string 176 local.time
}
wait 1
end
PHP Code:
main:
while(1)
{
wait 1
huddraw_align 177 "center" "bottom"
huddraw_font 177 "facfont-20"
huddraw_rect 177 315 -15 260 1
huddraw_color 177 0.6 0.5 0 // change color here
huddraw_alpha 177 1
huddraw_virtualsize 177 1
huddraw_string 177 "(EGY) Time: "
}
wait 1
end
01.jpg 2.jpg 24.jpgPHP Code:
main:
while(1)
{
wait 1
local.date = getdate (0)
huddraw_align 178 "right" "top"
huddraw_font 178 "facfont-20"
huddraw_rect 178 -140 53 14 14
huddraw_color 178 0.6 0.5 0 // change color here
huddraw_alpha 178 1
huddraw_virtualsize 176 1
huddraw_string 178 local.date
}
wait 1
end
Last edited by BeroO; 07-01-2018 at 01:35 AM.