Updated all file headlines, and added phrases for zspawn abuse.

This commit is contained in:
Greyscale 2009-05-06 02:28:09 +02:00
parent 476eface23
commit 2ac56b1969
46 changed files with 216 additions and 139 deletions

View File

@ -360,29 +360,12 @@
} }
// =========================== // ===========================
// ZHP // ZSpawn
// =========================== // ===========================
// General "ZSpawn double spawn"
"ZHP enable"
{ {
"en" "HP display enabled, your real HP will be displayed after infection." "en" "ZSpawn can only be used if you joined late during a round in progress."
}
"ZHP disable"
{
"en" "HP display disabled."
"ru" "Отображение здоровья включено."
}
// HUD
"Display HP"
{
"#format" "{1:d}"
"en" "HP: {1}"
"ru" "Здоровье: {1}"
} }
// =========================== // ===========================
@ -427,6 +410,32 @@
"en" "Teleported back to spawn. (Count: {1}/{2})" "en" "Teleported back to spawn. (Count: {1}/{2})"
} }
// ===========================
// ZHP
// ===========================
// General
"ZHP enable"
{
"en" "HP display enabled, your real HP will be displayed after infection."
}
"ZHP disable"
{
"en" "HP display disabled."
"ru" "Отображение здоровья включено."
}
// HUD
"Display HP"
{
"#format" "{1:d}"
"en" "HP: {1}"
"ru" "Здоровье: {1}"
}
"Unfair camping" "Unfair camping"

View File

@ -3,8 +3,9 @@
* *
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: (base) zombiereloaded.sp * File: zombiereloaded.sp
* Description: Plugins base file. * Type: Base
* Description: Plugins base file.
* *
* ============================================================================ * ============================================================================
*/ */

View File

@ -3,8 +3,9 @@
* *
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: account.inc * File: account.inc
* Description: (Module) Handles client's accounts. (cash) * Type: Module
* Description: Handles client's accounts. (cash)
* *
* ============================================================================ * ============================================================================
*/ */

View File

@ -1,9 +1,13 @@
/** /*
* ==================== * ============================================================================
*
* Zombie:Reloaded * Zombie:Reloaded
* File: antistick.inc *
* Author: Greyscale * File: antistick.inc
* ==================== * Type: Module
* Description: Antistick system.
*
* ============================================================================
*/ */
/** /**

View File

@ -3,8 +3,9 @@
* *
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: config.inc * File: config.inc
* Description: Config API and executing. * Type: Core
* Description: Config API and executing.
* *
* ============================================================================ * ============================================================================
*/ */

View File

@ -3,8 +3,9 @@
* *
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: cvars.inc * File: cvars.inc
* Description: Config creation and cvar control. * Type: Core
* Description: Config creation and cvar control.
* *
* ============================================================================ * ============================================================================
*/ */

View File

@ -3,8 +3,9 @@
* *
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: damage.inc * File: damage.inc
* Description: (Core) Modify damage stuff here. * Type: Core
* Description: Modify damage stuff here.
* *
* ============================================================================ * ============================================================================
*/ */

View File

@ -3,8 +3,9 @@
* *
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: (Core) event.inc * File: event.inc
* Description: Event hooking and forwarding. * Type: Core
* Description: Event hooking and forwarding.
* *
* ============================================================================ * ============================================================================
*/ */

View File

@ -3,8 +3,9 @@
* *
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: (Core) global.inc * File: global.inc
* Description: External API. * Type: Core
* Description: External API.
* *
* ============================================================================ * ============================================================================
*/ */

View File

@ -3,8 +3,9 @@
* *
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: hitgroup.inc * File: hitgroup.inc
* Description: API for loading hitgroup specific settings. * Type: Core
* Description: API for loading hitgroup specific settings.
* *
* ============================================================================ * ============================================================================
*/ */

View File

@ -3,8 +3,9 @@
* *
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: infect.inc * File: infect.inc
* Description: Client infection functions. * Type: Core
* Description: Client infection functions.
* *
* ============================================================================ * ============================================================================
*/ */

View File

@ -3,8 +3,9 @@
* *
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: jumpboost.inc * File: jumpboost.inc
* Description: Modified jump vector magnitudes. * Type: Module
* Description: Modified jump vector magnitudes.
* *
* ============================================================================ * ============================================================================
*/ */

View File

@ -1,9 +1,13 @@
/** /*
* ==================== * ============================================================================
*
* Zombie:Reloaded * Zombie:Reloaded
* File: knockback.inc *
* Author: Greyscale * File: knockback.inc
* ==================== * Type: Module
* Description: Handles knockback on clients.
*
* ============================================================================
*/ */
/** Client has been hurt. /** Client has been hurt.

View File

@ -3,8 +3,9 @@
* *
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: log.inc * File: log.inc
* Description: Logging API. * Type: Core
* Description: Logging API.
* *
* ============================================================================ * ============================================================================
*/ */

View File

@ -3,8 +3,9 @@
* *
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: menu.inc * File: menu.inc
* Description: Base menu functions for the plugin. * Type: Core
* Description: Base menu functions for the plugin.
* *
* ============================================================================ * ============================================================================
*/ */

View File

@ -3,8 +3,9 @@
* *
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: models.inc * File: models.inc
* Description: Model validation and API * Type: Core
* Description: Model validation and API
* *
* ============================================================================ * ============================================================================
*/ */

View File

@ -3,8 +3,9 @@
* *
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: napalm.inc * File: napalm.inc
* Description: Grenades burn zombies when damaged by them. * Type: Module
* Description: Grenades burn zombies when damaged by them.
* *
* ============================================================================ * ============================================================================
*/ */

View File

@ -3,8 +3,9 @@
* *
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: apply.inc * File: apply.inc
* Description: Functions for applying attributes and effects on a client. * Type: Core
* Description: Functions for applying attributes and effects on a client.
* *
* ============================================================================ * ============================================================================
*/ */

View File

@ -3,8 +3,9 @@
* *
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: attributes.inc * File: attributes.inc
* Description: Retrieving class attributes from certain caches. * Type: Core
* Description: Retrieving class attributes from certain caches.
* *
* ============================================================================ * ============================================================================
*/ */

View File

@ -3,8 +3,9 @@
* *
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: classevents.inc * File: classevents.inc
* Description: Functions for handling class related events. * Type: Core
* Description: Functions for handling class related events.
* *
* ============================================================================ * ============================================================================
*/ */

View File

@ -3,8 +3,9 @@
* *
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: classmenus.inc * File: classmenus.inc
* Description: Provides functions for managing class menus. * Type: Core
* Description: Provides functions for managing class menus.
* *
* ============================================================================ * ============================================================================
*/ */

View File

@ -3,8 +3,9 @@
* *
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: clientalpha.inc * File: clientalpha.inc
* Description: Handles transparency on clients. * Type: Core
* Description: Handles transparency on clients.
* *
* ============================================================================ * ============================================================================
*/ */

View File

@ -3,8 +3,9 @@
* *
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: clientoverlays.inc * File: clientoverlays.inc
* Description: Handles overlays on clients, as a part of class attributes. * Type: Core
* Description: Handles overlays on clients, as a part of class attributes.
* *
* ============================================================================ * ============================================================================
*/ */

View File

@ -3,8 +3,9 @@
* *
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: filtertools.inc * File: filtertools.inc
* Description: Class system tools; validating, getting indexes or lists * Type: Core
* Description: Class system tools; validating, getting indexes or lists
* *
* ============================================================================ * ============================================================================
*/ */

View File

@ -3,8 +3,9 @@
* *
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: healthregen.inc * File: healthregen.inc
* Description: Functions for managing health regeneration on a client. * Type: Core
* Description: Functions for managing health regeneration on a client.
* *
* ============================================================================ * ============================================================================
*/ */

View File

@ -3,8 +3,9 @@
* *
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: playerclasses.inc * File: playerclasses.inc
* Description: Provides functions for managing classes. * Type: Core
* Description: Provides functions for managing classes.
* *
* ============================================================================ * ============================================================================
*/ */

View File

@ -3,8 +3,9 @@
* *
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: respawn.inc * File: respawn.inc
* Description: Players come back to life * Type: Module
* Description: Players come back to life
* *
* ============================================================================ * ============================================================================
*/ */

View File

@ -3,8 +3,9 @@
* *
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: roundend.inc * File: roundend.inc
* Description: (Core) Handles round end actions. * Type: Core
* Description: Handles round end actions.
* *
* ============================================================================ * ============================================================================
*/ */

View File

@ -3,8 +3,9 @@
* *
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: sayhooks.inc * File: sayhooks.inc
* Description: Hook plugin say commands and redirect to their handling module. * Type: Core
* Description: Hook plugin say commands and redirect to their handling module.
* *
* ============================================================================ * ============================================================================
*/ */

View File

@ -3,8 +3,9 @@
* *
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: ambientsounds.inc * File: ambientsounds.inc
* Description: Plays ambient sounds to clients. * Type: Core
* Description: Plays ambient sounds to clients.
* *
* ============================================================================ * ============================================================================
*/ */

View File

@ -3,8 +3,9 @@
* *
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: soundeffects.inc * File: soundeffects.inc
* Description: Basic sound-management API. * Type: Core
* Description: Basic sound-management API.
* *
* ============================================================================ * ============================================================================
*/ */

View File

@ -3,8 +3,9 @@
* *
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: zombiesounds.inc * File: zombiesounds.inc
* Description: Zombie sound effects. * Type: Core
* Description: Zombie sound effects.
* *
* ============================================================================ * ============================================================================
*/ */

View File

@ -3,8 +3,9 @@
* *
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: spawnprotect.inc * File: spawnprotect.inc
* Description: Protects late-joining players from zombies for x seconds. * Type: Module
* Description: Protects late-joining players from zombies for x seconds.
* *
* ============================================================================ * ============================================================================
*/ */

View File

@ -3,8 +3,9 @@
* *
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: tools.inc * File: tools.inc
* Description: Find offsets and signatures. * Type: Core
* Description: Find offsets and signatures.
* *
* ============================================================================ * ============================================================================
*/ */

View File

@ -3,8 +3,9 @@
* *
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: tools_functions.inc * File: tools_functions.inc
* Description: API for offsets/signatures exposed in tools.inc * Type: Core
* Description: API for offsets/signatures exposed in tools.inc
* *
* ============================================================================ * ============================================================================
*/ */

View File

@ -1,9 +1,13 @@
/** /*
* ==================== * ============================================================================
*
* Zombie:Reloaded * Zombie:Reloaded
* File: translations.inc *
* Author: Greyscale * File: translation.inc
* ==================== * Type: Core
* Description: Translation parsing functions.
*
* ============================================================================
*/ */
FormatTextString(String:text[], maxlen) FormatTextString(String:text[], maxlen)

View File

@ -3,8 +3,9 @@
* *
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: visualeffects.inc * File: visualeffects.inc
* Description: Visual effects such as map darkening, fog, etc.. * Type: Module
* Description: Visual effects such as map darkening, fog, etc..
* *
* ============================================================================ * ============================================================================
*/ */

View File

@ -3,8 +3,9 @@
* *
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: markethandler.inc * File: markethandler.inc
* Description: Handles market (optional plugin) API, natives, and forwards. * Type: Core
* Description: Handles market (optional plugin) API, natives, and forwards.
* *
* ============================================================================ * ============================================================================
*/ */

View File

@ -1,9 +1,13 @@
/** /*
* ==================== * ============================================================================
*
* Zombie:Reloaded * Zombie:Reloaded
* File: menu_weapons.inc *
* Author: Greyscale * File: menu_weapons.inc
* ==================== * Type: Core
* Description: Handles weapons management menu.
*
* ============================================================================
*/ */
/** /**

View File

@ -1,9 +1,13 @@
/** /*
* ==================== * ============================================================================
*
* Zombie:Reloaded * Zombie:Reloaded
* File: restriction.inc *
* Author: Greyscale * File: restrict.inc
* ==================== * Type: Core
* Description: Weapon restriction system.
*
* ============================================================================
*/ */
/** /**

View File

@ -3,8 +3,9 @@
* *
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: weapons.inc * File: weapons.inc
* Description: API for all weapon-related functions. * Type: Core
* Description: API for all weapon-related functions.
* *
* ============================================================================ * ============================================================================
*/ */

View File

@ -1,9 +1,13 @@
/** /*
* ==================== * ============================================================================
*
* Zombie:Reloaded * Zombie:Reloaded
* File: admin.inc *
* Author: Richard H * File: zadmin.inc
* ==================== * Type: Core
* Description: Handle admin functions and menus.
*
* ============================================================================
*/ */
#include "include/adminmenu.inc" #include "include/adminmenu.inc"

View File

@ -3,9 +3,9 @@
* *
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: zhp.inc * File: zhp.inc
* Description: Displays HP to zombies. * Type: Module
* Author: Greyscale, Richard Helgeby * Description: Displays HP to zombies.
* *
* ============================================================================ * ============================================================================
*/ */

View File

@ -3,8 +3,9 @@
* *
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: zombiereloaded.inc * File: zombiereloaded.inc
* Description: General plugin functions and defines. * Type: Core
* Description: General plugin functions and defines.
* *
* ============================================================================ * ============================================================================
*/ */

View File

@ -3,8 +3,9 @@
* *
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: (Module) zspawn.inc * File: zspawn.inc
* Description: Handles zspawn command, spawns late-joining clients into the game. * Type: Module
* Description: Handles zspawn command, spawns late-joining clients into the game.
* *
* ============================================================================ * ============================================================================
*/ */
@ -42,35 +43,41 @@ ZSpawnOnRoundStart()
} }
} }
ZSpawnClient(client) /**
* Spawns a late-joining client into the game.
*
* @param client The client index.
* @return True if successful, false otherwise.
*/
bool:ZSpawnClient(client)
{ {
// If zspawn is disabled, then stop. // If zspawn is disabled, then stop.
new bool:zspawn = GetConVarBool(g_hCvarsList[CVAR_ZSPAWN]); new bool:zspawn = GetConVarBool(g_hCvarsList[CVAR_ZSPAWN]);
if (!zspawn) if (!zspawn)
{ {
ZR_PrintToChat(client, "Feature is disabled"); ZR_PrintToChat(client, "Feature is disabled");
return; return false;
}
// If client isn't on a team, then stop.
if (!ZRIsClientOnTeam(client))
{
return;
} }
// If client is alive, then stop. // If client is alive, then stop.
if (IsPlayerAlive(client)) if (IsPlayerAlive(client))
{ {
return; // Tell client the command may only be used when joining late.
ZR_PrintToChat(client, "Must be alive");
return false;
} }
// Block if client has already played during this round. // Block if client has already played during this round.
new serial = GetClientSerial(client); new serial = GetClientSerial(client);
if (g_bZSpawnBlock[serial]) if (g_bZSpawnBlock[serial])
{ {
return; // Tell client the command may only be used when joining late.
ZR_PrintToChat(client, "ZSpawn double spawn");
return false;
} }
// Tell respawn module to respawn client. // Tell respawn module to respawn client.
RespawnSpawnClient(client); RespawnSpawnClient(client);
return true;
} }

View File

@ -3,8 +3,9 @@
* *
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: ztele.inc * File: ztele.inc
* Description: ZTele handle functions. * Type: Module
* Description: ZTele handle functions.
* *
* ============================================================================ * ============================================================================
*/ */