diff --git a/changelog.txt b/changelog.txt index 7979e2e..f75566a 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,6 @@ +2009.01.14 - 2.5.1.21 + * Fixed spectactor admins not able to teleport players to their custom location. + 2009.01.13 - 2.5.1.20 * Fixed zstuck still working when disabled. * Code cleanup: Removed old teleport functions and debug messages in zspawn. diff --git a/src/zombiereloaded.sp b/src/zombiereloaded.sp index d10a3bb..dbe7e87 100644 --- a/src/zombiereloaded.sp +++ b/src/zombiereloaded.sp @@ -15,7 +15,7 @@ #undef REQUIRE_PLUGIN #include -#define VERSION "2.5.1.20" +#define VERSION "2.5.1.21" #include "zr/zombiereloaded" #include "zr/global" diff --git a/src/zr/teleport.inc b/src/zr/teleport.inc index b2dbeb1..ab89dd9 100644 --- a/src/zr/teleport.inc +++ b/src/zr/teleport.inc @@ -239,14 +239,17 @@ public Action:Command_TeleportToLocation(client, argc) } if (target_client > 0 && target_client <= MAXPLAYERS) { - if (IsPlayerAlive(client)) + if (IsPlayerAlive(target_client)) { - AbortTeleport(target_client); TeleportEntity(target_client, bufferLoc[client], NULL_VECTOR, empty_vector); ZR_PrintToChat(client, "!ztele successful"); if (target_client != client) ZR_PrintToChat(target_client, "!ztele successful"); } + else + { + ReplyToCommand(client, "Player %s is dead. Only alive players can be teleported.", target_name); + } } else {