• 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!

Where did all the /kill commands go?

Tony32

Veteran OT User
Joined
Jun 6, 2008
Messages
1,256
Reaction score
347
I just don't understand.. I've searched everywhere.. Here and on ot****.net

I really need a /kill talk action that works for tfs 2.2~~
since my flags wont work..

Anyone know where they went? xD
 
You mean like kill a player?
/kill George

Script:
Lua:
-- Required group id to use command.
local req_G_ID = 5
 
function onSay(cid, words, param)
	if (getPlayerGroupId(cid) < req_G_ID) then return TRUE end
	if (param ~= "") then
		local player = getPlayerByName(param)
		if (player == 0) then
			doPlayerSendCancel(cid, "A player with this name is not online.")
			doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
		else
			doCreatureAddHealth(player, - getCreatureMaxHealth(player))
			doPlayerSendTextMessage(cid, 24, "You have successfully killed "..param..".")
		end
	else
		doPlayerSendCancel(cid, "No player specified.")
		doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
	end
end
 
Last edited:
Yeah! Thanks! I needed something like that. I just wonder if you can help me edit it a little. I want it to broadcast the kill aswell.

Example

/kill Cheater, "Afk botting

Then it will kill the cheater and broadcast something like this:

Player Cheater was slayed by (killer). Reason "Afk botting".

Something like that ^^
 
Yeah! Thanks! I needed something like that. I just wonder if you can help me edit it a little. I want it to broadcast the kill aswell.

Example

/kill Cheater, "Afk botting

Then it will kill the cheater and broadcast something like this:

Player Cheater was slayed by (killer). Reason "Afk botting".

Something like that ^^

Simple :huh:

Lua:
  -- Required group id to use command.
local req_G_ID = 5
 
function onSay(cid, words, param)
        if (getPlayerGroupId(cid) < req_G_ID) then return TRUE end
        if (param ~= "") then
                local player = getPlayerByName(param)
                if (player == 0) then
                        doPlayerSendCancel(cid, "A player with this name is not online.")
                        doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
                else
                        doCreatureAddHealth(player, - getCreatureMaxHealth(player))
                        doPlayerSendTextMessage(cid, 24, "You have successfully killed "..param..".")
                        doBroadcastMessage("A GM used a stupid command" )
                        

                end
        else
                doPlayerSendCancel(cid, "No player specified.")
                doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
        end
end

Really useless / lame command, I don't know why you would want to kill your players. It certainly won't make your server more popular to see a GM killing players
 
@ /\

You should read my post again.. That's not the function I asked for..
 
@ /\

You should read my post again.. That's not the function I asked for..

ZoMG you can't do it? Any other day I would say fuck you, but I'm bored and nothing else to do so...

Lua:
doBroadcastMessage(" " .. getPlayerGroupName(cid) .. "  killed " .. getCreatureName(player) .. " for botting. )

Let me know if that works. I can't add something where you type in why, you can ask someone else to do that for you
 
Back
Top