View Single Post
  #1  
Old 12-20-2011, 11:22 PM
Equinox Equinox is offline
Registered User
Equinox's Avatar
Join Date: Jan 2011
Posts: 13
Equinox is on a distinguished road
Red face Noob Scripter Needs Help

Okay, So i found a script on the forums made by 0pix0, i was trying to find out how to use it. This is the file I'm trying to get to play.

http://dc111.4shared.com/img/1025681...00/preview.mp3
PHP Code:
function onCreated() {
  
setshape(13232);
  
setSong("default.mp3");
}

function 
onPlayerChats() {
  
temp.tokens player.chat.tokenize();
  if (
tokens[0] == "playsong") {
    if (
fileexists(tokens[1])) {
      if (
tokens[1] != this.attr[10]) {
        
setSong(tokens[1]);
      }
    }
  }
}

function 
setSong(temp.filename) {
  
this.attr[10] = filename;
  
triggeraction(this.1this.1"SongChanged"filename);
}

//#CLIENTSIDE
function onCreated() {
  
setshape(13232);
}

function 
onPlayerEnters() {
  
setSong(this.attr[10]);
}

function 
onActionSongChanged(temp.filename) {
  
setSong(filename);
}

function 
setSong(temp.filename) {
  
stopmusic();
  
playlooped(filename);

Reply With Quote