mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 17:51:28 +00:00
17 lines
374 B
C++
Executable File
17 lines
374 B
C++
Executable File
#include "../client.h"
|
|
|
|
void command_freeze(Client *c, const Seperator *sep)
|
|
{
|
|
if (c->GetTarget()) {
|
|
auto target = c->GetTarget();
|
|
if (target != c) {
|
|
target->SendAppearancePacket(AT_Anim, ANIM_FREEZE);
|
|
} else {
|
|
c->Message(Chat::White, "You cannot freeze yourself.");
|
|
}
|
|
} else {
|
|
c->Message(Chat::White, "You must have a target to use this command.");
|
|
}
|
|
}
|
|
|