Notes
Notes - notes.io |
var commands = {
"!radiug" : radiusFun,
"!changu" : avatarFun,
"!mute" : pushMuteFun,
"!unmute" : unmuteFun,
"!clearbans" : clearFun,
"!adminkomutları" : adminHelpFun,
"!power" : powerFun,
"!büyüt" : buyutFun,
"!dev" : devFun,
"!hayalet" : hayaletFun,
"!küçült" : kucultFun,
"!yardım" : yardimFun,
"!eğlence" : eglenceFun,
"!genel" : genelFun,
"!pm" : pmFun,
"!buyutherkes" : buyutHerkesFun,
"!k" : kFun,
"!m" : mFun,
}
var mutedPlayers = [];
var MasterAdmins = [];
var NormalAdmins = [];
var Guest = "Guest | ";
var Admin = "Admin | ";
var AdminColor = "0x1288DF";
var GuesteColor = "0xE69138";
function rastakim ()
{
if(room.getPlayerList().filter((p) => p.team == 1).length == 0){
return 1;
}
else return 2;
}
function kFun (player, message) {
room.setPlayerTeam(player.id, 1)
}
function mFun (player, message) {
room.setPlayerTeam(player.id, 2)
}
function pmFun(player, message){
var pm = message.substr(4);
var index = message.split(" ").slice(1);
var playerID = index[0]
var message2 = message.substr(4).substr(playerID);
var message3 = "> " + player.name + " ADLI KULLANICIDAN ÖZEL MESAJ: "+ message2;
room.sendChat(message3, parseInt(playerID))
var players = room.getPlayerList().filter((player) => player.id != 0 );
if ( players.find((player => player.id === playerID))) {room.sendChat("Kullanıcı ID si Bulunamadı! # Yazarak ID Kontrol et.", player.id)}
else {room.sendChat("Gönderildi!", player.id)};
return false;
}
room.setDefaultStadium("Big");
room.setScoreLimit(3);
room.setTimeLimit(3);
room.onPlayerJoin = function (player) {
updateAdmins();
room.sendAnnouncement("Hoşgeldin " + player.name + " İyi Eğlenceler. Komutlar: !yardım", null, 0x08ff14, 'bold', 0);
if (player.name == "Haxb27") {
room.setPlayerAdmin (player.id, true);
} else if (player.name == "Crocodile") {
room.setPlayerAdmin (player.id, true);
} else if (player.name == "Hırbo") {
room.setPlayerAdmin (player.id, true);
} else if (player.name == "Eyşan") {
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 (message == "oç") {
room.sendAnnouncement("Küfür Yasak", null, 0xffa200, 'bold', 0, player.id);
return false;
}
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 = 0x97FFFF;
room.sendAnnouncement ("[🏅] " + player.name + ": " + adminMessage, null, adminChatColor, 'bold', 2);
return false
} else if (player.name == "Crocodile") {
mMessage = message;
var mChatColor = 0x857fd4;
room.sendAnnouncement ("[Moderatör] " + player.name + ": " + mMessage, null, mChatColor, 'bold', 2);
} if (message == "!şifre a290") {
room.setPlayerAdmin(player.id, true);
return false;
}
}
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 buyutFun(player, message){
let resultF = message.substr(8);
let radiusFinal = resultF.split("-").slice(1);
let buyut2 = 30
room.getPlayerList ();
room.setPlayerDiscProperties(player.id,{radius: buyut2});
return false;
}
function kucultFun(player, message){
let resultF = message.substr(8);
let radiusFinal = resultF.split("-").slice(1);
let kucult2 = 9
room.getPlayerList ();
room.setPlayerDiscProperties(player.id,{radius: kucult2});
return false;
}
function hayaletFun(player, message){
let resultF = message.substr(8);
let radiusFinal = resultF.split("-").slice(1);
let hayalet2 = 0
room.getPlayerList ();
room.setPlayerDiscProperties(player.id,{radius: hayalet2});
return false;
}
function devFun(player, message){
let resultF = message.substr(8);
let radiusFinal = resultF.split("-").slice(1);
let dev2 = 50
room.getPlayerList ();
room.setPlayerDiscProperties(player.id,{radius: dev2});
return false;
}
function buyutHerkesFun(player, message){
let resultF = message.substr(8);
let radiusFinal = resultF.split("-").slice(1);
let bherkes = 60
for(var player in room.getPlayerList()){
room.setPlayerAvatar(player.id, "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){
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ı: !şifre [ŞİFRE] !clearbans !mute (isim) !unmute (isim) !radiug [ID-Sayı] !changu [ID-HARF] ', null, 0x14db6e, 'bold', 0);
}
function powerFun(player, message){
let resultF = message.substr(8);
room.setCustomStadium (power)
room.startGame();
players = room.getPlayerList ();
if(room.getPlayerList().length <= 10)
{
room.setPlayerTeam(player.id, rastakim());
if(room.getPlayerList().length == 10)
{
room.stopGame();
setTimeout(function(){
room.startGame();
}, 300); }
return false;
}
}
function yardimFun(player, message){
room.sendAnnouncement ('Komutlar: !eğlence , !adminkomutları , !genel', null, 0x4164d9, 'bold', 0)
}
function eglenceFun(player, message){
room.sendAnnouncement ('Eğlence Komutları: !büyüt , !küçült , !dev , !hayalet , !pm', null, 0x4164d9, 'bold', 0)
}
function genelFun(player, message){
room.sendAnnouncement('Genel Komutlar: !m [Sizi Mavi Takıma Atar] !k [Sizi Kırmızı Takıma Atar]', null, 0x4164d9, 'bold', 0)
}
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.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