![]() |
Scripting problem! Help needed!
Ok, So I scripted a car on my server and it works fine. I have a script to where if you press "f", it will play the horn noise I made. here is the script.
function onKeyPressed() { if (keydown2(getkeycode("f"), true)) { playlooped carhorn-1.wav; } } I hear it fine, But I ask other people if they hear it, and they dont. How can I make this to where others can hear my horn noise to? Please help. thanks -jamerson |
Just make sure the sound is in the file browser of your server (Remote Control) so others can load it, else it would just play from your own folder.
Oh and please, stop making threads about songs only x_x |
So I upload the .wav file into the sounds folder and it should work?
|
Well, the sound is played on the clientside, thus making it only hearable for the current player. You can mess around with play2(file, x, y, volume) or something like that, or look into using a gani
|
Of course, that's what the file browser from your remote control is for, you upload the file you want to use so others get it and can perfectly see/hear it
|
Check out the GraalBible (Or http://wiki.graal.us/Index), there's alot of useful information in there you'll need. The link is in my signature. :)
|
Quote:
PHP Code:
|
Quote:
|
no @ zeek- still that's clientside.
as Chompy said, use a gani attr. :) |
Quote:
|
nope @ alexandralove
it's the script he's using, if it were in a gani then everyone can hear it [as a gani is on everyones computer] but as he's using that script in a weapon he can only hear what he triggers |
Quote:
Quote:
|
All times are GMT +2. The time now is 11:33 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.