Notes![what is notes.io? What is notes.io?](/theme/images/whatisnotesio.png)
![]() ![]() Notes - notes.io |
var commands = {
"!radiug" : radiusFun,
"!changu" : avatarFun,
"!mute" : pushMuteFun,
"!unmute" : unmuteFun,
"!clearbans" : clearFun,
"!adminkomutları" : adminHelpFun,
"!power" : powerFun,
}
var mutedPlayers = [];
var Guest = "Guest | ";
var Admin = "Admin | ";
var AdminColor = "0x1288DF";
var GuesteColor = "0xE69138";
room.setDefaultStadium("Classic");
room.setScoreLimit(3);
room.setTimeLimit(3);
room.onPlayerJoin = function (player) {
updateAdmins();
room.sendAnnouncement("Hoşgeldin " + player.name + " İyi Eğlenceler. Komutlar: !adminkomutları Admin AFK ise !power Yazarak Power Haritası Açabilirsiniz.", null, 0x08ff14, 'bold', 0);
if (player.name == "Haxb27") {
room.setPlayerAdmin (player.Id, true)
}
}
room.onPlayerLeave = function (player) {
room.sendAnnouncement(player.name + " Ayrıldı", null, 0x08ff14, 'bold', 0);
}
var power = '{"name":"Power","width":420,"height":200,"spawnDistance":170,"bg":{"type":"grass","width":370,"height":170,"kickOffRadius":75,"cornerRadius":0},"playerPhysics":{"bCoef":0.5,"invMass":0.5,"damping":0.96,"acceleration":0.11,"kickingAcceleration":0.11,"kickingDamping":0.96,"kickStrength":11},"vertexes":[{"x":-370,"y":170,"trait":"ballArea"},{"x":-370,"y":64,"trait":"ballArea"},{"x":-370,"y":-64,"trait":"ballArea"},{"x":-370,"y":-170,"trait":"ballArea"},{"x":370,"y":170,"trait":"ballArea"},{"x":370,"y":64,"trait":"ballArea"},{"x":370,"y":-64,"trait":"ballArea"},{"x":370,"y":-170,"trait":"ballArea"},{"x":0,"y":200,"trait":"kickOffBarrier"},{"x":0,"y":75,"trait":"kickOffBarrier"},{"x":0,"y":-75,"trait":"kickOffBarrier"},{"x":0,"y":-200,"trait":"kickOffBarrier"},{"x":-380,"y":-64,"trait":"goalNet"},{"x":-400,"y":-44,"trait":"goalNet"},{"x":-400,"y":44,"trait":"goalNet"},{"x":-380,"y":64,"trait":"goalNet"},{"x":380,"y":-64,"trait":"goalNet"},{"x":400,"y":-44,"trait":"goalNet"},{"x":400,"y":44,"trait":"goalNet"},{"x":380,"y":64,"trait":"goalNet"},{"bCoef":1,"cMask":["ball"],"trait":"ballArea","x":-380,"y":-64},{"bCoef":1,"cMask":["ball"],"trait":"ballArea","x":-380,"y":64},{"bCoef":1,"cMask":["ball"],"trait":"ballArea","x":380,"y":-64},{"bCoef":1,"cMask":["ball"],"trait":"ballArea","x":380,"y":64},{"bCoef":1,"trait":"ballArea","x":385,"y":64,"cMask":["ball"]},{"bCoef":1,"trait":"ballArea","x":385,"y":170,"cMask":["ball"]},{"bCoef":1,"trait":"ballArea","x":385,"y":-170,"cMask":["ball"]},{"bCoef":1,"trait":"ballArea","x":385,"y":-64,"cMask":["ball"]},{"bCoef":1,"cMask":["ball"],"trait":"ballArea","x":-385,"y":64},{"bCoef":1,"cMask":["ball"],"trait":"ballArea","x":-385,"y":170},{"bCoef":1,"cMask":["ball"],"trait":"ballArea","x":-385,"y":-170},{"bCoef":1,"cMask":["ball"],"trait":"ballArea","x":-385,"y":-64}],"segments":[{"v0":0,"v1":1,"trait":"ballArea"},{"v0":2,"v1":3,"trait":"ballArea"},{"v0":4,"v1":5,"trait":"ballArea"},{"v0":6,"v1":7,"trait":"ballArea"},{"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":false,"color":"FFCCCC","bCoef":1,"trait":"ballArea","v0":24,"v1":25,"cMask":["ball"],"x":385},{"vis":false,"color":"CCCCFF","bCoef":1,"trait":"ballArea","v0":26,"v1":27,"x":385,"cMask":["ball"]},{"vis":false,"color":"FFCCCC","bCoef":1,"cMask":["ball"],"trait":"ballArea","v0":28,"v1":29,"x":-385},{"vis":false,"color":"FFCCCC","bCoef":1,"cMask":["ball"],"trait":"ballArea","v0":30,"v1":31,"x":-385},{"vis":false,"color":"FFCCCC","bCoef":1,"cMask":["ball"],"trait":"ballArea","v0":31,"v1":31}],"goals":[{"p0":[-370,64],"p1":[-370,-64],"team":"red"},{"p0":[370,64],"p1":[370,-64],"team":"blue"}],"discs":[{"pos":[-370,64],"trait":"goalPost","color":"FFCCCC","bCoef":0.5},{"pos":[-370,-64],"trait":"goalPost","color":"FFCCCC"},{"pos":[370,64],"trait":"goalPost","color":"CCCCFF"},{"pos":[370,-64],"trait":"goalPost","color":"CCCCFF"}],"planes":[{"normal":[0,1],"dist":-170,"trait":"ballArea"},{"normal":[0,-1],"dist":-170,"trait":"ballArea"},{"normal":[0,1],"dist":-200,"bCoef":0.1},{"normal":[0,-1],"dist":-200,"bCoef":0.1},{"normal":[1,0],"dist":-420,"bCoef":0.1},{"normal":[-1,0],"dist":-420,"bCoef":0.1}],"traits":{"ballArea":{"vis":false,"bCoef":1,"cMask":["ball"]},"goalPost":{"radius":8,"invMass":0,"bCoef":0.5},"goalNet":{"vis":true,"bCoef":0.1,"cMask":["ball"]},"kickOffBarrier":{"vis":false,"bCoef":0.1,"cGroup":["redKO","blueKO"],"cMask":["red","blue"]}}}'
room.onPlayerChat = function(player, message) {
if (mutedPlayers.includes(player.name)) return false;
let spacePos = message.search(" ");
let command = message.substr(0, spacePos !== -1 ? spacePos : message.length);
if (commands.hasOwnProperty(command) == true) return commands[command](player, message);
if (player.admin == true) {
adminMessage = message;
var adminChatColor = 0x22ff00;
room.sendAnnouncement ("[🏅] " + player.name + ": " + adminMessage, null, adminChatColor, 'bold', 2);
return false
}
}
room.onGameStop = function(player, message){
room.sendAnnouncement('Oyun Durdu', null, 0xff0000, 'bold', 0);
}
room.onGameStart = function(player, message){
room.sendAnnouncement('Oyun Başladı! İyi Oyunlar.', null, 0x24ad62, 'bold', 0);{
room.setTeamColors(1, 60, 0xFFFFFF, [0xFF0000, 0x770B07, 0x330000]);
}
}
function radiusFun(player, message){
if (player.admin == true){
let resultF = message.substr(8); //23-45
let playerId = resultF.split("-").slice(0);
let radiusFinal = resultF.split("-").slice(1);
room.setPlayerDiscProperties(playerId[0],{radius: radiusFinal[0]});
return false;
}
}
function avatarFun(player, message){
if (player.admin == true){
let resultF = message.substr(8); //23-45
let playerId = resultF.split("-").slice(0);
let avatar = resultF.split("-").slice(1);
room.setPlayerAvatar(playerId[0], avatar[0]);
return false;
}
}
function pushMuteFun(player, message){ // !mute Anddy
// Prevent somebody to talk in the room (uses the nickname, not the id)
// need to be admin
if (player.admin == true){
var mutedPlayer = message.substr(6);
if (!(mutedPlayers.includes(mutedPlayer))){
mutedPlayers.push(mutedPlayer);
room.sendAnnouncement('🔇 ' + mutedPlayer + ' susturuldu.', null, 0xc72a2a, 'bold', 0);
}
}
return false;
}
function gotMutedFun(player){
if (mutedPlayers.includes(player.name)){
return true;
}
}
function unmuteFun(player, message){ // !unmute Anddy
// Allow somebody to talk if he has been muted
// need to be admin
if (player.admin == true){
mutedPlayer = message.substr(8);
pos = mutedPlayers.indexOf(mutedPlayer);
mutedPlayers.splice(pos, 1);
room.sendAnnouncement('🔈 ' + mutedPlayer + ' artık yazabilir', null, 0x37a647, 'bold', 0);
}
return false;
}
function clearFun(player){
if (player.admin == true){
room.sendAnnouncement('Tüm Oyuncuların Yasağı Kaldırıldı', null, 0xff0000, 'bold', 0);
room.clearBans();
}
return false;
}
function adminHelpFun(player, message){
room.sendAnnouncement('Admin Komutları: !clearbans !mute (isim) !unmute (isim) !radiug [ID-Sayı] !changu [ID-HARF] ', null, 0x14db6e, 'bold', 0);
}
function powerFun(player, message){
room.setCustomStadium (power)
players = room.getPlayerList ();
for (i = 0; i < players.length; i++){
if (players[i].team == 0){
room.setPlayerTeam(players[i].id, 2);
}
else if (players[i].team == 2){
room.setPlayerTeam(players[i].id, 1);
}
else if (players[i].team == 1){
room.setPlayerTeam(players[i].id, 2)
}
}
}
function updateAdmins() { //no admin give someone oldest one admin
// Get all players except the host (id = 0 is always the host)
var players = room.getPlayerList().filter((player) => player.id != 0);
if (players.length == 0)
return; // No players left, do nothing.
if (players.find((player) => player.admin) != null)
return; // There's an admin left so do nothing.
room.setPlayerAdmin(players[0].id, true); // Give admin to the first non admin player in the list
}
![]() |
Notes is a web-based application for online 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 14 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