![]() |
song only heard by me
here is what i scripted but why am i the only one to hear it?
is there a prob? I just want it to be heard from all peepz thx //#CLIENTSIDE function onCreated(){ timeout=.1; } function onTimeout(){ play stef12.mid; timeout=.1; } |
Quote:
Big issue of GS1 and GS2 mixup Now if you want everyone to hear it a simple way to do this is by a class(not the best but its simple) (I try to give simple answers not most efficient. Someone feel free to correct me) Put this in a level. PHP Code:
PHP Code:
|
You might be crazy
|
or you just make it serverside instead of clientside?
|
Quote:
|
What's wrong with:
PHP Code:
(though I'd personally use a class to handle stuff such as whether the player has chosen an option to disable music or prefers an MP3 to be played instead where applicable) |
I knew you were messing with him, xD
|
Quote:
I'd prefer a tokenized serverflag for optimization of music. |
Quote:
PHP Code:
Quote:
Quote:
Quote:
|
Also, remember not all (if any?) mac and linux users can hear midi files.
|
mhm thx fro correting my scipt but i don't get it when you talk about the 'class'. should i put
function onCreated() { this.join("classname"); } in the level or in the 'class' folder in the rc? |
The
PHP Code:
The other part is the class which you have to put into the Script Editor. |
Quote:
PHP Code:
|
thx cbk1994 you were right and for all the others you don't need to create a class.
PHP Code: //#CLIENTSIDE function onPlayerEnters(){ playlooped("stef12.mid"); } is the easier way to have it. but if it doesnt work just go on folderconfig then allow the server to read .mid and .mp3 files ;) |
All times are GMT +2. The time now is 09:03 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.