I would love for you guys help me with my script here to punish my players..
I already have a script that kills a player, which I designate...
Here you are:
Now entering my idea for the script:
1º Add a comma (param) to command and designate the amount of exp I go to remove the dead player
Example: /kill botter, 100000 ( So the dead player loses 100000 amount of exp )
2º Add the name of the killer in the dead body, because currently shows the following:
You Recognize Botter, he was killed by NOTHING.
Thats my ideia, I hope you help me..
Thanks!!!
I already have a script that kills a player, which I designate...
Here you are:
Lua:
function onSay(cid, words, param)
local player = getCreatureByName(param)
if(param == "") then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.")
return TRUE
end
local pid = getPlayerByNameWildcard(param)
if(pid == 0 or (isPlayerGhost(pid) == TRUE and getPlayerAccess(pid) > getPlayerAccess(cid))) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. param .. " is not currently online.")
return TRUE
end
if isPlayer(player) == TRUE then
doPlayerSendTextMessage(cid, 22, "You killed "..param.."!")
doPlayerSendTextMessage(player, 19, "You were killed because you didnt respect the rules.")
doCreatureAddHealth(player, -getCreatureMaxHealth(player))
end
return TRUE
end
Now entering my idea for the script:
1º Add a comma (param) to command and designate the amount of exp I go to remove the dead player
Example: /kill botter, 100000 ( So the dead player loses 100000 amount of exp )
2º Add the name of the killer in the dead body, because currently shows the following:
You Recognize Botter, he was killed by NOTHING.
Thats my ideia, I hope you help me..
Thanks!!!