• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

TalkAction Kill Command

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
 
It's good for finishing off bloody cavebotters.
But this is already a default command in tfs isn't it?
 
It's not a defaut command but there's already a thread about this I think, but still, it's nice to see ppl releasing stuff, there's always the same guys who release. It's good to see new ppl trying
 
Back
Top