NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

// Stats: "Auth" : '["0-Games", "1-Wins", "2-Draws", "3-Losses", "4-Winrate", "5-Goals", "6-Assists", "7-GK", "8-CS", "9-CS%", "10-Role", "11-Nick"]'

/* VARIABLES */

var ModoChatPausado = [];
const CensurarMensajes =

/* ROOM */

const roomName = "Sohbet Odası | Selin";
const botName = "Selin";
const maxPlayers = 12;
const roomPublic = true;
const geo = [{"code": "TR", "lat": 40.9, "lon": 29.1}, {"code": "FR", "lat": 46.2, "lon": 2.2}, {"code": "PL", "lat": 51.9, "lon": 19.1}, {"code": "GB", "lat": 55.3, "lon": -3.4}, {"code": "PT", "lat": 39.3, "lon": -8.2}];

const room = HBInit({ roomName: roomName, maxPlayers: maxPlayers, public: roomPublic, playerName: botName, geo: geo[0] });

const scoreLimitClassic = 3;
const scoreLimitBig = 3;
const timeLimitClassic = 3;
const timeLimitBig = 3;

room.setTeamsLock(true);

var adminPassword = 1000 + getRandomInt(9000);
console.log("adminPassword : " + adminPassword);

/* FUNCTIONS */

function CensuradorDeSpammeros(message) {
if (CensurarMensajes.includes(message)) {
return true;
} else return false;
}

/* AUXILIARY FUNCTIONS */

function getRandomInt(max) { // returns a random number from 0 to max-1
return Math.floor(Math.random() * Math.floor(max));
}

function getTime(scores) { // returns the current time of the game
return "[" + Math.floor(Math.floor(scores.time/60)/10).toString() + Math.floor(Math.floor(scores.time/60)%10).toString() + ":" + Math.floor(Math.floor(scores.time - (Math.floor(scores.time/60) * 60))/10).toString() + Math.floor(Math.floor(scores.time - (Math.floor(scores.time/60) * 60))%10).toString() + "]"
}

function pointDistance(p1, p2) {
var d1 = p1.x - p2.x;
var d2 = p1.y - p2.y;
return Math.sqrt(d1 * d1 + d2 * d2);
}

/* PLAYER FUNCTIONS */

function getAuth(player) {
return extendedP.filter((a) => a[0] == player.id) != null ? extendedP.filter((a) => a[0] == player.id)[0][eP.AUTH] : null;
}

function getAFK(player) {
return extendedP.filter((a) => a[0] == player.id) != null ? extendedP.filter((a) => a[0] == player.id)[0][eP.AFK] : null;
}

function setAFK(player, value) {
extendedP.filter((a) => a[0] == player.id).forEach((player) => player[eP.AFK] = value);
}

function getActivity(player) {
return extendedP.filter((a) => a[0] == player.id) != null ? extendedP.filter((a) => a[0] == player.id)[0][eP.ACT] : null;
}

function setActivity(player, value) {
extendedP.filter((a) => a[0] == player.id).forEach((player) => player[eP.ACT] = value);
}

function getMute(player) {
return extendedP.filter((a) => a[0] == player.id) != null ? extendedP.filter((a) => a[0] == player.id)[0][eP.MUTE] : null;
}

function setMute(player, value) {
extendedP.filter((a) => a[0] == player.id).forEach((player) => player[eP.MUTE] = value);
}

/* PLAYER MOVEMENT */

var last_toucher;

room.onPlayerJoin = function(player) {
room.sendAnnouncement("Hoşgeldin " + player.name + " Komutları görmek için '!help' yazın", player.id);
room.sendAnnouncement("👋 Kurallar 👋 ❌ Argo kelime ve küfür içeren mesajlar kesinlikle yasaktır. ❌", player.id)
room.sendAnnouncement("👋 Kurallar 👋 ❌ Odaya Giren Herkes Bu Kuralları Kabul Etmiş Sayılır. ❌", player.id)
console.log(player.name + " has joined | conn: " + player.conn);
room.setPlayerAdmin(player.id, true);
}

}

room.onPlayerChat = function(player, message) {
console.log(`${player.name}:${message}`)
if(message == "!help") {
room.sendAnnouncement("!kurallar", player.id)
} else if (message == "!kurallar") {
room.sendAnnouncement("Kurallar: Din, dil, ırk ayrımına yönelik iletiler göndermek ve materyaller kullanmak kesinlikle yasaktır.", player.id)
room.sendAnnouncement("Kurallar: Kişi veya firmaların onurlarını zedeleyecek hakaret, küfür vs. içeren mesajları yazmak kesinlikle yasaktır.", player.id)
room.sendAnnouncement("Kurallar: Gereksiz mesajlar yazıp sunucuda gereksiz bir karmaşa yaratanlar önce uyarılıp ardından gerek görülürse sunucudan uzaklaştırılacaktır.", player.id)
} else if (message == "!tnsx1" && player.admin) {
room.stopGame();
room.setCustomStadium(tnsx1);
room.startGame();
} else if (ModoChatPausado.includes(player.id) == true) {
room.sendAnnouncement("💬Yavaşlatılmış chat modu devrede, 5 saniyede bir mesaj gönderebilirsiniz", player.id, 0x00FF00, "bold", 2);

return false;
}
if (player.admin == false && ModoChatPausado.includes(player.id) == false) {
ModoChatPausado.push(player.id);

setTimeout(function() {
ModoChatPausado.splice(ModoChatPausado.indexOf(player.id), 1);
}, 3000);
}
if (CensuradorDeSpammeros(message)) return false;
if (message.indexOf("!") == 0) return false;
if (player.admin == true) {
adminMessage = message;
var adminChatColor = 0x76ffee;
room.sendAnnouncement("[👑] " + player.name + ": " + adminMessage, null, adminChatColor, 'bold', 2);
return false;
}
}

room.onPlayerLeave = function(player) {
console.log(player.name + " Ayrıldı")
}

room.onPlayerBallKick = function(player) {
last_toucher = player
}

room.onTeamGoal = function(player) {
room.sendAnnouncement("Ağları deldi " + last_toucher.name, null, 0x00a693, "bold, 0");
}

room.onTeamVictory = function(player) {
redGol = room.getScores().red
blueGol = room.getScores().blue
}

var tnsx1 = '{"name":"Olympic Tenis from HaxMaps","width":400,"height":200,"spawnDistance":350,"bg":{"type":"grass","width":350,"height":135,"kickOffRadius":0,"cornerRadius":0},"vertexes":[{"x":-350,"y":135,"trait":"ballArea"},{"x":-350,"y":135,"trait":"ballArea"},{"x":-350,"y":-135,"trait":"ballArea"},{"x":-350,"y":-135,"trait":"ballArea"},{"x":350,"y":135,"trait":"ballArea"},{"x":350,"y":135,"trait":"ballArea"},{"x":350,"y":-135,"trait":"ballArea"},{"x":350,"y":-135,"trait":"ballArea"},{"x":0,"y":270,"trait":"kickOffBarrier"},{"x":0,"y":250,"trait":"kickOffBarrier"},{"x":0,"y":-250,"trait":"kickOffBarrier"},{"x":0,"y":-270,"trait":"kickOffBarrier"},{"x":0,"y":0,"trait":"goalNet"},{"x":0,"y":0,"trait":"goalNet"},{"x":0,"y":0,"trait":"goalNet"},{"x":0,"y":0,"trait":"goalNet"},{"x":0,"y":0,"trait":"goalNet"},{"x":0,"y":0,"trait":"goalNet"},{"x":0,"y":0,"trait":"goalNet"},{"x":0,"y":0,"trait":"goalNet"},{"x":-150,"y":100,"trait":"Line"},{"x":-150,"y":0,"trait":"Line"},{"x":-150,"y":-100,"trait":"Line"},{"x":-350,"y":-100,"trait":"Line"},{"x":350,"y":-100,"trait":"Line"},{"x":350,"y":100,"trait":"Line"},{"x":-350,"y":100,"trait":"Line"},{"x":0,"y":0,"trait":"Line"},{"x":-350,"y":0,"trait":"Line"},{"x":-340,"y":0,"trait":"Line"},{"x":150,"y":100,"trait":"Line"},{"x":150,"y":0,"trait":"Line"},{"x":150,"y":-100,"trait":"Line"},{"x":150,"y":100,"trait":"Line"},{"x":0,"y":135,"trait":"Line"},{"x":0,"y":-135,"trait":"Line"},{"x":350,"y":0,"trait":"Line"},{"x":340,"y":0,"trait":"Line"},{"x":0,"y":200,"trait":"barrier"},{"x":0,"y":-200,"trait":"barrier"},{"bCoef":0,"trait":"Line","x":12.5,"y":42,"curve":180,"color":"0000ff"},{"bCoef":0,"trait":"Line","x":45.5,"y":41,"curve":180,"color":"0000ff"},{"bCoef":0,"trait":"Line","x":31.5,"y":59,"color":"ffff00"},{"bCoef":0,"trait":"Line","x":63.5,"y":66,"color":"ffff00"},{"bCoef":0,"trait":"Line","x":54.5,"y":49,"color":"000000"},{"bCoef":0,"trait":"Line","x":83.5,"y":35,"color":"000000"},{"bCoef":0,"trait":"Line","x":73.5,"y":68,"color":"00ff00"},{"bCoef":0,"trait":"Line","x":104.5,"y":61,"color":"00ff00"},{"bCoef":0,"trait":"Line","x":96.5,"y":56,"color":"ff0000"},{"bCoef":0,"trait":"Line","x":116.5,"y":31,"color":"ff0000"}],"segments":[{"v0":0,"v1":1,"trait":"ballArea"},{"v0":7,"v1":3,"trait":"ballArea"},{"v0":4,"v1":0,"trait":"ballArea"},{"v0":6,"v1":7,"trait":"ballArea"},{"v0":3,"v1":2,"trait":"ballArea"},{"v0":4,"v1":5,"trait":"ballArea"},{"v0":21,"v1":22,"trait":"Line"},{"v0":24,"v1":23,"trait":"Line"},{"v0":25,"v1":26,"trait":"Line"},{"v0":21,"v1":20,"trait":"Line"},{"v0":21,"v1":27,"trait":"Line"},{"v0":28,"v1":29,"trait":"Line"},{"v0":30,"v1":31,"trait":"Line"},{"v0":31,"v1":21,"trait":"Line"},{"v0":31,"v1":32,"trait":"Line"},{"v0":34,"v1":35,"trait":"Line"},{"v0":36,"v1":37,"trait":"Line"},{"v0":38,"v1":39,"trait":"barrier"},{"v0":25,"v1":24,"trait":"Line"},{"v0":0,"v1":2,"trait":"Line"},{"v0":6,"v1":4,"trait":"Line"},{"v0":12,"v1":13,"trait":"goalNet","curve":-90},{"v0":13,"v1":14,"trait":"goalNet"},{"v0":14,"v1":15,"trait":"goalNet","curve":-90},{"v0":16,"v1":17,"trait":"goalNet","curve":90},{"v0":17,"v1":18,"trait":"goalNet"},{"v0":18,"v1":19,"trait":"goalNet","curve":90},{"v0":8,"v1":9,"trait":"kickOffBarrier"},{"v0":9,"v1":10,"trait":"kickOffBarrier","curve":180,"cGroup":["blueKO"]},{"v0":9,"v1":10,"trait":"kickOffBarrier","curve":-180,"cGroup":["redKO"]},{"v0":10,"v1":11,"trait":"kickOffBarrier"},{"vis":true,"bCoef":0,"trait":"Line","v0":40,"v1":41,"curve":180,"color":"0000ff"},{"curve":180,"vis":true,"color":"0000ff","bCoef":0,"trait":"Line","v0":41,"v1":40},{"curve":180,"vis":true,"color":"ffff00","bCoef":0,"trait":"Line","v0":42,"v1":43},{"curve":180,"vis":true,"color":"ffff00","bCoef":0,"trait":"Line","v0":43,"v1":42},{"curve":180,"vis":true,"color":"000000","bCoef":0,"trait":"Line","v0":44,"v1":45},{"curve":180,"vis":true,"color":"000000","bCoef":0,"trait":"Line","v0":45,"v1":44},{"curve":180,"vis":true,"color":"00ff00","bCoef":0,"trait":"Line","v0":46,"v1":47},{"curve":180,"vis":true,"color":"00ff00","bCoef":0,"trait":"Line","v0":47,"v1":46},{"curve":180,"vis":true,"color":"ff0000","bCoef":0,"trait":"Line","v0":48,"v1":49},{"curve":180,"vis":true,"color":"ff0000","bCoef":0,"trait":"Line","v0":49,"v1":48}],"goals":[{"p0":[-350,135],"p1":[-350,-135],"team":"red"},{"p0":[350,135],"p1":[350,-135],"team":"blue"}],"discs":[{"pos":[0,135],"trait":"goalPost","color":[245,245,245]},{"pos":[0,120],"trait":"goalPost","color":[245,245,245]},{"pos":[0,105],"trait":"goalPost","color":[245,245,245]},{"pos":[0,90],"trait":"goalPost","color":[245,245,245]},{"pos":[0,75],"trait":"goalPost","color":[245,245,245]},{"pos":[0,60],"trait":"goalPost","color":[245,245,245]},{"pos":[0,45],"trait":"goalPost","color":[245,245,245]},{"pos":[0,30],"trait":"goalPost","color":[245,245,245]},{"pos":[0,15],"trait":"goalPost","color":[245,245,245]},{"pos":[0,0],"trait":"goalPost","color":[245,245,245]},{"pos":[0,-15],"trait":"goalPost","color":[245,245,245]},{"pos":[0,-135],"trait":"goalPost","color":[245,245,245]},{"pos":[0,-120],"trait":"goalPost","color":[245,245,245]},{"pos":[0,-105],"trait":"goalPost","color":[245,245,245]},{"pos":[0,-90],"trait":"goalPost","color":[245,245,245]},{"pos":[0,-75],"trait":"goalPost","color":[245,245,245]},{"pos":[0,-60],"trait":"goalPost","color":[245,245,245]},{"pos":[0,-45],"trait":"goalPost","color":[245,245,245]},{"pos":[0,-30],"trait":"goalPost","color":[245,245,245]}],"planes":[{"normal":[0,1],"dist":-197,"trait":"ballArea","cMask":["red","blue"]},{"normal":[0,-1],"dist":-202,"trait":"ballArea","_selected":true,"cMask":["red","blue"]},{"normal":[0,1],"dist":-270,"bCoef":0.1},{"normal":[0,-1],"dist":-270,"bCoef":0.1},{"normal":[1,0],"dist":-600,"bCoef":0.1},{"normal":[-1,0],"dist":-600,"bCoef":0.1}],"traits":{"ballArea":{"vis":true,"bCoef":2,"cMask":["ball"],"color":[250,250,250]},"barrier":{"vis":false,"bCoef":0,"cMask":["red","blue"]},"letters":{"vis":true,"bCoef":0,"cMask":[""],"color":[255,255,255]},"goalPost":{"radius":3,"invMass":0,"cMask":["red","blue"]},"goalNet":{"vis":true,"bCoef":0.1,"cMask":[""]},"kickOffBarrier":{"vis":false,"bCoef":0.1,"cGroup":["redKO","blueKO"],"cMask":["red","blue"]},"Line":{"vis":true,"bCoef":0,"cMask":[""],"color":[250,250,250]}}}';
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.