mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 01:11:29 +00:00
13 lines
289 B
C++
Executable File
13 lines
289 B
C++
Executable File
#include "../client.h"
|
|
|
|
void command_kill(Client *c, const Seperator *sep)
|
|
{
|
|
if (!c->GetTarget()) {
|
|
c->Message(Chat::White, "Error: #Kill: No target.");
|
|
}
|
|
else if (!c->GetTarget()->IsClient() || c->GetTarget()->CastToClient()->Admin() <= c->Admin()) {
|
|
c->GetTarget()->Kill();
|
|
}
|
|
}
|
|
|