Skip to content

Commit

Permalink
Merge pull request #1 from Mikusch/master
Browse files Browse the repository at this point in the history
Use client name format specifier
  • Loading branch information
gaejuck authored Apr 28, 2021
2 parents 6d10ca0 + 348727d commit 042e200
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions addons/sourcemod/scripting/deathrun/events.sp
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ public Action EventHook_ArenaRoundStart(Event event, const char[] name, bool don
else //One activator
{
int activator = g_CurrentActivators.Get(0); //Should be safe
char activatorName[MAX_NAME_LENGTH];
GetClientName(activator, activatorName, sizeof(activatorName));

for (int client = 1; client <= MaxClients; client++)
{
Expand All @@ -68,7 +66,7 @@ public Action EventHook_ArenaRoundStart(Event event, const char[] name, bool don
if (client == activator)
CPrintToChat(client, PLUGIN_TAG ... " %t", "RoundStart_NewActivator_Activator");
else
CPrintToChat(client, PLUGIN_TAG ... " %t", "RoundStart_NewActivator_Runners", activatorName);
CPrintToChat(client, PLUGIN_TAG ... " %t", "RoundStart_NewActivator_Runners", activator);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion addons/sourcemod/translations/deathrun.phrases.txt
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
}
"RoundStart_NewActivator_Runners"
{
"#format" "{1:s}"
"#format" "{1:N}"
"en" "{1} became the {blue}Activator{default}! Avoid getting killed by the traps and bring your team to victory!"
}
"RoundStart_NewActivator_Activator"
Expand Down
2 changes: 1 addition & 1 deletion addons/sourcemod/translations/it/deathrun.phrases.txt
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
}
"RoundStart_NewActivator_Runners"
{
"#format" "{1:s}"
"#format" "{1:N}"
"it" "{1} diventa l' {blue}Attivatore{default}! Evita di essere ucciso dalle trappole e porta la tua squadra alla vittoria!"
}
"RoundStart_NewActivator_Activator"
Expand Down

0 comments on commit 042e200

Please sign in to comment.