Jump to content

Welcome to NulledBlog
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. If you already have an account, login here - otherwise create an account for free today!
Photo

[REC] Network V2 Sounds


  • Please log in to reply
11 replies to this topic

#1
jaspernl

  • Offline
  • Member

  • Posts:
    26
    Reputation:
    0
    Joined:
    28 Apr, 2016

Hello, and sorry if im in the wrong sction, and if i am post the link of the correct one for this don't happend again.

 

If not, can someone tell me how to add sound to Network V2 when one user deposit items it make a sound for everyone

 

Thanks.


  • 0

#2
ratexindex

  • Offline
  • pm2 start brain.js

  • Posts:
    208
    Reputation:
    42
    Joined:
    24 Sep, 2015

prog1.php

Please Login or Register to see this Hidden Content

script.js

 

Please Login or Register to see this Hidden Content


  • 1

DONT MESSAGE ME PRIVATE !!! Add Spin / Roll Animation to your own Betting Site  Add new Pages in v2 + Step by Step DONT MESSAGE ME PRIVATE !!!


#3
jaspernl

  • Offline
  • Member

  • Posts:
    26
    Reputation:
    0
    Joined:
    28 Apr, 2016

 

prog1.php

Please Login or Register to see this Hidden Content

script.js

 

Please Login or Register to see this Hidden Content

 

 

Thanks i was almost there, my problem was bets = 0; and not $cs not it's working thanks!!

 

Dude you are the best ahah


  • 0

#4
ratexindex

  • Offline
  • pm2 start brain.js

  • Posts:
    208
    Reputation:
    42
    Joined:
    24 Sep, 2015

Kappa sorry for no reply in private messages to huge questions all time :D


  • 0

DONT MESSAGE ME PRIVATE !!! Add Spin / Roll Animation to your own Betting Site  Add new Pages in v2 + Step by Step DONT MESSAGE ME PRIVATE !!!


#5
jaspernl

  • Offline
  • Member

  • Posts:
    26
    Reputation:
    0
    Joined:
    28 Apr, 2016

Kappa sorry for no reply in private messages to huge questions all time :D

 

No problem ahah i imagine, because you know many things xD


  • 0

#6
marc69

  • Offline
  • Advanced Member

  • Posts:
    104
    Reputation:
    5
    Joined:
    19 Jul, 2015
<?php
@include_once('link.php');
@include_once('steamauth/steamauth.php');
 
$cg = fetchinfo("value","info","name","current_game");
$ms = fetchinfo("value","info","name","maxritem");
$cs = fetchinfo("itemsnum","games","id",$cg);
 
$percent = $cs / $ms *100;
echo'<div class="progress progress-lg m-b-5" style="background: #222222!important; height: 40px!important; width: 100%; margin: 0 auto; ">
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="0" style="width: '.$percent.'%; padding: 10px!important;  font-size: 25px; ">
<span class="">'.$cs.'/'.$ms.'</span>
</div>
    </div>';
echo "<script>$(document).ready(function(){ if(bets < $cs) { audioElement2.play();} bets = $cs;})</script>";
    /*
BETA TESTING CIRCLE
    echo '
    <div class="c100 p25 big dark m-b-5" text-center>
  <span>'.$cs.'/'.$ms.'</span>
  <div class="slice">
    <div class="bar"></div>
    <div class="fill"></div>
  </div>
</div>
 
    ';*/
?>
 
 
not work can help?

  • 0

#7
jaspernl

  • Offline
  • Member

  • Posts:
    26
    Reputation:
    0
    Joined:
    28 Apr, 2016

 

<?php
@include_once('link.php');
@include_once('steamauth/steamauth.php');
 
$cg = fetchinfo("value","info","name","current_game");
$ms = fetchinfo("value","info","name","maxritem");
$cs = fetchinfo("itemsnum","games","id",$cg);
 
$percent = $cs / $ms *100;
echo'<div class="progress progress-lg m-b-5" style="background: #222222!important; height: 40px!important; width: 100%; margin: 0 auto; ">
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="0" style="width: '.$percent.'%; padding: 10px!important;  font-size: 25px; ">
<span class="">'.$cs.'/'.$ms.'</span>
</div>
    </div>';
echo "<script>$(document).ready(function(){ if(bets < $cs) { audioElement2.play();} bets = $cs;})</script>";
    /*
BETA TESTING CIRCLE
    echo '
    <div class="c100 p25 big dark m-b-5" text-center>
  <span>'.$cs.'/'.$ms.'</span>
  <div class="slice">
    <div class="bar"></div>
    <div class="fill"></div>
  </div>
</div>
 
    ';*/
?>
 
 
not work can help?

 

 

have you added this: in your script.js
 

Please Login or Register to see this Hidden Content

if yes check the file locations because that should work


Edited by jaspernl, 03 May 2016 - 06:17 PM.

  • 0

#8
M4gik

  • Offline
  • Member

  • Posts:
    57
    Reputation:
    5
    Joined:
    24 Aug, 2015

 

<?php
@include_once('link.php');
@include_once('steamauth/steamauth.php');
 
$cg = fetchinfo("value","info","name","current_game");
$ms = fetchinfo("value","info","name","maxritem");
$cs = fetchinfo("itemsnum","games","id",$cg);
 
$percent = $cs / $ms *100;
echo'<div class="progress progress-lg m-b-5" style="background: #222222!important; height: 40px!important; width: 100%; margin: 0 auto; ">
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="0" style="width: '.$percent.'%; padding: 10px!important;  font-size: 25px; ">
<span class="">'.$cs.'/'.$ms.'</span>
</div>
    </div>';
echo "<script>$(document).ready(function(){ if(bets < $cs) { audioElement2.play();} bets = $cs;})</script>";
    /*
BETA TESTING CIRCLE
    echo '
    <div class="c100 p25 big dark m-b-5" text-center>
  <span>'.$cs.'/'.$ms.'</span>
  <div class="slice">
    <div class="bar"></div>
    <div class="fill"></div>
  </div>
</div>
 
    ';*/
?>
 
 
not work can help?

 

 

Kappa sorry for no reply in private messages to huge questions all time :D

Not working you can help?


  • 0

#9
marc69

  • Offline
  • Advanced Member

  • Posts:
    104
    Reputation:
    5
    Joined:
    19 Jul, 2015

have tihs code on script.js

 

var audioElement = document.createElement('audio');

audioElement.setAttribute('src', 'audio/msg.mp3');
var audioElement2 = document.createElement('audio');
audioElement2.setAttribute('src', 'audio/audio.mp3');
var audioElement3 = document.createElement('audio');
audioElement3.setAttribute('src', 'audio/open.wav');
 
audioElement3 is work is for game is finish and scroll players image.

  • 0

#10
ratexindex

  • Offline
  • pm2 start brain.js

  • Posts:
    208
    Reputation:
    42
    Joined:
    24 Sep, 2015

i can not say more as look my posts otherwise you make normal scripts wrong.

 

if you need to learn basics look inside YouTube


  • 0

DONT MESSAGE ME PRIVATE !!! Add Spin / Roll Animation to your own Betting Site  Add new Pages in v2 + Step by Step DONT MESSAGE ME PRIVATE !!!



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users