Added logging for ZSpawn and ZTele
Fixed minor translation typo.
This commit is contained in:
parent
061954fdc2
commit
069627b620
@ -814,7 +814,7 @@
|
||||
"en" "Zombie Management"
|
||||
}
|
||||
|
||||
"ZAdmin main force zspawn "
|
||||
"ZAdmin main force zspawn"
|
||||
{
|
||||
"en" "Force ZSpawn"
|
||||
}
|
||||
@ -913,13 +913,13 @@
|
||||
"ZSpawn command force successful"
|
||||
{
|
||||
"#format" "{1:s}"
|
||||
"en" "Player {1} was successfully ZSpawned."
|
||||
"en" "Player {1} was successfully spawned."
|
||||
}
|
||||
|
||||
"ZSpawn command force unsuccessful"
|
||||
{
|
||||
"#format" "{1:s}"
|
||||
"en" "Player {1} couldn't be ZSpawned."
|
||||
"en" "Player {1} couldn't be spawned."
|
||||
}
|
||||
|
||||
// ===========================
|
||||
@ -987,13 +987,13 @@
|
||||
"ZTele command force successful"
|
||||
{
|
||||
"#format" "{1:s}"
|
||||
"en" "Player {1} was successfully ZTele'd."
|
||||
"en" "Player {1} was successfully teleported."
|
||||
}
|
||||
|
||||
"ZTele command force unsuccessful"
|
||||
{
|
||||
"#format" "{1:s}"
|
||||
"en" "Player {1} couldn't be ZTele'd."
|
||||
"en" "Player {1} couldn't be teleported."
|
||||
}
|
||||
|
||||
// ===========================
|
||||
|
@ -84,7 +84,9 @@ enum LogModules
|
||||
bool:LogModule_Tools,
|
||||
bool:LogModule_Volfeatures,
|
||||
bool:LogModule_Weapons,
|
||||
bool:LogModule_Weaponrestrict
|
||||
bool:LogModule_Weaponrestrict,
|
||||
bool:LogModule_ZSpawn,
|
||||
bool:LogModule_ZTele,
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -119,6 +119,14 @@ LogGetModuleNameString(String:buffer[], maxlen, LogModules:module, bool:shortNam
|
||||
{
|
||||
return shortName ? strcopy(buffer, maxlen, "weaponrestrict") : strcopy(buffer, maxlen, "Weapon Restrictions");
|
||||
}
|
||||
case LogModule_ZSpawn:
|
||||
{
|
||||
return shortName ? strcopy(buffer, maxlen, "zspawn") : strcopy(buffer, maxlen, "ZSpawn");
|
||||
}
|
||||
case LogModule_ZTele:
|
||||
{
|
||||
return shortName ? strcopy(buffer, maxlen, "ztele") : strcopy(buffer, maxlen, "ZTele");
|
||||
}
|
||||
}
|
||||
|
||||
// Module mismatch.
|
||||
@ -198,6 +206,14 @@ LogModules:LogGetModule(const String:moduleName[])
|
||||
{
|
||||
return LogModule_Weaponrestrict;
|
||||
}
|
||||
else if (StrEqual(moduleName, "zspawn", false))
|
||||
{
|
||||
return LogModule_ZSpawn;
|
||||
}
|
||||
else if (StrEqual(moduleName, "ztele", false))
|
||||
{
|
||||
return LogModule_ZTele;
|
||||
}
|
||||
|
||||
// No match.
|
||||
return LogModule_Invalid;
|
||||
|
@ -398,6 +398,9 @@ 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);
|
||||
|
||||
return Plugin_Handled;
|
||||
}
|
||||
|
||||
|
@ -342,6 +342,9 @@ public Action:ZTeleForceCommand(client, argc)
|
||||
}
|
||||
}
|
||||
|
||||
// Log action to game events.
|
||||
LogEvent(false, LogType_Normal, LOG_GAME_EVENTS, LogModule_ZTele, "Force ZTele", "Admin \"%L\" forced player(s) to teleport to spawn. (zr_ztele_force)", client);
|
||||
|
||||
return Plugin_Handled;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user