Hello guys need your help again. -
Ankon - 10.01.2016
public OnPlayerConnect(playerid)
{
GameTextForPlayer(playerid, "~w~Welcome ~g~to ~r~LSGW", 10000, 5);
PlayAudioStreamForPlayer(playerid, "http://k003.kiwi6.com/hotlink/qvm0l67c0h/10_Second_Intro_Music2.mp3");
InterpolateCameraPos(playerid, 2834.369873, -1941.860351, 74.138381, 1880.215332, -1708.051757, 93.565254, 10000);
InterpolateCameraLookAt(playerid, 2829.514404, -1940.670654, 74.237243, 1875.359985, -1706.862060, 93.664115, 1000);
return 1;
}
Here is the code....Now I need the help.. I want that for 10 seconds(10000 milliseconds) interpolate camera(I hope you know) and the music would show up....And also the text...Later it will redirect me to the onplayerrequestclass. Can anayone say me how to redirect to onplayerrequestclass
![Huh?](images/smilies/confused.gif)
?
Re: Hello guys need your help again. -
GTLS - 10.01.2016
You can use Timer bud.. SetTimer in code, which will allow you to proceed to other code after 10 seconds.
Re: Hello guys need your help again. -
OwlIT - 10.01.2016
I don't have understood a single word. Do you want an interval of 10 seconds between OnPlayerConnect and OnPlayerRequestClass? Because if you want that I don't really think that this is possible to do.
Re: Hello guys need your help again. -
GTLS - 10.01.2016
Quote:
Originally Posted by OwlIT
I don't have understood a single word. Do you want an interval of 10 seconds between OnPlayerConnect and OnPlayerRequestClass? Because if you want that I don't really think that this is possible to do.
|
i think he meant that For first 10 seconds Music plays and a Camera is set and after that time, player will spawn..
Re: Hello guys need your help again. -
Ankon - 11.01.2016
No guys.I wanted that for 10 seconds the camera will play and the sound too and then player will changeclass and then spawn...