Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var gamblerArray = [];
- var countGam = 0;
- function contains(a) {
- var index = gamblerArray.indexOf('984615');
- if (index > -1) {
- gamblerArray.splice(index, 1);
- }
- if (gamblerArray.length >= 11) {
- gamblerArray.shift();
- if (countGam == 0) {
- countGam = 1;
- chat('/pm 98066 Gambler array populated');
- }
- }
- if (gamblerArray.indexOf(a) != -1) {
- //console.log(gamblerArray);
- } else {
- gamblerArray.push(a);
- //console.log('Added ' + a);
- }
- }
- socket.on("result", function (data) {
- var bet = parseFloat(data.bet).toFixed(8);
- if (bet > 0) {
- contains(data.uid);
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement