diff --git a/src/zr/infect.inc b/src/zr/infect.inc index f283783..adfc45f 100644 --- a/src/zr/infect.inc +++ b/src/zr/infect.inc @@ -1184,6 +1184,7 @@ stock InfectManualInfect(client, targets[], count, bool:respawnoverride = false, { // Turn client into a mother zombie. InfectHumanToZombie(targets[x], _, true, respawnoverride, respawn); + LogAction(client, targets[x], "\"%L\" turned \"%L\" into a mother zombie", client, targets[x]); // If there was only 1 player targetted, then let admin know the outcome of the command. if (count == 1) @@ -1196,6 +1197,7 @@ stock InfectManualInfect(client, targets[], count, bool:respawnoverride = false, // Turn client into a zombie. InfectHumanToZombie(targets[x], _, false, respawnoverride, respawn); + LogAction(client, targets[x], "\"%L\" turned \"%L\" into a zombie", client, targets[x]); // If there was only 1 player targetted, then let admin know the outcome of the command. if (count == 1) @@ -1229,6 +1231,7 @@ stock InfectManualHuman(client, targets[], count, bool:respawn = false, bool:pro { // Turn client into a zombie. InfectZombieToHuman(targets[x], respawn, protect); + LogAction(client, targets[x], "\"%L\" turned \"%L\" into a human", client, targets[x]); // If there was only 1 player targetted, then let admin know the outcome of the command. if (count == 1) diff --git a/src/zr/zspawn.inc b/src/zr/zspawn.inc index 3bbeec5..e612fcf 100644 --- a/src/zr/zspawn.inc +++ b/src/zr/zspawn.inc @@ -302,6 +302,7 @@ public ZSpawnForceHandle(Handle:menu_zspawn_force, MenuAction:action, client, sl // Tell admin the outcome of the action. if (success) { + LogAction(client, target, "\"%L\" forced a ZSpawn on \"%L\"", client, target); TranslationReplyToCommand(client, "ZSpawn command force successful", targetname); } else @@ -404,6 +405,7 @@ public Action:ZSpawnForceCommand(client, argc) { // Give client the item. new bool:success = ZSpawnClient(targets[x], true, zombie); + LogAction(client, targets[x], "\"%L\" forced a ZSpawn on \"%L\"%s", client, targets[x], zombie ? " and made them zombie" : ""); // Tell admin the outcome of the command if only 1 client was targetted. if (result == 1) @@ -420,7 +422,7 @@ public Action:ZSpawnForceCommand(client, argc) } // Log action to game events. - LogEvent(false, LogType_Normal, LOG_GAME_EVENTS, LogModule_ZSpawn, "Force ZSpawn", "Admin \"%L\" forced player(s) to spawn. (zr_zspawn_force)", client); + //LogEvent(false, LogType_Normal, LOG_GAME_EVENTS, LogModule_ZSpawn, "Force ZSpawn", "Admin \"%L\" forced player(s) to spawn. (zr_zspawn_force)", client); return Plugin_Handled; }