Hey I have a little question to ask. Well I'm having my own Arena plugin and i want to add a protection to prevent your plugin to spam deaths when they are killing in the arena however i have no clue how Python works so i need a little assistance with this. I know how the code goes in LUAbut have no clue how to translate it in PythonCode:if (plugins.Exists("Event++") and plugins.CallHook("EIsPlaying", player)) then return endI know where i have to put it probably under line 289 if 'BasePlayer' in str(victim):
on = victim.IsConnected() so can you give me the example how to translate it...![]()

DeathNotes
Broadcasts players and animals deaths to chat
Total Downloads: 66,126 - First Release: Feb 14, 2015 - Last Update: May 13, 2018
- 4.98519/5, 270 likes
-
hello all, its possible to translate this pluggin (death note) in french? thanks
[DOUBLEPOST=1425832638][/DOUBLEPOST]possible to translate this pluggin french in command line? -
Here is RUssian translation which i use on my server.
{
"ANIMALS": {
"STAG": "Олень",
"CHICKEN": "Курица",
"WOLF": "Волк",
"BEAR": "Медведь",
"BOAR": "Кабан"
},
"MESSAGES": {
"COLD": [
"{victim} околел.",
"{victim} замерз насмерть."
],
"ANIMAL KILL SLEEP": [
"{victim} был убит животным во сне ({animal}).",
"{animal} поймал {victim}, пока тот спал."
],
"SLASH": [
"{attacker} зарубил {victim}. ({weapon})",
"{attacker} нарезал {victim} на тысячи мелких кусочков."
],
"SLASH SLEEP": [
"{attacker} изрубил спящего {victim} ({weapon}). Герой, чё сказать.",
"{attacker} убил {victim}, пока тот мирно сопел. {weapon}"
],
"DROWNED": [
"{victim} утоп.",
"{victim} был пойман русалками."
],
"ANIMAL KILL": [
"{victim} был убит животным {animal}.",
"{victim} не убежал от {animal}."
],
"BLEEDING": [
"{victim} истек кровью и умер.",
"{victim} поятерял много крови и погиб."
],
"BULLET SLEEP": [
"{attacker} убил {victim}, пока тот спал. ({weapon}, {distance}m)",
"{attacker} убил спящего {victim}, {weapon}."
],
"HUNGER": [
"{victim} умер от голода.",
"{victim} не смог найти пищи и уснул на века."
],
"THIRST": [
"{victim} умер от жажды.",
"Обезвоживание убило {victim}, что за напасть!"
],
"ARROW SLEEP": [
"{attacker} попал в {victim} стрелой в {bodypart}, пока {victim} спал.",
"{attacker} убил {victim} пока тот спал."
],
"HEAT": [
"{victim} сгорел на работе.",
"{victim} умер от спонтанного самовозгорания."
],
"SUICIDE": [
"{victim} совершил самоубийство.",
"{victim} решил больше не мучать окружающих и суициднулся."
],
"ANIMAL DEATH": "{attacker} убил {animal}. ({weapon}, {distance}m)",
"STAB": [
"{attacker} заколол {victim}. ({weapon})",
"{attacker} всадил {weapon} в {victim}."
],
"BLUNT": [
"{attacker} забил {victim}. ({weapon})",
"{attacker} насмерть травмировал {victim}, {weapon}."
],
"STAB SLEEP": [
"{attacker} заколол {victim}, пока тот беззаботно спал. ({weapon})",
"{attacker} заколол {victim} во сне, ах ты ж мелкий гаденыш."
],
"BLUNT SLEEP": [
"{attacker} забил {victim}, пока тот спал как ребенок. ({weapon})",
"{attacker} задушил спящего безвинного {victim}."
],
"FALL": [
"{victim} умер от падения в бездну.",
"{victim} ...believed he could fly, he believed he could touch the sky!"
],
"BULLET": [
"{attacker} застрелил {victim}. ({weapon}, {distance}m)",
"{attacker} зарядил свинцом в {victim}, {weapon}."
],
"POISON": [
"{victim} отравился, долго болел и умер.",
"{victim} съел какую-то гадость. RiP"
],
"TRAP": [
"{victim} умер в смертельной ловушке.",
"{victim} попал в капкан."
],
"RADIATION": [
"{victim} умер от радиации.",
"{victim} видимо не знал, что радиация может быть смертельна."
],
"ARROW": [
"{attacker} застрелил {victim} стрелой из лука в {bodypart} с {distance}m",
"{victim} получил стрелу в зад и все равно умер. Дистанция: {distance})"
],
"EXPLOSION": [
"{victim} был разобран по кусочкам с помощью C4.",
"{victim} взорвался."
]
}
"WEAPONS": {
"HUNTING": "Охотничий лук",
"AK47U": "AK47У",
"ROCK": "Камень",
"HATCHET": "Топор",
"PICKAXE": "Кирка",
"BOLT": "Болтовка",
"SALVAGED HAMMER": "Трофейный молот",
"SAWNOFFSHOTGUN": "Обрез",
"SALVAGED AXE": "Трофейный топор",
"BONEKNIFE": "Костяной нож",
"STONE SPEAR": "Каменное копье",
"WATERPIPE": "Самодельный дробовик",
"HATCHET STONE": "Каменный топор",
"EOKA": "Eoka пистолет",
"SALVAGED ICEPICK": "Трофейная кирка",
"WOODEN SPEAR": "Деревянное копье",
"TORCH": "Факел",
"THOMPSON": "Томпсон",
"REVOLVER": "Револьвер"
}
"BODY PARTS": {
"RIGHT HAND": "Правая рука",
"RIGHT THIGH": "Правое бедро",
"RIGHT EAR": "Правое ухо",
"JAW": "Челюсть",
"PELVIS": "Пах",
"LEFT HAND": "Левая рука",
"RIGHT FOREARM": "Правое предплечье",
"LEFT CLAVICLE": "Левая ключица",
"HEAD": "Голова",
"LIPS": "Губы",
"RIGHT FOOT": "Правая ступня",
"NECK": "Шея",
"RIGHT CALF": "Правая голень",
"LEFT UPPERARM": "Левое плечо",
"LEFT FOOT": "Левая ступня",
"LEFT SHOULDER": "Левое плечо",
"JOINT": "Сустав",
"LEFT CALF": "Левая голень",
"LEFT THIGH": "Левое бедро",
"LEFT TOE": "Левый большой палец ноги",
"LEFT EYE": "Левый глаз",
"SPINE": "Хребет",
"LEFT FOREARM": "Левое предплечье",
"RIGHT FINGERS": "Пальцы",
"RIGHT ULNA": "Правый локоть",
"LEFT ULNA": "Левый локоть",
"RIGHT CLAVICLE": "Правая ключица",
"LEFT EAR": "Левое ухо",
"RIGHT TOE": "Правый большой палец ноги",
"RIGHT EYE": "Правый глаз",
"RIGHT UPPERARM": "Правое плечо Upperarm",
"LEFT FINGERS": "Пальцы",
"RIGHT SHOULDER": "Правое плечо"
}Last edited by a moderator: Mar 8, 2015 -
I could add a command that toggles whether the plugin disables all messages or not, so then in your script you can trigger that command each time you want to disable it or enable it.
It's your call.
[DOUBLEPOST=1425840329][/DOUBLEPOST]
But if you do make sure you're translating the original config file on the plugin overview without any changes.
[DOUBLEPOST=1425840415][/DOUBLEPOST] -
Yes, but i will double check and will send you an original cfg translated. There may be some changes in translation due to some eng/rus differences 8) but minor.
Tomorrow, i hope. -
-
[DOUBLEPOST=1425842789][/DOUBLEPOST]Attached Files:
-
-
P.S. Don't sweat it @Mughisi helped me solve the problemLast edited by a moderator: Mar 9, 2015 -
Here is RU localisation, i used original cfg and just translated it. It's in UTF8.
If you need any corrections - let me know )Attached Files:
-
-
I think the weapon fire is lagging from the death note message...
seems allot of lag from it. -
[Oxide] 8:40 PM [Error] Failed to load plugin deathnotes:
File "deathnotes.py", line 314
if 'Bow' in str(import math
^
SyntaxError: unexpected token 'import' -
-
Is there anything I can modify in the config to enable logging of the kills? All I get in the logs is the CORE killing message:
Code:[3/20/2015 9:41:36 AM] Fred was killed by Killer
Thanks -
-
I do have that set to TRUE
Code:"SETTINGS": { "DISPLAY SUICIDE DEATH": true, "PREFIX": "DEATH☠NOTES", "DISPLAY PLAYER KILLS": true, "DISPLAY ANIMAL KILLS": true, "DISPLAY MESSAGES IN RADIUS": false, "DISPLAY ANIMAL DEATH": true, "MESSAGES RADIUS": 200.0, "DISPLAY METABOLISM DEATH": true, "BROADCAST TO CONSOLE": true, "DISPLAY TRAP DEATH": true, "DISPLAY EXPLOSION DEATH": true },
-
I am currently working on a re-write of Death Notes so expect this to be fixed by then. Meanwhile you may use the temporary fix I have attached to the message until the re-write is released, it should work fine.Attached Files:
-
-
Hm , anyway to remove that anyouning prefix and ":"?
-
Code:
... "SETTINGS": { "PREFIX": false, ...
-
SkinN õ.Õ'.|. updated Death Notes with a new update entry:
Death Notes | Improvements & bug fixes!
-
Sorry, i found the problem i done two ".
Attached Files:
-