MAX_PLAYERS: Fix plugins

This commit is contained in:
Arkshine
2015-02-01 19:20:55 +01:00
parent 1b350b627b
commit e441908230
32 changed files with 181 additions and 202 deletions

View File

@@ -57,8 +57,8 @@ public GrenadeSuicideSound
const SOUNDFILE_PATH_MAXLEN = 64
const SOUND_SHORTPATH_MAXLEN = SOUNDFILE_PATH_MAXLEN - 10 // 64 (sound/ [ 54 ] .wav) critical value for fast dl
new g_streakKills[MAX_PLAYERS][2]
new g_multiKills[MAX_PLAYERS][2]
new g_streakKills[MAX_PLAYERS + 1][2]
new g_multiKills[MAX_PLAYERS + 1][2]
new g_C4Timer
new g_Defusing
new g_Planter
@@ -67,7 +67,7 @@ new g_LastAnnounce
new g_roundCount
new Float:g_doubleKill
new g_doubleKillId
new g_friend[MAX_PLAYERS]
new g_friend[MAX_PLAYERS + 1]
new g_firstBlood
new g_center1_sync
new g_announce_sync
@@ -84,8 +84,8 @@ const TASK_DELAYED_NEW_ROUND = 98038
const TEAM_T = 1
const TEAM_CT = 2
new g_connected[MAX_PLAYERS]
new g_msounds[MAX_PLAYERS]
new g_connected[MAX_PLAYERS + 1]
new g_msounds[MAX_PLAYERS + 1]
new const _msound[] = "_msound"
new g_MultiKillMsg[7][] =
@@ -548,7 +548,7 @@ public client_death(killer, victim, wpnindex, hitplace, TK)
{
if( TEAM_T <= team <= TEAM_CT )
{
new ppl[32], pplnum, epplnum, a
new ppl[MAX_PLAYERS], pplnum, epplnum, a
get_players(ppl, epplnum, "ae", team == TEAM_T ? "CT" : "TERRORIST")
get_players(ppl, pplnum, "ae", team == TEAM_T ? "TERRORIST" : "CT")
if( victim_alive )
@@ -592,7 +592,7 @@ public client_death(killer, victim, wpnindex, hitplace, TK)
if (LastMan || LastManSound)
{
new cts[32], ts[32], ctsnum, tsnum, b
new cts[MAX_PLAYERS], ts[MAX_PLAYERS], ctsnum, tsnum, b
get_players(cts, ctsnum, "ae", "CT")
get_players(ts, tsnum, "ae", "TERRORIST")
@@ -744,7 +744,7 @@ public client_death(killer, victim, wpnindex, hitplace, TK)
{
if (HeadShotKill && wpnindex)
{
new killer_name[MAX_NAME_LENGTH], victim_name[MAX_NAME_LENGTH], weapon_name[32], message[256], players[32], pnum, plr
new killer_name[MAX_NAME_LENGTH], victim_name[MAX_NAME_LENGTH], weapon_name[32], message[256], players[MAX_PLAYERS], pnum, plr
xmod_get_wpnname(wpnindex, weapon_name, charsmax(weapon_name))
get_user_name(killer, killer_name, charsmax(killer_name))
@@ -866,7 +866,7 @@ public LogEvent_Round_Start()
{
if (KillingStreak)
{
new appl[32], ppl, i
new appl[MAX_PLAYERS], ppl, i
get_players(appl, ppl, "ac")
for (new a = 0; a < ppl; ++a)
@@ -1088,7 +1088,7 @@ play_sound(id, sound[])
}
else
{
new players[32], pnum, id
new players[MAX_PLAYERS], pnum, id
get_players(players, pnum, "ch")
for(--pnum; pnum>=0; pnum--)