Skip to content

Instantly share code, notes, and snippets.

View salwador's full-sized avatar
🌴
On vacation with your sister.

kashtesov salwador

🌴
On vacation with your sister.
  • Russia, Kemerovo
View GitHub Profile
@salwador
salwador / commandHandlers.js
Created February 25, 2018 01:19
Command handler for Bully Multiplayer 0.1
`use strict`;
const registeredCommands = new Map();
global.commandHandlers = {};
////////////////////////////////
commandHandlers.add = function (command, callback) {
if (typeof command != `string` || typeof callback != `function`)
return false;
@salwador
salwador / getDate.js
Created February 24, 2018 22:41
getDate function for Bully Multiplayer 0.1.
const dayName = {
Mon: `Monday`,
Tue: `Tuesday`,
Wed: `Wednesday`,
Thu: `Thursday`,
Fri: `Friday`,
Sat: `Saturday`,
Sun: `Sunday`,
};
const colors = {
success: new RGB(0, 255, 0),
error: new RGB(255, 255, 0)
};
const commandHandle = (player, commandText) => {
if (commandText[0] != `/`)
return;
const commandWithoutSlash = commandText.substring(1);
@salwador
salwador / ragemp issue test #210.js
Created December 19, 2017 13:29
ragemp issue test #210
let shape1, shape2;
let blip1, blip2;
shape1 = mp.colshapes.newCircle(-431, 1159, 4);
blip1 = mp.blips.new(0, new mp.Vector3(-431, 1159, 326))
////////////////
mp.events.add("playerEnterColshape",
function(_, shape) {