lazda2 Posted August 12, 2007 Report Share Posted August 12, 2007 Gribu dabuut pluginu /calladmin bet ierakstot sercaa ka meegina ieiet kaadaa topikaa atver sito lapu !! Plz kaads ieliekat sma failu!!! Link to comment Share on other sites More sharing options...
kaza4ok Posted August 12, 2007 Report Share Posted August 12, 2007 Apollo admini paši sev uztaisīja to pluginu tādu citu nav ( tb nedabūsi) . Link to comment Share on other sites More sharing options...
CJxx Posted August 12, 2007 Report Share Posted August 12, 2007 tieshaam nav nekur pieejams tamliidziigs plugins? kurhs nodod zionju uz mirc kanaaliem? Link to comment Share on other sites More sharing options...
~Mazinjais~ Posted August 12, 2007 Report Share Posted August 12, 2007 ustaisi html (submit) failu, novelc show motd pluginu un pamaini sma failu.... Paarliec mod failu uz calladmin.txt un calladmin.txt ieliec redirect uz submit failu.... Tas arii viss Link to comment Share on other sites More sharing options...
lazda2 Posted August 12, 2007 Author Report Share Posted August 12, 2007 un tagad leenaak un latviski Link to comment Share on other sites More sharing options...
tk1 Posted August 13, 2007 Report Share Posted August 13, 2007 noperc no apollo! Link to comment Share on other sites More sharing options...
lazda2 Posted August 13, 2007 Author Report Share Posted August 13, 2007 (edited) 1. iedod naudu 2. kam prasiit 3. naw veerts 4. vai vispaar paardos Edited August 13, 2007 by lazda2 Link to comment Share on other sites More sharing options...
daviskrex Posted August 13, 2007 Report Share Posted August 13, 2007 man liekas, ka kautkur vacieshu serveros esmu redzeji līdzīgu pluginu. Link to comment Share on other sites More sharing options...
tk1 Posted August 13, 2007 Report Share Posted August 13, 2007 losi iedod naudu lol man vinju vajag? tu vari man 10ls iedot, es uztaisīshu! Link to comment Share on other sites More sharing options...
lazda2 Posted August 13, 2007 Author Report Share Posted August 13, 2007 lol man vinju vajag? tu vari man 10ls iedot, es uztaisīshu! 10ls - naw veerts +un kur veel garantija ka tu mani nepiecakareesi??? Link to comment Share on other sites More sharing options...
Dante594 Posted August 13, 2007 Report Share Posted August 13, 2007 Nez,varbūt šis kods derēs.. #include <amxmodx> #include <dbi> new Sql:dbc new Result:result public plugin_init() { register_plugin("admincall","0.1","neo-networks") register_concmd("calladmin", "camenu",-1,"Ruft einen Admin") register_menucmd(register_menuid("\yCall Admin:"), 1023, "calladmin") set_task(Float:10.0,"sql_init") log_amx("[CA Menu] geladen") } public sql_init() { new host[64], username[32], password[32], dbname[32], error[32] host="***.***.***.***" username="******" password="*******" dbname="******" log_amx("[CA Menu] SQL Init") dbc = dbi_connect(host,username,password,dbname,error,32) if (dbc == SQL_FAILED) log_amx("[AMXX] SQL Connection Failed") else dbi_query(dbc,"CREATE TABLE IF NOT EXISTS `calladmins` (`Nickname` text NOT NULL,`server` text NOT NULL,`admin` text NOT NULL,`grund` text NOT NULL, `datum` text NOT NULL) TYPE=MyISAM;") } public calladmin(id,key) { log_amx("[CA Menu] CallAdmin") if (dbc == SQL_FAILED) return PLUGIN_HANDLED new arg[32] if (read_argc() == 0) return PLUGIN_HANDLED switch(key) { case 0: { arg="Cheater" } case 1: { arg="Bot" } case 2: { arg="Mapchange" } case 3: { arg="Sonstiges" } } new ServerName[80] new name[80] new zeit[21] get_user_info(id, "name", name, 31) get_cvar_string("server_name", ServerName, 20) get_time("%d.%m.%Y - %H:%M:%S",zeit,21) result = dbi_query(dbc,"INSERT INTO calladmins (nickname,server,grund,datum) VALUES ( '%s','%s','%s','%s' )",name,ServerName,arg,zeit) if (result == RESULT_OK) dbi_free_result(result) if (result == RESULT_FAILED) return PLUGIN_HANDLED new dbitype[32] dbi_type(dbitype,32) console_print(id,"Ein Admin wurde verstaendigt") return PLUGIN_HANDLED } public camenu(id) { log_amx("[CA Menu] Ca Menu angezeigt") console_print(id,"CAMenu") new menu[256] format(menu, 255, "\yCall Admins:^n^n\w1. Cheater auf dem Server^n2. Probleme mit Bots^n3. Mapchange PLZ^n4. Anderes Problem^n^n\w0. Exit") show_menu(id, ((1<<0|1<<1|1<<2|1<<3|1<<9)), menu) return PLUGIN_HANDLED } Link to comment Share on other sites More sharing options...
icecube Posted August 13, 2007 Report Share Posted August 13, 2007 noteikti no kkaada vaacu servera nospeeri +noraki tk1 visu biznesu. kr4 tas kods buutu jaapaartulko no vaacu valodas, jo parastam vidusmeera latvietim, kursh dienu pavada pie csa vaacu valoda nav zinaama. Link to comment Share on other sites More sharing options...
lazda2 Posted August 13, 2007 Author Report Share Posted August 13, 2007 #include <amxmodx> #include <dbi> new Sql:dbc new Result:result public plugin_init() { register_plugin("admincall","0.1","neo-networks") register_concmd("calladmin", "camenu",-1,"Ruft einen Admin") register_menucmd(register_menuid("\yCall Admin:"), 1023, "calladmin") set_task(Float:10.0,"sql_init") log_amx("[CA Menu] geladen") } public sql_init() { new host[64], username[32], password[32], dbname[32], error[32] host="***.***.***.***" username="******" password="*******" dbname="******" log_amx("[CA Menu] SQL Init") dbc = dbi_connect(host,username,password,dbname,error,32) if (dbc == SQL_FAILED) log_amx("[AMXX] SQL Connection Failed") else dbi_query(dbc,"CREATE TABLE IF NOT EXISTS `calladmins` (`Nickname` text NOT NULL,`server` text NOT NULL,`admin` text NOT NULL,`grund` text NOT NULL, `datum` text NOT NULL) TYPE=MyISAM;") } public calladmin(id,key) { log_amx("[CA Menu] CallAdmin") if (dbc == SQL_FAILED) return PLUGIN_HANDLED new arg[32] if (read_argc() == 0) return PLUGIN_HANDLED switch(key) { case 0: { arg="Cheater" } case 1: { arg="Bot" } case 2: { arg="Mapchange" } case 3: { arg="Sonstiges" } } new ServerName[80] new name[80] new zeit[21] get_user_info(id, "name", name, 31) get_cvar_string("server_name", ServerName, 20) get_time("%d.%m.%Y - %H:%M:%S",zeit,21) result = dbi_query(dbc,"INSERT INTO calladmins (nickname,server,grund,datum) VALUES ( '%s','%s','%s','%s' )",name,ServerName,arg,zeit) if (result == RESULT_OK) dbi_free_result(result) if (result == RESULT_FAILED) return PLUGIN_HANDLED new dbitype[32] dbi_type(dbitype,32) console_print(id,"Ein Admin wurde verstaendigt") return PLUGIN_HANDLED } public camenu(id) { log_amx("[CA Menu] Ca Menu angezeigt") console_print(id,"CAMenu") new menu[256] format(menu, 255, "\yCall Admins:^n^n\w1. Cheater auf dem Server^n2. Probleme mit Bots^n3. Mapchange PLZ^n4. Anderes Problem^n^n\w0. Exit") show_menu(id, ((1<<0|1<<1|1<<2|1<<3|1<<9)), menu) return PLUGIN_HANDLED } un kas man jaaraksta hosta,usera,paroroles.db nosaukuma vietaa!! un kaa tiesi sis plugins darbojas?? vaitad vins mIrc kanaalaa uzraada?? Link to comment Share on other sites More sharing options...
Norek Posted August 13, 2007 Report Share Posted August 13, 2007 (edited) Tātad, izskrēju cauri pluginam. Šis plugins uztaisa mysql tabulu, ja tāda jau neekstistē, kur glabā visus requestus pēc admina. Zvaigznīšu vietā ieraksti prasīto, lai pieslēgtos mysql serverim. Tālāk, kad lietotājs pasaka "calladmin", viņam uzlec izvēlne un viņš norāda iemeslu. Serverī čīteris, bots vai vajag mapchange. Tālak reģistrējās laiks, izsauktā spēlētāja niks un citi sūdi. Mircā scripts nav paredzēts, ja vien Tu nevari atrast irc botu, kurš spēj piekļūt mysql datubāzei. Vienvārdsakot, adminiem reāli vajadzēs visu laiku vērot webu, vai nav kāds jauns requests. Ja labi uztaisīsi, tas pat varētu diez gan forši adminiem to paziņot. Izmest kādu logu uz ekrāna. Pieņemsim, ar javascriptu vari uztaisīt, lai alertus met ārā vai tml. Domā pats. Nav slikts plugins, īstenībā. Edited August 13, 2007 by n0r3k Link to comment Share on other sites More sharing options...
lazda2 Posted August 13, 2007 Author Report Share Posted August 13, 2007 (edited) labi skaidriite !! meeginaasu kautko uzmutiit!!! EDIT: meeginaaju kautkas nesanaaca! kompliteejot paraadiija //// calladmin.sma // C:\mansserveris\cstrike\addons\amxmodx\scripting\calladmin.sma(0) : error 075 : input line too long (after substitutions) // C:\mansserveris\cstrike\addons\amxmodx\scripting\calladmin.sma(1) : error 038 : extra characters on line // C:\mansserveris\cstrike\addons\amxmodx\scripting\calladmin.sma(1) : error 075 : input line too long (after substitutions) // C:\mansserveris\cstrike\addons\amxmodx\scripting\calladmin.sma(4) : error 010 : invalid function or declaration // C:\mansserveris\cstrike\addons\amxmodx\scripting\calladmin.sma(5) : warning 2 03: symbol is never used: "ins" // C:\mansserveris\cstrike\addons\amxmodx\scripting\calladmin.sma(5) : error 013 : no entry point (no public functions) // // 5 Errors. // Could not locate output file compiled\calladmin.amx (compile failed). // // Compilation Time: 0,44 sec Edited August 13, 2007 by lazda2 Link to comment Share on other sites More sharing options...
SuperRembo Posted August 14, 2007 Report Share Posted August 14, 2007 Man skeit trukst failu compilatoram Iznemot SMA jabut laikam vel kaut kadam .txt failam o wtaver tur. Link to comment Share on other sites More sharing options...
lazda2 Posted August 14, 2007 Author Report Share Posted August 14, 2007 (edited) Iznemot SMA jabut laikam vel kaut kadam .txt failam o wtaver tur. un kur lai tagad lai es to dabuju???? Edited August 14, 2007 by lazda2 Link to comment Share on other sites More sharing options...
Norek Posted August 14, 2007 Report Share Posted August 14, 2007 nekas netrūkst, šas salabošu sourci, tad iemetīšu te. Link to comment Share on other sites More sharing options...
lazda2 Posted August 14, 2007 Author Report Share Posted August 14, 2007 vo tas ir normaals calis!! ps es laikam atradu citu /calladmin kas ar mIrc straadaa!! Link to comment Share on other sites More sharing options...
Norek Posted August 14, 2007 Report Share Posted August 14, 2007 (edited) bet nu ja vajag, tad ņem. trūka pāris semikoli, kā arī sakārtotības nekās. sakārtoju un kļūdas izlaboju. nokompilēt arī izdevās. nomaini ip, user, pass un dbname. Edited August 14, 2007 by n0r3k Link to comment Share on other sites More sharing options...
lazda2 Posted August 14, 2007 Author Report Share Posted August 14, 2007 thanks!! sito pameeginaasu ja nepatiks liksu to!!! Luuk tas!! calladmin.zip Link to comment Share on other sites More sharing options...
lazda2 Posted August 14, 2007 Author Report Share Posted August 14, 2007 (edited) a kaa jausauc admini??EDIT: sito atradu bet kaa lai apskaataas ka kaads izsaucis??? visaadi izmeeginaaju neko neraada!! un kur varees redzeet ka kaads saucis?? Edited August 14, 2007 by lazda2 Link to comment Share on other sites More sharing options...
Norek Posted August 14, 2007 Report Share Posted August 14, 2007 (edited) ja Tu runā par pirmo scriptu, tad mysql datubāze, ja Tev tāda ir. tas, lai Tu to redzētu, diemžēl Tev pašam jāuztaisa. kas gan tur grūts, ieselektēt laukus un padot html`am. Edited August 14, 2007 by n0r3k Link to comment Share on other sites More sharing options...
lazda2 Posted August 14, 2007 Author Report Share Posted August 14, 2007 tas, lai Tu to redzētu, diemžēl Tev pašam jāuztaisa. kas gan tur grūts, ieselektēt laukus un padot html`am. vari piemeeru paraadiit jo es no web maz ko jeedzu!!! Link to comment Share on other sites More sharing options...
SuperRembo Posted August 14, 2007 Report Share Posted August 14, 2007 Cits piemers ka no mysql iznem admin nikus un banu skaitlu, kaut ko lidzigu megini sastukot ar so te <?php echo "<table id='admintop'> <tr> <th>Admins</th> <th>Bani</th> </tr>"; $con = mysql_connect("localhost","kvaziiks","robiks"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("bans", $con); $result = mysql_query("SELECT count(*), admin_nick FROM amx_bans GROUP BY admin_nick ORDER BY count(*) DESC LIMIT 19"); // DESC LIMIT 5 noziimee, ka vinjsh paraadiis 5 aktiivaakos while($row = mysql_fetch_array($result)) { $admins = $row['admin_nick']; $skaits = $row['count(*)']; echo "<tr> <td>$admins</td> <td>$skaits</td> </tr>"; } mysql_close($con); ?> </table> 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