perfection
FATAL DAMAGE
- Joined
- Aug 27, 2011
- Messages
- 196
- Reaction score
- 8
Lua:
function onSay(cid, words, param, channel)
if param == '' then
doPlayerSendTextMessage(cid,4, "Command param required.")
return 1
end
local pid = getPlayerByNameWildcard(param)
if not isPlayer(pid) or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid)) then
return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player with that name is not currently online.")
end
doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You killed " .. param .. "!")
doPlayerSendTextMessage(pid, MESSAGE_EVENT_ORANGE, "You were killed by the Admin")
return doCreatureAddHealth(pid, - getCreatureMaxHealth(pid))
end