mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-07 02:23:20 +00:00
Allow multiple clients for sm_ftl
This commit is contained in:
parent
41efdd80d7
commit
01e6c7fe00
1 changed files with 32 additions and 29 deletions
|
@ -316,23 +316,25 @@ public Action Command_ListTheTrolls(int client, int args) {
|
||||||
GetCmdArg(1, arg1, sizeof(arg1));
|
GetCmdArg(1, arg1, sizeof(arg1));
|
||||||
|
|
||||||
static char target_name[MAX_TARGET_LENGTH];
|
static char target_name[MAX_TARGET_LENGTH];
|
||||||
int target_list[1], target_count;
|
int target_list[MAXPLAYERS], target_count;
|
||||||
bool tn_is_ml;
|
bool tn_is_ml;
|
||||||
if ((target_count = ProcessTargetString(
|
if ((target_count = ProcessTargetString(
|
||||||
arg1,
|
arg1,
|
||||||
client,
|
client,
|
||||||
target_list,
|
target_list,
|
||||||
1,
|
MAXPLAYERS,
|
||||||
COMMAND_FILTER_NO_MULTI,
|
0,
|
||||||
target_name,
|
target_name,
|
||||||
sizeof(target_name),
|
sizeof(target_name),
|
||||||
tn_is_ml)) <= 0
|
tn_is_ml)) <= 0
|
||||||
&& target_list[0] > 0) {
|
|| target_list[0] == 0) {
|
||||||
/* This function replies to the admin with a failure message */
|
/* This function replies to the admin with a failure message */
|
||||||
ReplyToTargetError(client, target_count);
|
ReplyToTargetError(client, target_count);
|
||||||
return Plugin_Handled;
|
return Plugin_Handled;
|
||||||
}
|
}
|
||||||
int target = target_list[0];
|
|
||||||
|
for(int p = 0; p < target_count; p++) {
|
||||||
|
int target = target_list[p];
|
||||||
if(IsPlayerAlive(target))
|
if(IsPlayerAlive(target))
|
||||||
ReplyToCommand(client, "> Active Trolls for %N:", target);
|
ReplyToCommand(client, "> Active Trolls for %N:", target);
|
||||||
else
|
else
|
||||||
|
@ -362,6 +364,7 @@ public Action Command_ListTheTrolls(int client, int args) {
|
||||||
ReplyToCommand(client, trollIds[j]);
|
ReplyToCommand(client, trollIds[j]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return Plugin_Handled;
|
return Plugin_Handled;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue