mirror of
https://github.com/etlegacy/wolfadmin.git
synced 2025-01-21 07:40:54 +00:00
fix unknown command when map starts and show message when player is disconnected (issue #49)
This commit is contained in:
parent
b2e68bd99c
commit
7e9009ab17
1 changed files with 3 additions and 1 deletions
|
@ -211,7 +211,9 @@ function commands.onclientcommand(clientId, cmdText)
|
|||
else
|
||||
local recipient = stats.get(clientId, "lastMessageFrom")
|
||||
|
||||
if et.gentity_get(recipient, "pers.netname") then
|
||||
if not (recipient and et.gentity_get(recipient, "pers.netname")) then
|
||||
et.trap_SendConsoleCommand(et.EXEC_APPEND, "csay "..clientId.." \"player not found\";")
|
||||
else
|
||||
local message = {}
|
||||
|
||||
for i = 1, et.trap_Argc() - 1 do
|
||||
|
|
Loading…
Reference in a new issue