Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- translations = {
- "BLEEDING": "<color=red>[Death]</color> <color=yellow>{0}</color> bled to death!",
- "GUN": "<color=red>[Death]</color> <color=yellow>{0}</color> was shot to death by {1}",
- "BONES": "<color=red>[Death]</color> <color=yellow>{0}</color> fell to their death!",
- "FREEZING": "<color=red>[Death]</color> <color=yellow>{0}</color> froze to death!",
- "BURNING": "<color=red>[Death]</color> <color=yellow>{0}</color> burned to a crisp!",
- "FOOD": "<color=red>[Death]</color> <color=yellow>{0}</color> starved to death!",
- "WATER": "<color=red>[Death]</color> <color=yellow>{0}</color> died of dehydration!",
- "MELEE": "<color=red>[Death]</color> <color=yellow>{0}</color> was stabbed to death by {1}",
- "ZOMBIE": "<color=red>[Death]</color> <color=yellow>{0}</color> had his brains eaten!",
- "ANIMAL": "<color=red>[Death]</color> <color=yellow>{0}</color> was eaten by an animal!",
- "SUICIDE": "<color=red>[Death]</color> <color=yellow>{0}</color> couldn't handle it anymore!",
- "KILL": "<color=red>[Death]</color> <color=yellow>{0}</color> died mysteriously!",
- "INFECTION" : "<color=red>[Death]</color> <color=yellow>{0}</color> turned into a zombie!",
- "PUNCH": "<color=red>[Death]</color> <color=yellow>{0}</color> was punched to death by {1}",
- "BREATH": "<color=red>[Death]</color> <color=yellow>{0}</color> couldn't hold their breath!",
- "ROADKILL" : "<color=red>[Death]</color> <color=yellow>{0}</color> was ran over!",
- "VEHICLE": "<color=red>[Death]</color> <color=yellow>{0}</color> died in a vehicle accident!",
- "SHRED": "<color=red>[Death]</color> <color=yellow>{0}</color> was shredded to death!",
- "LANDMINE": "<color=red>[Death]</color> <color=yellow>{0}</color> went walking in a minefield!",
- "ARENA": "<color=red>[Death]</color> <color=yellow>{0}</color> died to the arena walls!",
- "MISSLE": "<color=red>[Death]</color> <color=yellow>{0}</color> was victim to a rogue missile!",
- "CHARGE": "<color=red>[Death]</color> <color=yellow>{0}</color> died in a C4 explosion!",
- "SPLASH": "<color=red>[Death]</color> <color=yellow>{0}</color> was splashed to death!",
- "ACID": "<color=red>[Death]</color> <color=yellow>{0}</color> went swimming in acid!",
- "BOULDER": "<color=red>[Death]</color> <color=yellow>{0}</color> was crushed by a boulder!",
- "BURNER": "<color=red>[Death]</color> <color=yellow>{0}</color> burned to death!",
- "SPIT": "<color=red>[Death]</color> <color=yellow>{0}</color> died to an acid attack!",
- "SPARK": "<color=red>[Death]</color> <color=yellow>{0}</color> got shocked!"
- };
- event onPlayerDeath(victim, killer, cause){
- killerName = toPlayer(killerId) != null ? toPlayer(killerId).name : "";
- broadcast(translations[cause].format(player.name, killerName, player.nearestLocation));
- }
Add Comment
Please, Sign In to add comment