Fixed spectactor admins not able to teleport players to their saved location.

This commit is contained in:
richard 2009-01-14 16:09:27 +01:00
parent c2760c9de0
commit 018e283679
3 changed files with 9 additions and 3 deletions

View File

@ -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.

View File

@ -15,7 +15,7 @@
#undef REQUIRE_PLUGIN
#include <market>
#define VERSION "2.5.1.20"
#define VERSION "2.5.1.21"
#include "zr/zombiereloaded"
#include "zr/global"

View File

@ -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
{