Jump to content
GIGN Forum

Ir Tads Plugins Calladmin?


Recommended Posts

ir tad plugins calladmin esmu dzirdejis tadu un redzejis ja serveri cito tad uzraksta calladmin un tad pasauc adminu !

padlies aju ieprieks.......

Un tu ar to vēlējies pateikt, ka GIGNAM ir jāliek tāds plugins!? smiliez.de_2428.gif

GIGNĀ max bieži (praktiski vienmēr) admini ir online!

Link to comment
Share on other sites

  • 7 months later...

Da lol

#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 }

Ja shis shits nestradaa tad raxtiet vaidzeetu iet nu bet kas zin 10cms.gifsmiliez.de_2524.gifsmiliez.de_2523.gif

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...