diff --git a/plugins/admin.sma b/plugins/admin.sma index 5bd2c542..24121a8a 100755 --- a/plugins/admin.sma +++ b/plugins/admin.sma @@ -641,7 +641,7 @@ accessUser(id, name[] = "") if (result & 2) { - client_cmd(id, g_cmdLoopback) + client_cmd(id, "%s", g_cmdLoopback) return PLUGIN_HANDLED } diff --git a/plugins/admincmd.sma b/plugins/admincmd.sma index d00c3747..bc9beeb6 100755 --- a/plugins/admincmd.sma +++ b/plugins/admincmd.sma @@ -256,7 +256,7 @@ public cmdBan(id, level, cid) else format(msg[len], 255-len, "%L", players[i], "PERM") - client_print(players[i], print_chat, msg) + client_print(players[i], print_chat, "%s", msg) } } console_print(id, "[AMXX] %L", id, "CLIENT_BANNED", name2) @@ -329,7 +329,7 @@ public cmdBanIP(id, level, cid) else format(msg[len], 255-len, "%L", players[i], "PERM") - client_print(players[i], print_chat, msg) + client_print(players[i], print_chat, "%s", msg) } } console_print(id, "[AMXX] %L", id, "CLIENT_BANNED", name2) diff --git a/plugins/adminslots.sma b/plugins/adminslots.sma index 79a9a314..2f1d834d 100755 --- a/plugins/adminslots.sma +++ b/plugins/adminslots.sma @@ -79,7 +79,7 @@ public client_authorized(id) return PLUGIN_CONTINUE } - client_cmd(id, g_cmdLoopback) + client_cmd(id, "%s", g_cmdLoopback) return PLUGIN_HANDLED } diff --git a/plugins/adminvote.sma b/plugins/adminvote.sma index cfe0cc64..22f556c4 100755 --- a/plugins/adminvote.sma +++ b/plugins/adminvote.sma @@ -107,7 +107,7 @@ public cmdCancelVote(id, level, cid) } public delayedExec(cmd[]) - server_cmd(cmd) + server_cmd("%s", cmd) public autoRefuse() { diff --git a/plugins/cmdmenu.sma b/plugins/cmdmenu.sma index 776fc3a2..db507849 100755 --- a/plugins/cmdmenu.sma +++ b/plugins/cmdmenu.sma @@ -134,11 +134,11 @@ public actionCmdMenu(id, key) new flags = g_cmdMisc[option][1] if (flags & 1) - server_cmd(g_cmdCmd[option]) + server_cmd("%s", g_cmdCmd[option]) else if (flags & 2) - client_cmd(id, g_cmdCmd[option]) + client_cmd(id, "%s", g_cmdCmd[option]) else if (flags & 4) - client_cmd(0, g_cmdCmd[option]) + client_cmd(0, "%s", g_cmdCmd[option]) if (flags & 8) displayCmdMenu(id, g_menuPosition[id]) diff --git a/plugins/cstrike/miscstats.sma b/plugins/cstrike/miscstats.sma index a7e66987..8f6859c6 100755 --- a/plugins/cstrike/miscstats.sma +++ b/plugins/cstrike/miscstats.sma @@ -325,7 +325,7 @@ public client_death(killer, victim, wpnindex, hitplace, TK) format(team_name, 31, "%L", ppl[a], (epplnum == 1) ? g_teamsNames[team] : g_teamsNames[team + 2]) format(message, 127, "%L", ppl[a], "REMAINING", epplnum, team_name) - show_hudmessage(ppl[a], message) + show_hudmessage(ppl[a], "%s", message) } } } @@ -438,7 +438,7 @@ public client_death(killer, victim, wpnindex, hitplace, TK) replace(message, 127, "$kn", killer_name) set_hudmessage(100, 100, 255, -1.0, 0.29, 0, 6.0, 6.0, 0.5, 0.15, -1) - show_hudmessage(players[i], message) + show_hudmessage(players[i], "%s", message) } } @@ -514,7 +514,7 @@ public showStatus(id) show_hudmessage(id, "%s -- %d HP / %d AP / %s", name, get_user_health(pid), get_user_armor(pid), wpnname) } else { set_hudmessage(color1, 50, color2, -1.0, 0.60, 1, 0.01, 3.0, 0.01, 0.01, g_channel[id]) - show_hudmessage(id, name) + show_hudmessage(id, "%s", name) } } } diff --git a/plugins/cstrike/restmenu.sma b/plugins/cstrike/restmenu.sma index 5984db84..367831d5 100755 --- a/plugins/cstrike/restmenu.sma +++ b/plugins/cstrike/restmenu.sma @@ -585,7 +585,7 @@ public client_command(id) { if (equali(g_Aliases[g_AliasBlock[a]], arg) || equali(g_Aliases2[g_AliasBlock[a]], arg)) { - client_print(id, print_center, g_Restricted) + client_print(id, print_center, "%s", g_Restricted) return PLUGIN_HANDLED } } while (++a < g_AliasBlockNum) @@ -596,7 +596,7 @@ public client_command(id) public blockcommand(id) { - client_print(id, print_center, g_Restricted) + client_print(id, print_center, "%s", g_Restricted) return PLUGIN_HANDLED } @@ -618,7 +618,7 @@ checkRest(id, menu, key) if (g_blockPos[(menu * 8 + key) + (get_user_team(id) - 1) * 56]) { engclient_cmd(id, "menuselect", "10") - client_print(id, print_center, g_Restricted) + client_print(id, print_center, "%s", g_Restricted) return PLUGIN_HANDLED } diff --git a/plugins/cstrike/statsx.sma b/plugins/cstrike/statsx.sma index 5a8d88b8..993a989f 100755 --- a/plugins/cstrike/statsx.sma +++ b/plugins/cstrike/statsx.sma @@ -294,7 +294,7 @@ public cmdHudTest(id) iLen += format(g_sBuffer[iLen], MAX_BUFFER_LENGTH - iLen, "....x....1....x....2....x....3....x....4....x....^n") set_hudtype_killer(50.0) - show_hudmessage(id, g_sBuffer) + show_hudmessage(id, "%s", g_sBuffer) } #endif @@ -862,7 +862,7 @@ show_roundend_hudstats(id, Float:fGameTime) { g_LastChannel[id] = next_hudchannel(id) set_hudtype_endround(id, fDuration) - show_hudmessage(id, g_sAwardAndScore) + show_hudmessage(id, "%s", g_sAwardAndScore) #if defined STATSX_DEBUG log_amx("Show %1.2fs round end HUD stats for #%d", fDuration, id) #endif @@ -901,7 +901,7 @@ show_user_hudstats(id, Float:fGameTime) get_kill_info(id, iKiller, g_sBuffer) add_attacker_hits(id, iKiller, g_sBuffer) set_hudtype_killer(fDuration) - show_hudmessage(id, g_sBuffer) + show_hudmessage(id, "%s", g_sBuffer) #if defined STATSX_DEBUG log_amx("Show %1.2fs %suser HUD k-stats for #%d", fDuration, g_sBuffer[0] ? "" : "no ", id) #endif @@ -911,7 +911,7 @@ show_user_hudstats(id, Float:fGameTime) { get_victims(id, g_sBuffer) set_hudtype_victim(fDuration) - show_hudmessage(id, g_sBuffer) + show_hudmessage(id, "%s", g_sBuffer) #if defined STATSX_DEBUG log_amx("Show %1.2fs %suser HUD v-stats for #%d", fDuration, g_sBuffer[0] ? "" : "no ", id) #endif @@ -921,7 +921,7 @@ show_user_hudstats(id, Float:fGameTime) { get_attackers(id, g_sBuffer) set_hudtype_attacker(fDuration) - show_hudmessage(id, g_sBuffer) + show_hudmessage(id, "%s", g_sBuffer) #if defined STATSX_DEBUG log_amx("Show %1.2fs %suser HUD a-stats for #%d", fDuration, g_sBuffer[0] ? "" : "no ", id) #endif diff --git a/plugins/imessage.sma b/plugins/imessage.sma index 567e9bd2..d6ecba67 100755 --- a/plugins/imessage.sma +++ b/plugins/imessage.sma @@ -65,8 +65,8 @@ public infoMessage() g_Current = 0 set_hudmessage(g_Values[g_Current][0], g_Values[g_Current][1], g_Values[g_Current][2], X_POS, Y_POS, 0, 0.5, HOLD_TIME, 2.0, 2.0, -1) - show_hudmessage(0, g_Messages[g_Current]) - client_print(0, print_console, g_Messages[g_Current]) + show_hudmessage(0, "%s", g_Messages[g_Current]) + client_print(0, print_console, "%s", g_Messages[g_Current]) ++g_Current new Float:freq_im = get_cvar_float("amx_freq_imessage") diff --git a/plugins/menufront.sma b/plugins/menufront.sma index 87df7119..ae90e8fd 100755 --- a/plugins/menufront.sma +++ b/plugins/menufront.sma @@ -149,7 +149,7 @@ public actionMenu(id, key) { case 8: displayMenu(id, ++g_menuPosition[id]) case 9: displayMenu(id, --g_menuPosition[id]) - default: client_cmd(id, g_menuCmd[g_menuPosition[id] * 8 + key]) + default: client_cmd(id, "%s", g_menuCmd[g_menuPosition[id] * 8 + key]) } return PLUGIN_HANDLED @@ -161,7 +161,7 @@ public clientActionMenu(id, key) { case 8: clientDisplayMenu(id, ++g_clientMenuPosition[id]) case 9: clientDisplayMenu(id, --g_clientMenuPosition[id]) - default: client_cmd(id, g_clientMenuCmd[g_clientMenuPosition[id] * 8 + key]) + default: client_cmd(id, "%s", g_clientMenuCmd[g_clientMenuPosition[id] * 8 + key]) } return PLUGIN_HANDLED diff --git a/plugins/plmenu.sma b/plugins/plmenu.sma index fe0a4873..257d9d52 100755 --- a/plugins/plmenu.sma +++ b/plugins/plmenu.sma @@ -677,12 +677,12 @@ public actionClcmdMenu(id, key) if (flags & 1) { - server_cmd(command) + server_cmd("%s", command) server_exec() } else if (flags & 2) - client_cmd(id, command) + client_cmd(id, "%s", command) else if (flags & 4) - client_cmd(player, command) + client_cmd(player, "%s", command) } if (flags & 8) diff --git a/plugins/scrollmsg.sma b/plugins/scrollmsg.sma index 7bc1f857..3183efd9 100755 --- a/plugins/scrollmsg.sma +++ b/plugins/scrollmsg.sma @@ -74,7 +74,7 @@ public showMsg() } set_hudmessage(200, 100, 0, g_xPos, 0.90, 0, SPEED, SPEED, 0.05, 0.05, -1) - show_hudmessage(0, g_displayMsg) + show_hudmessage(0, "%s", g_displayMsg) } public msgInit() @@ -84,7 +84,7 @@ public msgInit() g_xPos = 0.65 set_task(SPEED, "showMsg", 123, "", 0, "a", g_Length + 48) - client_print(0, print_console, g_scrollMsg) + client_print(0, print_console, "%s", g_scrollMsg) } public setMessage() diff --git a/plugins/timeleft.sma b/plugins/timeleft.sma index c27e476f..28255213 100755 --- a/plugins/timeleft.sma +++ b/plugins/timeleft.sma @@ -103,7 +103,7 @@ public sayTimeLeft(id) { new svoice[128] setTimeVoice(svoice, 127, 0, a) - client_cmd(id, svoice) + client_cmd(id, "%s", svoice) } client_print(0, print_chat, "%L: %d:%02d", LANG_PLAYER, "TIME_LEFT", (a / 60), (a % 60)) } @@ -260,14 +260,14 @@ public timeRemain(param[]) else set_hudmessage(255, 255, 255, -1.0, 0.85, 0, 0.0, 3.0, 0.0, 0.5, -1) - show_hudmessage(players[i], arg) + show_hudmessage(players[i], "%s", arg) } } if (flags & 2) { setTimeVoice(arg, 127, flags, tmlf) - client_cmd(0, arg) + client_cmd(0, "%s", arg) } } }