archees Posted April 16, 2006 Report Share Posted April 16, 2006 (edited) Tātad man šodien nebija, ko 2h darīt olas jau kaartiigi noklapeeju un tagad izdomaaju saakt meeginaat skriptot Brīnums, ka rezultāts tam visam arī bija tiiri sakariigs Rezultaataa uztaisiiju skriptu (pluginu), kas ar AMXX 1.71 un Windows XP straadaaja 99% bez glukiem Šis skripts tika kompileets kkaadas 10000... reizes un gala iznākums ir līdzīgs GIGN.lv servera pluginam Visiem, kam ir nepieciešamība lūdzu ņemiet manu brīnumu (NEAIZSKAROT AUTORTIESĪBAS!!!) RESTARTGAME.SMA KODS: /* * AMXModX script. (Round Auto Restart) * Sis fails nesniedz nekaadas garantijas, * ka viss ies gludi, un ka serveris nekaarsies! * * Scripts testeets uz Windows XP un servera, kura * versija ir v4.1.1.1. un patch versija v21! * * Automaatiska kartes restarteeshana peec 20 sekundeem! * Autors/Koderis - archee ([email protected]) * * Weblapa: http://cs-c4.eclub.lv * CS 1.6 serveris: cs.selfip.org [main] un cs.selfip.org:27016 [frag] * Skype niks: archees (Arturs Bicons) * * ------------------------------------------------------- * Faila veesture/izmainas: (Peedejais jauninaajums: 16.04.2006) * V2.00: Gala rezultaats - teicami straadaa, bez glukiem! LOL * V1.00: Diivainaa versija, kaut kas tika uzlabots, bet glukoja vairaak, kaa v0.5 * V0.5 : Versija, kura nerestarteeja mapi * ------------------------------------------------------- * * * Prieks editoriem (Paskaidrojumi, ko kas noziimee) * * set_hudmessage(0, 100, 255, -1.0, 0.2, 0, 6.0, 3.0) * * 0 - RR (sarkanaa kraasa) * 100 - GG (zaljaa kraasa) * 255 - BB (zilaa kraasa) * -1.0 - attaalums no kreisaas malas * 0.2 - attaalums no augsheejaas malas * 0 -? hvz (nemaz nemeeginaaju) * 6.0 - hvz (nemaz nemeeginaaju) * 3.0 - laiks (sekundees) cik ilgi raadiit msg * * -------------------------------------------------------- * Bez autora/kodera rakstiskas atlaujas shaa skripta dalju, * kas saakas ar * (zvaigzniiti) izmainiit ir stingri aizliegts! * -------------------------------------------------------- * * P.S. Iemesls aizliegumam - tas man prasiija 2h darbu (ieskaitot testeeshanu)!!! * Pietam 10000..... reizhu naacaas kompileet skriptu! * Atceries, tavs labaakais draugs ir google.lv (Ja man buutu bijusi google, tad * scripts buutu bijis daudz reizes labaaks!) ;D * * * SKRIPTS PAREDZEETS TIKAI AAREEJAI LIETOSHANAI! (Taa vismaz raksta uz zaaleem) * */ #include <amxmodx> #include <amxmisc> public restart_time() {? ? set_task (5.0,"alert") ? set_task (15.0,"five") ? set_task (16.0,"four") ? set_task (17.0,"three") ? set_task (18.0,"two") ? set_task (19.0,"one") ? set_task (20.0,"restarting") ? set_task (21.0,"restart") ? set_task (22.0,"restart") ? set_task (23.0,"restart") ? set_task (25.0,"final") } public alert() { set_hudmessage(0, 100, 255, -1.0, 0.4, 0, 6.0, 5.0) ? ? ? show_hudmessage(0,"Round restart after 15 seconds") } public five() { set_hudmessage(0, 100, 255, -1.0, 0.4, 0, 6.0, 3.0) ? ? ? show_hudmessage(0,"Round restart after 5 seconds") } public four() { set_hudmessage(0, 100, 255, -1.0, 0.4, 0, 6.0, 3.0) ? ? ? show_hudmessage(0,"Round restart after 4 seconds") } public three() { set_hudmessage(0, 100, 255, -1.0, 0.4, 0, 6.0, 3.0) ? ? ? show_hudmessage(0,"Round restart after 3 seconds") } public two() { set_hudmessage(0, 100, 255, -1.0, 0.4, 0, 6.0, 3.0) ? ? ? show_hudmessage(0,"Round restart after 2 seconds") } public one() { set_hudmessage(0, 100, 255, -1.0, 0.4, 0, 6.0, 3.0) ? ? ? show_hudmessage(0,"Round restart after 1 second") } public restarting() {? ? ? ? ? set_hudmessage(0, 100, 255, -1.0, 0.4, 0, 6.0, 3.0) ? ? ? show_hudmessage(0,"Restarting 3 times!")? } public restart() { set_cvar_float("sv_restart",1.0) }? public final() { set_hudmessage(0, 100, 255, -1.0, 0.4, 0, 6.0, 5.0) ? ? ? show_hudmessage(0,"We are live and the fight is on!") return PLUGIN_HANDLED } public plugin_init() {? ? register_plugin("Round Auto Restart","2.00","archee") ? register_event("TextMsg","restart_time","a","2Game_C")? ? ? register_cvar("amx_autorestart","20.0") ? return PLUGIN_CONTINUE? ? } Gatavie faili šeit (restartgame.sma + restartgame.amxx) [RAR] [HOST:Eclub.lv] Kodēja: archee (vai arii archees, whatever ) Autortiesības paturētas! P.S. Šie faili (plugins) tika radīts pārtaisot kādus citus 5 pluginus (ieskaitot garika, turies džekiņ ) !!! Vieniigaa redzamā šķirba, kas ir šam pluginam ir tas, ka atšķirībā no GIGN.lv plugina viņš restartē mapi pēc 15 sekundēm, nevis 30! Un ja kādam tas nepatīk, tad var pārrakstīt skriptu! (Atstaajot autora sadaļu)!!! Lūgums foruma adminiem: Pielikt šo postu pie Svarīgajiem postiem, lai pēc mēneša jau nesekotu kādi 10 posti, par to, kur dabūt, kā uztaisīt šādu brīnumu Edited April 16, 2006 by archees Link to comment Share on other sites More sharing options...
noobiks Posted April 16, 2006 Report Share Posted April 16, 2006 kapec tu zodz? Link to comment Share on other sites More sharing options...
archees Posted April 16, 2006 Author Report Share Posted April 16, 2006 (edited) ko tieši? P.S. Garika kods nestraadaaja!!! Edited April 17, 2006 by archees Link to comment Share on other sites More sharing options...
maverick Posted April 16, 2006 Report Share Posted April 16, 2006 Man sitais neiet! Ka instaleeju.. 1) restartgame.sma ieliku cstrike\addons\amxmodx\scripting 2) restartgame.amxx ieliku cstrike\addons\amxmodx\plugins 3) ieksh plugins.ini apaksha pieraxtiju restartgame.amxx Kas notiek? Link to comment Share on other sites More sharing options...
worm Posted April 16, 2006 Report Share Posted April 16, 2006 drausmigi neoptimaals skripts gigna variants ir veidots ar 3 funkcijaam un viss uzraxtiits 35 rindinjaas Link to comment Share on other sites More sharing options...
macho Posted April 17, 2006 Report Share Posted April 17, 2006 haha, tad jau nav vērts sticky'ot Link to comment Share on other sites More sharing options...
archees Posted April 17, 2006 Author Report Share Posted April 17, 2006 Man sitais neiet! Ka instaleeju.. 1) restartgame.sma ieliku cstrike\addons\amxmodx\scripting 2) restartgame.amxx ieliku cstrike\addons\amxmodx\plugins 3) ieksh plugins.ini apaksha pieraxtiju restartgame.amxx Kas notiek? Kas tev neiet?? Es vinu testeeju ar botiem... Sava servera konsulee ieraksti amx_plugins, ja tur raada ka viss iet - X plugins X running, tad viss OK! Plugins saak straadaat ja serverii ir vairaak pa 1 cilveeku, proti, vismaz 2!!!! Link to comment Share on other sites More sharing options...
archees Posted April 17, 2006 Author Report Share Posted April 17, 2006 drausmigi neoptimaals skripts gigna variants ir veidots ar 3 funkcijaam un viss uzraxtiits 35 rindinjaas beidz - mans pirmais skripts... es veel tikai maacos programmeet - uz Borland Pascal ------------------------------------------------------------------------- program sound; uses crt; var i:integer; Begin for i:=1 to 10000 do begin sound (i); delay (20); nosound; end; writeln ('LOLed by archee'); end. Link to comment Share on other sites More sharing options...
x-tomy91-x Posted April 17, 2006 Report Share Posted April 17, 2006 (edited) Man to pluginu nav izdevies kompileet, un arii jau gatavais .amxx neiet! Gribeetos, lai kaads labaaks skriptotaajs par mani nedaudz palabotu sho http://rip.sytes.net/restartgame.sma vai saarhivēto http://rip.sytes.net/restartgame.rar pluginu taa, lai speele restarteetos automaatiski peec nu ~ 30 sekundeem... Tagad man pasham caur amxmodmenu jaaiet, laic restarteetu speeli... gribeetos, lai automaatiski kad mape nomainiijusies, tad peec 30 sec saakas restarts, jo admini vienmeer nav iekshaa! /* AMXMOD X script. * * ? Copyright 2000-2002, BenZoN - Rich - Shift * This file is provided as is (no warranties). * * v0.5 - Password shown only to teamed players ( not HLTV ) * * v0.4 - Initial Release * */ #include <amxmodx> #include <amxmisc> public amx_restartgame(id,level,cid) { if (!cmd_access(id,level,cid,0)) { return PLUGIN_CONTINUE } set_hudmessage(0, 200, 0, -1.0, 0.40, 0, 6.0, 6.0, 0.1, 0.1, 1) show_hudmessage(0,"Get ready for 3 restarts!") set_task(5.0, "rround") set_task(6.5, "rround") set_task(8.0, "rround") set_task(10.0, "lmessage") return PLUGIN_HANDLED } public rround() { server_cmd("sv_restartround 1") } public lmessage() { new sv_pass[32], players[32], playernum set_hudmessage(0, 200, 0, -1.0, 0.40, 0, 6.0, 6.0, 0.1, 0.1, 3) show_hudmessage(0,"NOW WE CAN START TO FIGHT!!!") get_cvar_string("sv_password",sv_pass,32) set_hudmessage(255, 255, 255, -1.0, 0.80, 0, 6.0, 6.0, 0.1, 0.1, 4) get_players(players,playernum) for(new a = 1; a < playernum; ++a) { if ( get_user_team(players[a]) < 3 ) { show_hudmessage(players[a],"Server Password: %s",sv_pass) } } } public plugin_init() { register_plugin("Restart Game","0.5","BenZoN - Rich - Shift") register_clcmd("amx_restartgame","amx_restartgame",ADMIN_CFG,"amx_restartgame - Triple Restart For Match") return PLUGIN_CONTINUE } Edited April 17, 2006 by x-tomy91-x Link to comment Share on other sites More sharing options...
archees Posted April 17, 2006 Author Report Share Posted April 17, 2006 (edited) Man to pluginu nav izdevies kompileet, un arii jau gatavais .amxx neiet! Gribeetos, lai kaads labaaks skriptotaajs par mani nedaudz palabotu sho http://rip.sytes.net/restartgame.sma vai saarhivēto http://rip.sytes.net/restartgame.rar pluginu taa, lai speele restarteetos automaatiski peec nu ~ 30 sekundeem... Tagad man pasham caur amxmodmenu jaaiet, laic restarteetu speeli... gribeetos, lai automaatiski kad mape nomainiijusies, tad peec 30 sec saakas restarts, jo admini vienmeer nav iekshaa! shitais ir ediiteets vines AMXX skripts - tu veel rakstiijaaas WE ARE LIVE AND THE FIGHT IS ON! Pamaniiju peec taa, ka peec restarteeshanas lejaa raadiis servera passwordu P.S. Edited April 17, 2006 by archees Link to comment Share on other sites More sharing options...
LiL_Netii Posted April 17, 2006 Report Share Posted April 17, 2006 (edited) Nu kko jau esi sazadzies, kko pats, kko no amx un kko atsaajis pec kura var pamaniit ka tas naff taveejais j buutu taisiijis pats nebuutu tur rakstiijis tik gari to info jeb ievadtekstu vai kaa vins tur... Bet visaa visumaa jau radoša pieeja tam visam no tavas puses Edited April 17, 2006 by LiL_Netii Link to comment Share on other sites More sharing options...
SuperRembo Posted April 17, 2006 Report Share Posted April 17, 2006 beidz - mans pirmais skripts... es veel tikai maacos programmeet - uz Borland Pascal ------------------------------------------------------------------------- program sound; uses crt; var i:integer; Begin for i:=1 to 10000 do begin sound (i); delay (20); nosound; end; writeln ('LOLed by archee'); end. Es neesmu kuditais, bet manas zinasanas saka, ka tev sis kods neies pie Sound(i); apstasies Labak so te panem ko me uzmeikoja paatro, program zer0; var g,h,w,y,z: integer; a:char; u:real; begin Writeln('Ievadit simbolu +-*/ un 2 skaitlus'); readln(a); readln(g); readln(h); z:=g+h; w:=g-h; y:=g*h; u:=g/h; case a of '+': writeln(z); '-': writeln(w); '*': writeln(y); '/': writeln(u:5:2); end; Writeln('Made by SuperRembo'); readln; end. Link to comment Share on other sites More sharing options...
archees Posted April 17, 2006 Author Report Share Posted April 17, 2006 Es neesmu kuditais, bet manas zinasanas saka, ka tev sis kods neies pie Sound(i); apstasies Labak so te panem ko me uzmeikoja paatro, program zer0; var g,h,w,y,z: integer; a:char; u:real; begin Writeln('Ievadit simbolu +-*/ un 2 skaitlus'); readln(a); readln(g); readln(h); z:=g+h; w:=g-h; y:=g*h; u:=g/h; case a of '+': writeln(z); '-': writeln(w); '*': writeln(y); '/': writeln(u:5:2); end; Writeln('Made by SuperRembo'); readln; end. Nepareizi tu domaa - viss straadaas perfekti (vari notesteet, ja netici)!!! Efekts shai programmai ir taads, ka skanja naaks aaraa no mazaakaas uz lielaako (izklausaas, ka dakis pacelsies uz aizlidos ) Link to comment Share on other sites More sharing options...
archees Posted April 17, 2006 Author Report Share Posted April 17, 2006 veelaak iemetiishu .dem failu, kas pieraada, ka PLUGINS straaddaa nevainojami!! tagad nav laika... Link to comment Share on other sites More sharing options...
x-tomy91-x Posted April 17, 2006 Report Share Posted April 17, 2006 shitais ir ediiteets vines AMXX skripts - tu veel rakstiijaaas WE ARE LIVE AND THE FIGHT IS ON! Pamaniiju peec taa, ka peec restarteeshanas lejaa raadiis servera passwordu P.S. Es tak nemaz neteicu, ka tas ir mans ! Es vnk gribu, lai kaads paartaisa shito skriptu! Link to comment Share on other sites More sharing options...
archees Posted April 17, 2006 Author Report Share Posted April 17, 2006 Es tak nemaz neteicu, ka tas ir mans ! Es vnk gribu, lai kaads paartaisa shito skriptu! es jau neteicu, ka tu teici Link to comment Share on other sites More sharing options...
x-tomy91-x Posted April 17, 2006 Report Share Posted April 17, 2006 es jau neteicu, ka tu teici Nu jaa... bet vai kaads vareetu to skriptu paartaisiit??? Link to comment Share on other sites More sharing options...
LiL_Netii Posted April 17, 2006 Report Share Posted April 17, 2006 (edited) Tomy Tas restarts nerestarteesies pats no sevis, tur tip manuaali un ja nu i kaada komanda tad lai nu taa buuutu!! kas tad vainaim sim te pasam??? Varu uzlikt lai restarteejas peec 30 sek Edited April 17, 2006 by LiL_Netii Link to comment Share on other sites More sharing options...
maverick Posted April 17, 2006 Report Share Posted April 17, 2006 Kad serveri man ienaca veelviens tad skripts automatiski saka stradat! Link to comment Share on other sites More sharing options...
archees Posted April 17, 2006 Author Report Share Posted April 17, 2006 tas laikam noziimee 1. THANK'S to tha archee 2. Posta pielikšana pie Svarīgajiem postiem! Link to comment Share on other sites More sharing options...
x-tomy91-x Posted April 17, 2006 Report Share Posted April 17, 2006 (edited) Tomy Tas restarts nerestarteesies pats no sevis, tur tip manuaali un ja nu i kaada komanda tad lai nu taa buuutu!! kas tad vainaim sim te pasam??? Varu uzlikt lai restarteejas peec 30 sek Nu pats no sevis nerestarteejas... Es veeleetos, lai peec 30 sekundeem vinjsh auto restarteejas, bet es tikai manuaali tagad varu... Buutu ljoti pateiciigs... Un vispaar man tam archee pluginam raadaas errori, kad meegjinu vinju nokompileet... Edited April 17, 2006 by x-tomy91-x Link to comment Share on other sites More sharing options...
SuperRembo Posted April 17, 2006 Report Share Posted April 17, 2006 Man viss okej strada, autortiesibas neieveroju, nedaudz parveidoju jau ^^ thx Link to comment Share on other sites More sharing options...
archees Posted April 18, 2006 Author Report Share Posted April 18, 2006 Nu pats no sevis nerestarteejas... Es veeleetos, lai peec 30 sekundeem vinjsh auto restarteejas, bet es tikai manuaali tagad varu... Buutu ljoti pateiciigs... Un vispaar man tam archee pluginam raadaas errori, kad meegjinu vinju nokompileet... Te jau reku ir gatavs, kas iet 100%, tev tur kkaadi gluki.. Varbuut meeginaaji paarveidot??? Tomy91: Ja no kodeeshanas tu neko nesaproti, tad tev nebuus taada daavana, ka tu tagad saaksi kodeet - tur ir jaabuut arii biku smadzenpodam un sapraatam + kaadam kas kko maaca Link to comment Share on other sites More sharing options...
Norkizz Posted April 18, 2006 Report Share Posted April 18, 2006 man ar strādā Link to comment Share on other sites More sharing options...
x-tomy91-x Posted April 18, 2006 Report Share Posted April 18, 2006 Tomy91: Ja no kodeeshanas tu neko nesaproti, tad tev nebuus taada daavana, ka tu tagad saaksi kodeet - tur ir jaabuut arii biku smadzenpodam un sapraatam + kaadam kas kko maaca Nu iet jau iet vinjsh ... kompileejot tik errorus izmet , bet iet... Un neesmu es zin nekaads un skriptu vismaz paartaisiit maaku, bet ne jau pats visu uzraxtiit + tavs skripts jau ar nav pilniigi tevis veidots! :-10cm: Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now