diff --git a/plugins/mapchooser.sma b/plugins/mapchooser.sma index 521deefd..f861e1b1 100755 --- a/plugins/mapchooser.sma +++ b/plugins/mapchooser.sma @@ -147,7 +147,7 @@ public voteNextmap() { return g_selected = true new menu[512], a, mkeys = (1< SELECTMAPS) ? SELECTMAPS : g_mapNums for(g_mapVoteNum = 0;g_mapVoteNum= MAXMENUPOS) start = MAXMENUPOS - 1 new end = start + 10 if (end > MAXMENUPOS) end = MAXMENUPOS - new lName[16],lValue[16],lStatus[16],lOnOf[16] + new lName[16],lValue[16],lStatus[16],lOnOff[16] format(lName,15,"%L",id,"NAME") format(lValue,15,"%L",id,"VALUE") format(lStatus,15,"%L",id,"STATUS") - format(lOnOff,15,"%L",id,positionBlocked(a) ? "ON" : "OFF") console_print(id, "^n----- %L: -----", id, "WEAP_RES") console_print(id, " %-32.31s %-10.9s %-9.8s",lName,lValue,lStatus) if ( start != -1 ) { for (new a = start; a < end; ++a) { + format(lOnOff,15,"%L",id,positionBlocked(a) ? "ON" : "OFF") console_print(id, "%3d: %-32.31s %-10.9s %-9.8s",a + 1, g_WeaponNames[a], g_Aliases[a], lOnOff) } @@ -590,11 +590,11 @@ public fn_setautobuy(id) { for (new i = 1; i < argCount; i++) { // Start at parameter 1; parameter 0 is just "cl_setautobuy" read_argv(i, arg, 127) - // Add this parameter to user's autobuy prefs - autobuyLen += format(g_Autobuy[id][autobuyLen], AUTOBUYLENGTH - autobuyLen, "%s", arg) - // If we detect more parameters, add a space - if (i + 1 < argCount) - autobuyLen += format(g_Autobuy[id][autobuyLen], AUTOBUYLENGTH - autobuyLen, " ") + // Add this parameter to user's autobuy prefs + autobuyLen += format(g_Autobuy[id][autobuyLen], AUTOBUYLENGTH - autobuyLen, "%s", arg) + // If we detect more parameters, add a space + if (i + 1 < argCount) + autobuyLen += format(g_Autobuy[id][autobuyLen], AUTOBUYLENGTH - autobuyLen, " ") } // Strip any blocked items diff --git a/plugins/scrollmsg.sma b/plugins/scrollmsg.sma index 146da577..42e2ca4d 100755 --- a/plugins/scrollmsg.sma +++ b/plugins/scrollmsg.sma @@ -98,7 +98,7 @@ public setMessage() { server_print("%L",LANG_SERVER,"MIN_FREQ",minimal) g_Frequency = minimal } - server_print("%L",LANG_SERVER,"MSG_FREQ") + server_print("%L",LANG_SERVER,"MSG_FREQ", g_Frequency/60,g_Frequency%60) set_task(float(g_Frequency),"msgInit",123,"",0,"b") } diff --git a/plugins/stats_logging.sma b/plugins/stats_logging.sma index 150ef663..af150eb4 100755 --- a/plugins/stats_logging.sma +++ b/plugins/stats_logging.sma @@ -43,7 +43,9 @@ public plugin_init() { } public client_disconnect(id) { - if ( is_user_bot(id) ) return PLUGIN_CONTINUE + if ( is_user_bot(id) ) { + return + } remove_task(id) new szTeam[16],szName[32],szAuthid[32], iStats[8], iHits[8], szWeapon[24] new iUserid = get_user_userid( id )