From 5497a13dd7411b1c77afb5f714c67534b87618eb Mon Sep 17 00:00:00 2001 From: Greyscale Date: Sat, 4 Jul 2009 23:49:23 -0700 Subject: [PATCH] Fixed minor errors, fixed antistick having some false positives, fixed every single Zombie:Reloaded line at top of the file. --- src/zombiereloaded.sp | 2 +- src/zr/account.inc | 2 +- src/zr/antistick.inc | 29 ++++++++++++++----------- src/zr/commands.inc | 2 +- src/zr/config.inc | 2 +- src/zr/cookies.inc | 2 +- src/zr/cvars.inc | 2 +- src/zr/damage.inc | 2 +- src/zr/downloads.inc | 2 +- src/zr/event.inc | 2 +- src/zr/global.inc | 2 +- src/zr/hitgroups.inc | 2 +- src/zr/infect.inc | 2 +- src/zr/jumpboost.inc | 2 +- src/zr/knockback.inc | 2 +- src/zr/log.h.inc | 2 +- src/zr/log.inc | 2 +- src/zr/menu.inc | 2 +- src/zr/models.inc | 2 +- src/zr/napalm.inc | 6 ++--- src/zr/overlays.inc | 2 +- src/zr/playerclasses/apply.inc | 2 +- src/zr/playerclasses/attributes.inc | 2 +- src/zr/playerclasses/classcommands.inc | 2 +- src/zr/playerclasses/classevents.inc | 2 +- src/zr/playerclasses/classmenus.inc | 2 +- src/zr/playerclasses/clientalpha.inc | 2 +- src/zr/playerclasses/clientoverlays.inc | 2 +- src/zr/playerclasses/filtertools.inc | 2 +- src/zr/playerclasses/healthregen.inc | 2 +- src/zr/playerclasses/playerclasses.inc | 2 +- src/zr/respawn.inc | 2 +- src/zr/roundend.inc | 2 +- src/zr/roundstart.inc | 2 +- src/zr/sayhooks.inc | 2 +- src/zr/soundeffects/ambientsounds.inc | 2 +- src/zr/soundeffects/soundeffects.inc | 2 +- src/zr/soundeffects/zombiesounds.inc | 2 +- src/zr/spawnprotect.inc | 2 +- src/zr/steamidcache.inc | 2 +- src/zr/tools.inc | 2 +- src/zr/tools_functions.inc | 2 +- src/zr/translation.inc | 2 +- src/zr/visualeffects/ragdoll.inc | 2 +- src/zr/visualeffects/visualambience.inc | 2 +- src/zr/visualeffects/visualeffects.inc | 2 +- src/zr/weapons/menu_weapons.inc | 2 +- src/zr/weapons/restrict.inc | 2 +- src/zr/weapons/weaponalpha.inc | 2 +- src/zr/weapons/weaponammo.inc | 2 +- src/zr/weapons/weapons.inc | 2 +- src/zr/weapons/zmarket.inc | 8 ++++++- src/zr/zadmin.inc | 2 +- src/zr/zcookies.inc | 2 +- src/zr/zhp.inc | 2 +- src/zr/zombiereloaded.inc | 2 +- src/zr/zspawn.inc | 2 +- src/zr/ztele.inc | 2 +- 58 files changed, 81 insertions(+), 72 deletions(-) diff --git a/src/zombiereloaded.sp b/src/zombiereloaded.sp index ed98428..85b7486 100644 --- a/src/zombiereloaded.sp +++ b/src/zombiereloaded.sp @@ -1,7 +1,7 @@ /* * ============================================================================ * - * Zombie:Reloaded + * Zombie:Reloaded * * File: zombiereloaded.sp * Type: Base diff --git a/src/zr/account.inc b/src/zr/account.inc index 22f2cb2..191d23c 100644 --- a/src/zr/account.inc +++ b/src/zr/account.inc @@ -1,7 +1,7 @@ /* * ============================================================================ * - * Zombie:Reloaded + * Zombie:Reloaded * * File: account.inc * Type: Module diff --git a/src/zr/antistick.inc b/src/zr/antistick.inc index aa0f7ef..e215445 100644 --- a/src/zr/antistick.inc +++ b/src/zr/antistick.inc @@ -1,7 +1,7 @@ /* * ============================================================================ * - * Zombie:Reloaded + * Zombie:Reloaded * * File: antistick.inc * Type: Module @@ -316,14 +316,14 @@ public Action:AntiStickSolidifyTimer(Handle:timer, any:client) // Loop through all client's and check if client is stuck in them. for (new x = 1; x <= MaxClients; x++) { - // Don't compare the same clients. - if (client == x) + // If client isn't in-game, then stop. + if (!IsClientInGame(x)) { continue; } - // If client isn't in-game, then stop. - if (!IsClientInGame(x)) + // Don't compare the same clients. + if (client == x) { continue; } @@ -409,14 +409,14 @@ stock AntiStickBuildModelBox(client, Float:boundaries[AntiStickBoxBound][3], Flo new Float:eyeloc[3]; GetClientEyePosition(client, eyeloc); - boundaries[BoxBound_FUR][2] = eyeloc[2] / 1.1; // Scale box down a bit to prevent weird false triggers. - boundaries[BoxBound_FUL][2] = eyeloc[2] / 1.1; - boundaries[BoxBound_FDR][2] = clientloc[2] + 3.0; // Raise this a hair up to be safe. - boundaries[BoxBound_FDL][2] = clientloc[2] + 3.0; - boundaries[BoxBound_BUR][2] = eyeloc[2] / 1.1; - boundaries[BoxBound_BUL][2] = eyeloc[2] / 1.1; - boundaries[BoxBound_BDR][2] = clientloc[2] + 3.0; - boundaries[BoxBound_BDL][2] = clientloc[2] + 3.0; + boundaries[BoxBound_FUR][2] = eyeloc[2]; + boundaries[BoxBound_FUL][2] = eyeloc[2]; + boundaries[BoxBound_FDR][2] = clientloc[2] + 15.0; + boundaries[BoxBound_FDL][2] = clientloc[2] + 15.0; + boundaries[BoxBound_BUR][2] = eyeloc[2]; + boundaries[BoxBound_BUL][2] = eyeloc[2]; + boundaries[BoxBound_BDR][2] = clientloc[2] + 15.0; + boundaries[BoxBound_BDL][2] = clientloc[2] + 15.0; } /** @@ -635,6 +635,9 @@ public Action:AntiStickSetWidthCommand(client, argc) // Set hull width. AntiStickSetModelHullWidth(0, model, hull_width); + // Tell client it was successful. + TranslationReplyToCommand(client, "AntiStick command set width successful", model, hull_width); + // Save data. AntiStickSaveData(); diff --git a/src/zr/commands.inc b/src/zr/commands.inc index 7c97b35..56933a3 100644 --- a/src/zr/commands.inc +++ b/src/zr/commands.inc @@ -1,7 +1,7 @@ /* * ============================================================================ * - * Zombie:Reloaded + * Zombie:Reloaded * * File: commands.inc * Type: Core diff --git a/src/zr/config.inc b/src/zr/config.inc index f0ca203..ecca535 100644 --- a/src/zr/config.inc +++ b/src/zr/config.inc @@ -1,7 +1,7 @@ /* * ============================================================================ * - * Zombie:Reloaded + * Zombie:Reloaded * * File: config.inc * Type: Core diff --git a/src/zr/cookies.inc b/src/zr/cookies.inc index 4e44c14..8c3c316 100644 --- a/src/zr/cookies.inc +++ b/src/zr/cookies.inc @@ -1,7 +1,7 @@ /* * ============================================================================ * - * Zombie:Reloaded + * Zombie:Reloaded * * File: cookies.inc * Type: Module diff --git a/src/zr/cvars.inc b/src/zr/cvars.inc index 2adc651..a0811c8 100644 --- a/src/zr/cvars.inc +++ b/src/zr/cvars.inc @@ -1,7 +1,7 @@ /* * ============================================================================ * - * Zombie:Reloaded + * Zombie:Reloaded * * File: cvars.inc * Type: Core diff --git a/src/zr/damage.inc b/src/zr/damage.inc index 3a4ab41..b261986 100644 --- a/src/zr/damage.inc +++ b/src/zr/damage.inc @@ -1,7 +1,7 @@ /* * ============================================================================ * - * Zombie:Reloaded + * Zombie:Reloaded * * File: damage.inc * Type: Core diff --git a/src/zr/downloads.inc b/src/zr/downloads.inc index 8634c5d..cf3a1fa 100644 --- a/src/zr/downloads.inc +++ b/src/zr/downloads.inc @@ -1,7 +1,7 @@ /* * ============================================================================ * - * Zombie:Reloaded + * Zombie:Reloaded * * File: downloads.inc * Type: Core diff --git a/src/zr/event.inc b/src/zr/event.inc index 40aa674..ed93272 100644 --- a/src/zr/event.inc +++ b/src/zr/event.inc @@ -1,7 +1,7 @@ /* * ============================================================================ * - * Zombie:Reloaded + * Zombie:Reloaded * * File: event.inc * Type: Core diff --git a/src/zr/global.inc b/src/zr/global.inc index 5fe306c..031b685 100644 --- a/src/zr/global.inc +++ b/src/zr/global.inc @@ -1,7 +1,7 @@ /* * ============================================================================ * - * Zombie:Reloaded + * Zombie:Reloaded * * File: global.inc * Type: Core diff --git a/src/zr/hitgroups.inc b/src/zr/hitgroups.inc index acb6962..3d567f9 100644 --- a/src/zr/hitgroups.inc +++ b/src/zr/hitgroups.inc @@ -1,7 +1,7 @@ /* * ============================================================================ * - * Zombie:Reloaded + * Zombie:Reloaded * * File: hitgroup.inc * Type: Core diff --git a/src/zr/infect.inc b/src/zr/infect.inc index c1a2557..dfc6b3f 100644 --- a/src/zr/infect.inc +++ b/src/zr/infect.inc @@ -1,7 +1,7 @@ /* * ============================================================================ * - * Zombie:Reloaded + * Zombie:Reloaded * * File: infect.inc * Type: Core diff --git a/src/zr/jumpboost.inc b/src/zr/jumpboost.inc index a46d3e5..b5a6b8f 100644 --- a/src/zr/jumpboost.inc +++ b/src/zr/jumpboost.inc @@ -1,7 +1,7 @@ /* * ============================================================================ * - * Zombie:Reloaded + * Zombie:Reloaded * * File: jumpboost.inc * Type: Module diff --git a/src/zr/knockback.inc b/src/zr/knockback.inc index e1b9cab..cca1652 100644 --- a/src/zr/knockback.inc +++ b/src/zr/knockback.inc @@ -1,7 +1,7 @@ /* * ============================================================================ * - * Zombie:Reloaded + * Zombie:Reloaded * * File: knockback.inc * Type: Module diff --git a/src/zr/log.h.inc b/src/zr/log.h.inc index 2b29a71..5588165 100644 --- a/src/zr/log.h.inc +++ b/src/zr/log.h.inc @@ -1,7 +1,7 @@ /* * ============================================================================ * - * Zombie:Reloaded + * Zombie:Reloaded * * File: log.h.inc * Type: Core diff --git a/src/zr/log.inc b/src/zr/log.inc index 77d9e19..db4d748 100644 --- a/src/zr/log.inc +++ b/src/zr/log.inc @@ -1,7 +1,7 @@ /* * ============================================================================ * - * Zombie:Reloaded + * Zombie:Reloaded * * File: log.inc * Type: Core diff --git a/src/zr/menu.inc b/src/zr/menu.inc index 2283bc8..11fe0a0 100644 --- a/src/zr/menu.inc +++ b/src/zr/menu.inc @@ -1,7 +1,7 @@ /* * ============================================================================ * - * Zombie:Reloaded + * Zombie:Reloaded * * File: menu.inc * Type: Core diff --git a/src/zr/models.inc b/src/zr/models.inc index f71c2ab..6289ab2 100644 --- a/src/zr/models.inc +++ b/src/zr/models.inc @@ -1,7 +1,7 @@ /* * ============================================================================ * - * Zombie:Reloaded + * Zombie:Reloaded * * File: models.inc * Type: Core diff --git a/src/zr/napalm.inc b/src/zr/napalm.inc index a93a9c7..7c2e208 100644 --- a/src/zr/napalm.inc +++ b/src/zr/napalm.inc @@ -1,7 +1,7 @@ /* * ============================================================================ * - * Zombie:Reloaded + * Zombie:Reloaded * * File: napalm.inc * Type: Module @@ -107,8 +107,8 @@ NapalmOnWeaponFire(client, const String:weapon[]) return; } - // Wait .1 seconds. - CreateTimer(0.1, NapalmIgniteGrenade); + // Wait .15 seconds. + CreateTimer(0.15, NapalmIgniteGrenade); } /** diff --git a/src/zr/overlays.inc b/src/zr/overlays.inc index bbeaf21..db096f7 100644 --- a/src/zr/overlays.inc +++ b/src/zr/overlays.inc @@ -1,7 +1,7 @@ /* * ============================================================================ * - * Zombie:Reloaded + * Zombie:Reloaded * * File: overlays.inc * Type: Core diff --git a/src/zr/playerclasses/apply.inc b/src/zr/playerclasses/apply.inc index 625da0e..dc77b16 100644 --- a/src/zr/playerclasses/apply.inc +++ b/src/zr/playerclasses/apply.inc @@ -1,7 +1,7 @@ /* * ============================================================================ * - * Zombie:Reloaded + * Zombie:Reloaded * * File: apply.inc * Type: Core diff --git a/src/zr/playerclasses/attributes.inc b/src/zr/playerclasses/attributes.inc index d7636f3..65b3e99 100644 --- a/src/zr/playerclasses/attributes.inc +++ b/src/zr/playerclasses/attributes.inc @@ -1,7 +1,7 @@ /* * ============================================================================ * - * Zombie:Reloaded + * Zombie:Reloaded * * File: attributes.inc * Type: Core diff --git a/src/zr/playerclasses/classcommands.inc b/src/zr/playerclasses/classcommands.inc index d7354a4..ae6b859 100644 --- a/src/zr/playerclasses/classcommands.inc +++ b/src/zr/playerclasses/classcommands.inc @@ -1,7 +1,7 @@ /* * ============================================================================ * - * Zombie:Reloaded + * Zombie:Reloaded * * File: classcommands.inc * Type: Core diff --git a/src/zr/playerclasses/classevents.inc b/src/zr/playerclasses/classevents.inc index 9c5f4d6..17d9802 100644 --- a/src/zr/playerclasses/classevents.inc +++ b/src/zr/playerclasses/classevents.inc @@ -1,7 +1,7 @@ /* * ============================================================================ * - * Zombie:Reloaded + * Zombie:Reloaded * * File: classevents.inc * Type: Core diff --git a/src/zr/playerclasses/classmenus.inc b/src/zr/playerclasses/classmenus.inc index f5c5d86..d2283e5 100644 --- a/src/zr/playerclasses/classmenus.inc +++ b/src/zr/playerclasses/classmenus.inc @@ -1,7 +1,7 @@ /* * ============================================================================ * - * Zombie:Reloaded + * Zombie:Reloaded * * File: classmenus.inc * Type: Core diff --git a/src/zr/playerclasses/clientalpha.inc b/src/zr/playerclasses/clientalpha.inc index e55aef2..2f7f96f 100644 --- a/src/zr/playerclasses/clientalpha.inc +++ b/src/zr/playerclasses/clientalpha.inc @@ -1,7 +1,7 @@ /* * ============================================================================ * - * Zombie:Reloaded + * Zombie:Reloaded * * File: clientalpha.inc * Type: Core diff --git a/src/zr/playerclasses/clientoverlays.inc b/src/zr/playerclasses/clientoverlays.inc index 77e53e7..4c7a27a 100644 --- a/src/zr/playerclasses/clientoverlays.inc +++ b/src/zr/playerclasses/clientoverlays.inc @@ -1,7 +1,7 @@ /* * ============================================================================ * - * Zombie:Reloaded + * Zombie:Reloaded * * File: clientoverlays.inc * Type: Core diff --git a/src/zr/playerclasses/filtertools.inc b/src/zr/playerclasses/filtertools.inc index aa86c85..bde51bc 100644 --- a/src/zr/playerclasses/filtertools.inc +++ b/src/zr/playerclasses/filtertools.inc @@ -1,7 +1,7 @@ /* * ============================================================================ * - * Zombie:Reloaded + * Zombie:Reloaded * * File: filtertools.inc * Type: Core diff --git a/src/zr/playerclasses/healthregen.inc b/src/zr/playerclasses/healthregen.inc index fca0c40..cb382b8 100644 --- a/src/zr/playerclasses/healthregen.inc +++ b/src/zr/playerclasses/healthregen.inc @@ -1,7 +1,7 @@ /* * ============================================================================ * - * Zombie:Reloaded + * Zombie:Reloaded * * File: healthregen.inc * Type: Core diff --git a/src/zr/playerclasses/playerclasses.inc b/src/zr/playerclasses/playerclasses.inc index 8bd3882..b8a3677 100644 --- a/src/zr/playerclasses/playerclasses.inc +++ b/src/zr/playerclasses/playerclasses.inc @@ -1,7 +1,7 @@ /* * ============================================================================ * - * Zombie:Reloaded + * Zombie:Reloaded * * File: playerclasses.inc * Type: Core diff --git a/src/zr/respawn.inc b/src/zr/respawn.inc index c36f3ce..2c67ab2 100644 --- a/src/zr/respawn.inc +++ b/src/zr/respawn.inc @@ -1,7 +1,7 @@ /* * ============================================================================ * - * Zombie:Reloaded + * Zombie:Reloaded * * File: respawn.inc * Type: Module diff --git a/src/zr/roundend.inc b/src/zr/roundend.inc index 3c99504..081fe39 100644 --- a/src/zr/roundend.inc +++ b/src/zr/roundend.inc @@ -1,7 +1,7 @@ /* * ============================================================================ * - * Zombie:Reloaded + * Zombie:Reloaded * * File: roundend.inc * Type: Core diff --git a/src/zr/roundstart.inc b/src/zr/roundstart.inc index bcc6b27..f5c69f2 100644 --- a/src/zr/roundstart.inc +++ b/src/zr/roundstart.inc @@ -1,7 +1,7 @@ /* * ============================================================================ * - * Zombie:Reloaded + * Zombie:Reloaded * * File: roundstart.inc * Type: Core diff --git a/src/zr/sayhooks.inc b/src/zr/sayhooks.inc index ed165c2..2302c0e 100644 --- a/src/zr/sayhooks.inc +++ b/src/zr/sayhooks.inc @@ -1,7 +1,7 @@ /* * ============================================================================ * - * Zombie:Reloaded + * Zombie:Reloaded * * File: sayhooks.inc * Type: Core diff --git a/src/zr/soundeffects/ambientsounds.inc b/src/zr/soundeffects/ambientsounds.inc index d205a12..65653e7 100644 --- a/src/zr/soundeffects/ambientsounds.inc +++ b/src/zr/soundeffects/ambientsounds.inc @@ -1,7 +1,7 @@ /* * ============================================================================ * - * Zombie:Reloaded + * Zombie:Reloaded * * File: ambientsounds.inc * Type: Core diff --git a/src/zr/soundeffects/soundeffects.inc b/src/zr/soundeffects/soundeffects.inc index ea99c78..53c4ec5 100644 --- a/src/zr/soundeffects/soundeffects.inc +++ b/src/zr/soundeffects/soundeffects.inc @@ -1,7 +1,7 @@ /* * ============================================================================ * - * Zombie:Reloaded + * Zombie:Reloaded * * File: soundeffects.inc * Type: Core diff --git a/src/zr/soundeffects/zombiesounds.inc b/src/zr/soundeffects/zombiesounds.inc index fbf50a0..e7270e9 100644 --- a/src/zr/soundeffects/zombiesounds.inc +++ b/src/zr/soundeffects/zombiesounds.inc @@ -1,7 +1,7 @@ /* * ============================================================================ * - * Zombie:Reloaded + * Zombie:Reloaded * * File: zombiesounds.inc * Type: Core diff --git a/src/zr/spawnprotect.inc b/src/zr/spawnprotect.inc index 374cf03..8575a4f 100644 --- a/src/zr/spawnprotect.inc +++ b/src/zr/spawnprotect.inc @@ -1,7 +1,7 @@ /* * ============================================================================ * - * Zombie:Reloaded + * Zombie:Reloaded * * File: spawnprotect.inc * Type: Module diff --git a/src/zr/steamidcache.inc b/src/zr/steamidcache.inc index ad7c173..82ee4e9 100644 --- a/src/zr/steamidcache.inc +++ b/src/zr/steamidcache.inc @@ -1,7 +1,7 @@ /* * ============================================================================ * - * Zombie:Reloaded + * Zombie:Reloaded * * File: steamidcache.inc * Type: Core diff --git a/src/zr/tools.inc b/src/zr/tools.inc index 38c5d39..a8a8d8f 100644 --- a/src/zr/tools.inc +++ b/src/zr/tools.inc @@ -1,7 +1,7 @@ /* * ============================================================================ * - * Zombie:Reloaded + * Zombie:Reloaded * * File: tools.inc * Type: Core diff --git a/src/zr/tools_functions.inc b/src/zr/tools_functions.inc index df9f9b8..5460154 100644 --- a/src/zr/tools_functions.inc +++ b/src/zr/tools_functions.inc @@ -1,7 +1,7 @@ /* * ============================================================================ * - * Zombie:Reloaded + * Zombie:Reloaded * * File: tools_functions.inc * Type: Core diff --git a/src/zr/translation.inc b/src/zr/translation.inc index f2ae06e..99fcb59 100644 --- a/src/zr/translation.inc +++ b/src/zr/translation.inc @@ -1,7 +1,7 @@ /* * ============================================================================ * - * Zombie:Reloaded + * Zombie:Reloaded * * File: translation.inc * Type: Core diff --git a/src/zr/visualeffects/ragdoll.inc b/src/zr/visualeffects/ragdoll.inc index 69c4a90..ea1c9f1 100644 --- a/src/zr/visualeffects/ragdoll.inc +++ b/src/zr/visualeffects/ragdoll.inc @@ -1,7 +1,7 @@ /* * ============================================================================ * - * Zombie:Reloaded + * Zombie:Reloaded * * File: ragdoll.inc * Type: Module diff --git a/src/zr/visualeffects/visualambience.inc b/src/zr/visualeffects/visualambience.inc index 59b8888..4623a1f 100644 --- a/src/zr/visualeffects/visualambience.inc +++ b/src/zr/visualeffects/visualambience.inc @@ -1,7 +1,7 @@ /* * ============================================================================ * - * Zombie:Reloaded + * Zombie:Reloaded * * File: visualambience.inc * Type: Module diff --git a/src/zr/visualeffects/visualeffects.inc b/src/zr/visualeffects/visualeffects.inc index 7792f37..eb3d16d 100644 --- a/src/zr/visualeffects/visualeffects.inc +++ b/src/zr/visualeffects/visualeffects.inc @@ -1,7 +1,7 @@ /* * ============================================================================ * - * Zombie:Reloaded + * Zombie:Reloaded * * File: visualeffects.inc * Type: Module diff --git a/src/zr/weapons/menu_weapons.inc b/src/zr/weapons/menu_weapons.inc index 65d8752..4b023da 100644 --- a/src/zr/weapons/menu_weapons.inc +++ b/src/zr/weapons/menu_weapons.inc @@ -1,7 +1,7 @@ /* * ============================================================================ * - * Zombie:Reloaded + * Zombie:Reloaded * * File: menu_weapons.inc * Type: Core diff --git a/src/zr/weapons/restrict.inc b/src/zr/weapons/restrict.inc index 7938f7a..97cfd7a 100644 --- a/src/zr/weapons/restrict.inc +++ b/src/zr/weapons/restrict.inc @@ -1,7 +1,7 @@ /* * ============================================================================ * - * Zombie:Reloaded + * Zombie:Reloaded * * File: restrict.inc * Type: Core diff --git a/src/zr/weapons/weaponalpha.inc b/src/zr/weapons/weaponalpha.inc index 0485092..f428b9f 100644 --- a/src/zr/weapons/weaponalpha.inc +++ b/src/zr/weapons/weaponalpha.inc @@ -1,7 +1,7 @@ /* * ============================================================================ * - * Zombie:Reloaded + * Zombie:Reloaded * * File: weaponalpha.inc * Type: Core diff --git a/src/zr/weapons/weaponammo.inc b/src/zr/weapons/weaponammo.inc index 7f9d2a1..f4a6edd 100644 --- a/src/zr/weapons/weaponammo.inc +++ b/src/zr/weapons/weaponammo.inc @@ -1,7 +1,7 @@ /* * ============================================================================ * - * Zombie:Reloaded + * Zombie:Reloaded * * File: weaponammo.inc * Type: Core diff --git a/src/zr/weapons/weapons.inc b/src/zr/weapons/weapons.inc index 658c577..6bbc7f2 100644 --- a/src/zr/weapons/weapons.inc +++ b/src/zr/weapons/weapons.inc @@ -1,7 +1,7 @@ /* * ============================================================================ * - * Zombie:Reloaded + * Zombie:Reloaded * * File: weapons.inc * Type: Core diff --git a/src/zr/weapons/zmarket.inc b/src/zr/weapons/zmarket.inc index 2597738..bef31e7 100644 --- a/src/zr/weapons/zmarket.inc +++ b/src/zr/weapons/zmarket.inc @@ -1,7 +1,7 @@ /* * ============================================================================ * - * Zombie:Reloaded + * Zombie:Reloaded * * File: zmarket.inc * Type: Module @@ -1003,6 +1003,12 @@ stock ZMarketSetRebuyCookie(client, WeaponsSlot:slot, const String:value[]) // Find cookie handle, and retrieve its value. new Handle:rebuycookie = FindClientCookie(rebuycookiename); + if (rebuycookie == INVALID_HANDLE) + { + return; + } + + // Set weapon to cookie. SetClientCookie(client, rebuycookie, value); } diff --git a/src/zr/zadmin.inc b/src/zr/zadmin.inc index fadc008..c40ab52 100644 --- a/src/zr/zadmin.inc +++ b/src/zr/zadmin.inc @@ -1,7 +1,7 @@ /* * ============================================================================ * - * Zombie:Reloaded + * Zombie:Reloaded * * File: zadmin.inc * Type: Core diff --git a/src/zr/zcookies.inc b/src/zr/zcookies.inc index e6ea9f7..930ad28 100644 --- a/src/zr/zcookies.inc +++ b/src/zr/zcookies.inc @@ -1,7 +1,7 @@ /* * ============================================================================ * - * Zombie:Reloaded + * Zombie:Reloaded * * File: zcookies.inc * Type: Module diff --git a/src/zr/zhp.inc b/src/zr/zhp.inc index bba4cd5..d6e5dfe 100644 --- a/src/zr/zhp.inc +++ b/src/zr/zhp.inc @@ -1,7 +1,7 @@ /* * ============================================================================ * - * Zombie:Reloaded + * Zombie:Reloaded * * File: zhp.inc * Type: Module diff --git a/src/zr/zombiereloaded.inc b/src/zr/zombiereloaded.inc index f71ed73..3424769 100644 --- a/src/zr/zombiereloaded.inc +++ b/src/zr/zombiereloaded.inc @@ -1,7 +1,7 @@ /* * ============================================================================ * - * Zombie:Reloaded + * Zombie:Reloaded * * File: zombiereloaded.inc * Type: Core diff --git a/src/zr/zspawn.inc b/src/zr/zspawn.inc index ab6e2a2..f9a77c7 100644 --- a/src/zr/zspawn.inc +++ b/src/zr/zspawn.inc @@ -1,7 +1,7 @@ /* * ============================================================================ * - * Zombie:Reloaded + * Zombie:Reloaded * * File: zspawn.inc * Type: Module diff --git a/src/zr/ztele.inc b/src/zr/ztele.inc index d2362c0..c7917e8 100644 --- a/src/zr/ztele.inc +++ b/src/zr/ztele.inc @@ -1,7 +1,7 @@ /* * ============================================================================ * - * Zombie:Reloaded + * Zombie:Reloaded * * File: ztele.inc * Type: Module