added zr_zspawn_force and zr_infect/zr_human logging
This commit is contained in:
		| @@ -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) | ||||
|   | ||||
| @@ -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; | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user