A little problem for my noobness.
#1

I would like to ask how to change my server backround when you change your class. Also, I like to ask how to put musics too. Because when I am putting a Steam, it sounds like a crap and I dont know how to fix it so I want to ask what is the easier way to put music. I seen wiki and ive done it but nothing works.
Reply
#2

This stuff should go into the scripting help section eh..

Anyways for the 'server background' you mentioned, you would probably want to use a combination of public OnPlayerRequestClass and SetPlayerCameraPos/SetPlayerCameraLookAt. For example
Код:
//Not actual working code, just guidelines on one way to handle it
public OnPlayerRequestClass(playerid,classid)
{
    if(classid == 0)
    {
        SetPlayerCameraPos(playerid, x, y, z);
        SetPlayerCameraLookAt(playerid, x, y, z);
    }
    if(classid == 1)
    {
         SetPlayerCameraPos(playerid, otherx, othery, otherz);
         SetPlayerCameraLookAt(playerid, anotherx, anothery, anotherz);
     }
     //And so on

     return 1;
}
For music, the PlayAudioStreamForPlayer should do fine. You should make sure that the quality of the audio file is good. I don't know if Internet connection changes anything to the quality, although I would expect a slow Internet connection to affect quality in a negative way (don't kill me over this, I am unsure about this one).
You could also try to use the audio plugin by Incognito, however I'm not sure if it still works with 0.3.7 (one way to find out ). Please do note that your players have to install the client side plugin to be able to hear audio from this plugin.

Good luck, and try to post in the correct section hehe :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)