AdminMod.de https://www.adminmod.de/ |
|
Zeit anzeige Plugin.. https://www.adminmod.de/viewtopic.php?t=4580 |
Seite 1 von 1 |
Autor: | aRved [ 30.12.2002, 18:24 ] |
Betreff des Beitrags: | Zeit anzeige Plugin.. |
Joa ich suche nen schickes time remaining plugin, habe jez keine genaue vorstellung davon und auch keine ideen. Aber wollte einfach ma fragen ob ihr welche kennt oder welche ihr benutzt... Hoffe jmd kennt en paar schöne ![]() THX im voraus und nen juden rutsch.. ![]() |
Autor: | DarkEyes1 [ 30.12.2002, 18:44 ] |
Betreff des Beitrags: | |
http://www.adminmod.org/ascript/plugin.php#3733385670 achso, nicht zeit anzeige, sondern timeleftanzeige... ich nutze den Timemanager von SDaL http://board.battlenation.de/viewtopic. ... highlight= |
Autor: | aRved [ 30.12.2002, 20:59 ] |
Betreff des Beitrags: | |
noja aber ich möchte ja nen schickes time left plugin was zb nochen paar sounds ausgibt oder so Das Big ben teil hab ick ja ![]() |
Autor: | DarkEyes1 [ 30.12.2002, 22:24 ] |
Betreff des Beitrags: | |
big ben gibt auch sounds aus ![]() hatte mal das: #include <core> #include <console> #include <string> #include <admin> #include <adminlib> #define ACCESS_CONSOLE 131072 new STRING_VERSION[MAX_DATA_LENGTH] = "1.6"; new GameCommencing=0; new checktime; new origtimelimit; new timer; public timerem2_welt(HLCommand,HLData,HLUserName,UserIndex){ new Data [MAX_DATA_LENGTH]; new x [MAX_DATA_LENGTH]; new dummy[MAX_DATA_LENGTH]; convert_string( HLData, Data, MAX_DATA_LENGTH ); strsplit(Data,"_",x,MAX_DATA_LENGTH,dummy,MAX_DATA_LENGTH); if(strcmp(x,"Game")==0 && GameCommencing == 0){ GameCommencing = 1; checktime =systemtime(); origtimelimit = getvar("mp_timelimit")*60+2; kill_timer(timer); timer=set_timer("warn",1, 0); } else if(strcmp(x,"Restart")==0){ origtimelimit =getvar("mp_timelimit")*60+2; checktime = systemtime(); kill_timer(timer); timer=set_timer("warn",1,0); } else if(strcmp(x,"Round")==0){ if (getvar("mp_timelimit")*60+2 != origtimelimit){ checktime = systemtime()-(systemtime()- checktime); origtimelimit= getvar("mp_timelimit")*60+2; kill_timer(timer); timer=set_timer("warn",1,0); } } return PLUGIN_CONTINUE; } public warn(Timer,Repeat,HLUser,HLParam) { new a; new time; if (getvar("mp_timelimit")*60+2 != origtimelimit){ checktime = systemtime()-(systemtime()- checktime); origtimelimit= getvar("mp_timelimit")*60+2; } time = (origtimelimit-(systemtime()-checktime)); switch(time){ case 1800:{ execclient_all("speak ^"fvox/thirty minutes remaining^""); centersay("30 Minuten noch...",6,0,255,0); a = 300; } case 1500:{ execclient_all("speak ^"fvox/twenty five minutes remaining^""); centersay("25 Minuten noch...",6,0,255,0); a = 300; } case 1200:{ execclient_all("speak ^"fvox/twenty minutes remaining^""); centersay("20 Minuten noch...",6,0,255,0); a = 300; } case 900:{ execclient_all("speak ^"fvox/fifteen minutes remaining^""); centersay("15 Minuten noch...",6,0,255,0); a = 300; } case 600:{ execclient_all("speak ^"fvox/ten minutes remaining^""); centersay("10 Minuten noch...",6,0,255,0); a = 300; } case 300:{ execclient_all("speak ^"fvox/five minutes remaining^""); centersay("5 Minuten noch...",6,0,255,0); a = 180; } case 120:{ execclient_all("speak ^"fvox/two minutes remaining^""); centersay("2 Minuten noch...",6,0,255,0); a = 60; } case 60:{ execclient_all("speak ^"fvox/sixty seconds remaining^""); centersay("60 Sekunden noch...",6,255,0,0); a = 40; } case 20:{ execclient_all("speak ^"you are authorized for a advanced level^""); centersay("20 Sekunden noch...",6,255,0,0); a = 10; } case 10:{ execclient_all("speak ^"ten seconds remaining^""); centersay("10 Sekunden noch...",5,255,0,0); a = 5; } case 5:{ execclient_all("speak ^"five^""); centersay("Five",1,255,0,0); a = 1; } case 4:{ execclient_all("speak ^"four^""); centersay("Four",1,255,0,0); a = 1; } case 3:{ execclient_all("speak ^"three^""); centersay("Three",1,255,0,0); a = 1; } case 2:{ execclient_all("speak ^"two^""); centersay("Two",1,255,0,0); a = 1; } case 1:{ execclient_all("speak ^"one^""); centersay("One",1,255,0,0); a = 1; } case 0:{ new ExecCommand[MAX_DATA_LENGTH]; new Timelimit = 0; Timelimit = getvar("mp_timelimit") - 1; snprintf(ExecCommand, MAX_DATA_LENGTH, "mp_timelimit %i", Timelimit); exec(ExecCommand); execclient_all("speak ^"this round is over^""); } default:{ if(time>1800){ a = time-1800; }else if(time<1800 && time>1500){ a = time - 1500; }else if(time<1500 && time>1200){ a = time - 1200; }else if(time<1200 && time>900){ a = time - 900; }else if(time<900 && time>600){ a = time - 600; }else if(time<600 && time>300){ a = time - 300; }else if(time<300 && time>120){ a = time - 120; }else if(time<120 && time>60){ a = time - 60; }else if(time<60 && time>30){ a = time - 30; }else{ a=1; } } } timer=set_timer("warn",a, 0); return PLUGIN_CONTINUE; } public plugin_init(){ plugin_registerinfo("Time Remaining Counter","Just a countdown until the Map over.",STRING_VERSION); plugin_registercmd("timerem2_welt", "timerem2_welt", ACCESS_CONSOLE); exec("logd_reg 62 admin_command timerem2_welt"); checktime =systemtime(); origtimelimit = getvar("mp_timelimit")*60+2; timer=set_timer("warn",1, 0); return PLUGIN_CONTINUE; } müssen nur noch sounds rein... |
Autor: | sentinel [ 30.12.2002, 22:36 ] |
Betreff des Beitrags: | |
kennt jemand sen tv-clan die haben auf dem holodeck auch son timer mit sound so würde ich das auch gern haben wollen aber weis nicht was das fürn plug ist ![]() |
Autor: | Rinde [ 30.12.2002, 22:37 ] |
Betreff des Beitrags: | |
nun hat der kerl schon 300 posts und kriegt keine Code: tags hin... |
Autor: | DarkEyes1 [ 30.12.2002, 22:57 ] |
Betreff des Beitrags: | |
![]() Code: #include <core> #include <console> #include <string> #include <admin> #include <adminlib> #define ACCESS_CONSOLE 131072 new STRING_VERSION[MAX_DATA_LENGTH] = "1.6"; new GameCommencing=0; new checktime; new origtimelimit; new timer; public timerem2_welt(HLCommand,HLData,HLUserName,UserIndex){ new Data [MAX_DATA_LENGTH]; new x [MAX_DATA_LENGTH]; new dummy[MAX_DATA_LENGTH]; convert_string( HLData, Data, MAX_DATA_LENGTH ); strsplit(Data,"_",x,MAX_DATA_LENGTH,dummy,MAX_DATA_LENGTH); if(strcmp(x,"Game")==0 && GameCommencing == 0){ GameCommencing = 1; checktime =systemtime(); origtimelimit = getvar("mp_timelimit")*60+2; kill_timer(timer); timer=set_timer("warn",1, 0); } else if(strcmp(x,"Restart")==0){ origtimelimit =getvar("mp_timelimit")*60+2; checktime = systemtime(); kill_timer(timer); timer=set_timer("warn",1,0); } else if(strcmp(x,"Round")==0){ if (getvar("mp_timelimit")*60+2 != origtimelimit){ checktime = systemtime()-(systemtime()- checktime); origtimelimit= getvar("mp_timelimit")*60+2; kill_timer(timer); timer=set_timer("warn",1,0); } } return PLUGIN_CONTINUE; } public warn(Timer,Repeat,HLUser,HLParam) { new a; new time; if (getvar("mp_timelimit")*60+2 != origtimelimit){ checktime = systemtime()-(systemtime()- checktime); origtimelimit= getvar("mp_timelimit")*60+2; } time = (origtimelimit-(systemtime()-checktime)); switch(time){ case 1800:{ execclient_all("speak ^"fvox/thirty minutes remaining^""); centersay("30 Minuten noch...",6,0,255,0); a = 300; } case 1500:{ execclient_all("speak ^"fvox/twenty five minutes remaining^""); centersay("25 Minuten noch...",6,0,255,0); a = 300; } case 1200:{ execclient_all("speak ^"fvox/twenty minutes remaining^""); centersay("20 Minuten noch...",6,0,255,0); a = 300; } case 900:{ execclient_all("speak ^"fvox/fifteen minutes remaining^""); centersay("15 Minuten noch...",6,0,255,0); a = 300; } case 600:{ execclient_all("speak ^"fvox/ten minutes remaining^""); centersay("10 Minuten noch...",6,0,255,0); a = 300; } case 300:{ execclient_all("speak ^"fvox/five minutes remaining^""); centersay("5 Minuten noch...",6,0,255,0); a = 180; } case 120:{ execclient_all("speak ^"fvox/two minutes remaining^""); centersay("2 Minuten noch...",6,0,255,0); a = 60; } case 60:{ execclient_all("speak ^"fvox/sixty seconds remaining^""); centersay("60 Sekunden noch...",6,255,0,0); a = 40; } case 20:{ execclient_all("speak ^"you are authorized for a advanced level^""); centersay("20 Sekunden noch...",6,255,0,0); a = 10; } case 10:{ execclient_all("speak ^"ten seconds remaining^""); centersay("10 Sekunden noch...",5,255,0,0); a = 5; } case 5:{ execclient_all("speak ^"five^""); centersay("Five",1,255,0,0); a = 1; } case 4:{ execclient_all("speak ^"four^""); centersay("Four",1,255,0,0); a = 1; } case 3:{ execclient_all("speak ^"three^""); centersay("Three",1,255,0,0); a = 1; } case 2:{ execclient_all("speak ^"two^""); centersay("Two",1,255,0,0); a = 1; } case 1:{ execclient_all("speak ^"one^""); centersay("One",1,255,0,0); a = 1; } case 0:{ new ExecCommand[MAX_DATA_LENGTH]; new Timelimit = 0; Timelimit = getvar("mp_timelimit") - 1; snprintf(ExecCommand, MAX_DATA_LENGTH, "mp_timelimit %i", Timelimit); exec(ExecCommand); execclient_all("speak ^"this round is over^""); } default:{ if(time>1800){ a = time-1800; }else if(time<1800 && time>1500){ a = time - 1500; }else if(time<1500 && time>1200){ a = time - 1200; }else if(time<1200 && time>900){ a = time - 900; }else if(time<900 && time>600){ a = time - 600; }else if(time<600 && time>300){ a = time - 300; }else if(time<300 && time>120){ a = time - 120; }else if(time<120 && time>60){ a = time - 60; }else if(time<60 && time>30){ a = time - 30; }else{ a=1; } } } timer=set_timer("warn",a, 0); return PLUGIN_CONTINUE; } public plugin_init(){ plugin_registerinfo("Time Remaining Counter","Just a countdown until the Map over.",STRING_VERSION); plugin_registercmd("timerem2_welt", "timerem2_welt", ACCESS_CONSOLE); exec("logd_reg 62 admin_command timerem2_welt"); checktime =systemtime(); origtimelimit = getvar("mp_timelimit")*60+2; timer=set_timer("warn",1, 0); return PLUGIN_CONTINUE; } |
Autor: | aRved [ 01.01.2003, 18:55 ] |
Betreff des Beitrags: | |
Zitat: kennt jemand sen tv-clan die haben auf dem holodeck auch son timer mit sound so würde ich das auch gern haben wollen aber weis nicht was das fürn plug ist
Ja kenne ich ist nich schlecht das teil, aber genauso will ichs nun uch nich haben, aber so die art ist schon goil ![]() ![]() Und dark eyes dein teil ist ja eigentlich nur genau das ding was bei cm uch dabei is ![]() |
Autor: | DarkEyes1 [ 01.01.2003, 19:22 ] |
Betreff des Beitrags: | |
jo, reicht aber... wie gesagt, ich nutze den SDal-Timemanager... ![]() |
Autor: | sentinel [ 01.01.2003, 19:27 ] |
Betreff des Beitrags: | |
jo das teil hier ist nicht schlecht. ich habe einfach die sounds umgeschrieben und schon ist es so ähnlich wie auf tv-clan. Code: [list=]#include <core> #include <console> #include <string> #include <admin> #include <adminlib> #define ACCESS_CONSOLE 131072 new STRING_VERSION[MAX_DATA_LENGTH] = "1.6"; new GameCommencing=0; new checktime; new origtimelimit; new timer; public timerem2_welt(HLCommand,HLData,HLUserName,UserIndex){ new Data [MAX_DATA_LENGTH]; new x [MAX_DATA_LENGTH]; new dummy[MAX_DATA_LENGTH]; convert_string( HLData, Data, MAX_DATA_LENGTH ); strsplit(Data,"_",x,MAX_DATA_LENGTH,dummy,MAX_DATA_LENGTH); if(strcmp(x,"Game")==0 && GameCommencing == 0){ GameCommencing = 1; checktime =systemtime(); origtimelimit = getvar("mp_timelimit")*60+2; kill_timer(timer); timer=set_timer("warn",1, 0); } else if(strcmp(x,"Restart")==0){ origtimelimit =getvar("mp_timelimit")*60+2; checktime = systemtime(); kill_timer(timer); timer=set_timer("warn",1,0); } else if(strcmp(x,"Round")==0){ if (getvar("mp_timelimit")*60+2 != origtimelimit){ checktime = systemtime()-(systemtime()- checktime); origtimelimit= getvar("mp_timelimit")*60+2; kill_timer(timer); timer=set_timer("warn",1,0); } } return PLUGIN_CONTINUE; } public warn(Timer,Repeat,HLUser,HLParam) { new a; new time; if (getvar("mp_timelimit")*60+2 != origtimelimit){ checktime = systemtime()-(systemtime()- checktime); origtimelimit= getvar("mp_timelimit")*60+2; } time = (origtimelimit-(systemtime()-checktime)); switch(time){ case 1800:{ execclient_all("speak ^"fvox/thirty minutes remaining^""); centersay("30 Minuten noch...",6,0,255,0); a = 300; } case 1500:{ execclient_all("speak ^"fvox/twenty five minutes remaining^""); centersay("25 Minuten noch...",6,0,255,0); a = 300; } case 1200:{ execclient_all("speak ^"fvox/twenty minutes remaining^""); centersay("20 Minuten noch...",6,0,255,0); a = 300; } case 900:{ execclient_all("speak ^"fvox/fifteen minutes remaining^""); centersay("15 Minuten noch...",6,0,255,0); a = 300; } case 600:{ execclient_all("speak ^"fvox/ten minutes remaining^""); centersay("10 Minuten noch...",6,0,255,0); a = 300; } case 300:{ execclient_all("speak ^"sound/misc/5minutes remaining^""); centersay("5 Minuten noch...",6,0,255,0); a = 180; } case 120:{ execclient_all("speak ^"sound/misc/2minutes remaining^""); centersay("2 Minuten noch...",6,0,255,0); a = 60; } case 60:{ execclient_all("speak ^"sound/misc/1minute remaining^""); centersay("60 Sekunden noch...",6,255,0,0); a = 40; } case 20:{ execclient_all("speak ^"sound/misc/30seconds remaining^""); centersay("20 Sekunden noch...",6,255,0,0); a = 10; } case 10:{ execclient_all("speak ^"sound/misc/20seconds remaining^""); centersay("10 Sekunden noch...",5,255,0,0); a = 5; } case 5:{ execclient_all("speak ^"five^""); centersay("Five",1,255,0,0); a = 1; } case 4:{ execclient_all("speak ^"four^""); centersay("Four",1,255,0,0); a = 1; } case 3:{ execclient_all("speak ^"three^""); centersay("Three",1,255,0,0); a = 1; } case 2:{ execclient_all("speak ^"two^""); centersay("Two",1,255,0,0); a = 1; } case 1:{ execclient_all("speak ^"one^""); centersay("One",1,255,0,0); a = 1; } case 0:{ new ExecCommand[MAX_DATA_LENGTH]; new Timelimit = 0; Timelimit = getvar("mp_timelimit") - 1; snprintf(ExecCommand, MAX_DATA_LENGTH, "mp_timelimit %i", Timelimit); exec(ExecCommand); execclient_all("speak ^"this round is over^""); } default:{ if(time>1800){ a = time-1800; }else if(time<1800 && time>1500){ a = time - 1500; }else if(time<1500 && time>1200){ a = time - 1200; }else if(time<1200 && time>900){ a = time - 900; }else if(time<900 && time>600){ a = time - 600; }else if(time<600 && time>300){ a = time - 300; }else if(time<300 && time>120){ a = time - 120; }else if(time<120 && time>60){ a = time - 60; }else if(time<60 && time>30){ a = time - 30; }else{ a=1; } } } timer=set_timer("warn",a, 0); return PLUGIN_CONTINUE; } public plugin_init(){ plugin_registerinfo("Time Remaining Counter","Just a countdown until the Map over.",STRING_VERSION); plugin_registercmd("timerem2_welt", "timerem2_welt", ACCESS_CONSOLE); exec("logd_reg 62 admin_command timerem2_welt"); checktime =systemtime(); origtimelimit = getvar("mp_timelimit")*60+2; timer=set_timer("warn",1, 0); return PLUGIN_CONTINUE; }[/list]ich weis nur nicht wie ich die sounds hier hochlade, also wer sie haben will einfach mal an mich mailen |
Autor: | aRved [ 01.01.2003, 20:47 ] |
Betreff des Beitrags: | |
hmm also haste jez genau die sounds von tv genommen ? |
Autor: | sentinel [ 01.01.2003, 20:52 ] |
Betreff des Beitrags: | |
Ja ich habe leider keine besseren gefunden, aber wenn du bessere hast knnst du sie mir vieleicht schicken wäre echt cool. ich hoffe ihr seid mir deswegen jetzt nicht böse |
Autor: | sentinel [ 01.01.2003, 21:02 ] |
Betreff des Beitrags: | |
@ heinblöd : und wie ich gerade auf eurer hp sehe habt ihr auch fast alles vom tv-clan |
Autor: | DarkEyes1 [ 01.01.2003, 21:06 ] |
Betreff des Beitrags: | |
gib mal einer die IP des holodecks vom tv-clan... plz ![]() |
Autor: | sentinel [ 01.01.2003, 21:28 ] |
Betreff des Beitrags: | |
213.146.163.208:27018 [TV]Holodeck2002 |
Autor: | aRved [ 02.01.2003, 16:07 ] |
Betreff des Beitrags: | |
Zitat: @ heinblöd : und wie ich gerade auf eurer hp sehe habt ihr auch fast alles vom tv-clan
Wie wir haben fast alles vom Tv Clan ? Wir haben paar sounds von denen mehr aber uch nich ![]() Naja hab bisher auch keine besseren soundsgefunden und die gleichen will ich uch nich nutzen ![]() |
Seite 1 von 1 | Alle Zeiten sind UTC+01:00 |
Powered by phpBB® Forum Software © phpBB Limited https://www.phpbb.com/ |