SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 10/01/2016, 02:56 PM   #1
Ankon
Little Clucker
 
Join Date: May 2015
Posts: 37
Reputation: 0
Question Hello guys need your help again.

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?
__________________
Ankon is offline   Reply With Quote
Old 10/01/2016, 03:44 PM   #2
GTLS
High-roller
 
GTLS's Avatar
 
Join Date: Aug 2014
Location: India
Posts: 1,071
Reputation: 119
Default Re: Hello guys need your help again.

You can use Timer bud.. SetTimer in code, which will allow you to proceed to other code after 10 seconds.
__________________

I don't help for rep. I help cuz I was helped in the past.


Retired from SAMP Scene. Might open SAMP Forums once in a while.

Some treats for ya. Click em
Basic House System
Simple Speedo
Base Login/Register Script

GTLS is offline   Reply With Quote
Old 10/01/2016, 03:48 PM   #3
OwlIT
Little Clucker
 
Join Date: Jul 2015
Posts: 27
Reputation: 1
Default Re: Hello guys need your help again.

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.
OwlIT is offline   Reply With Quote
Old 10/01/2016, 03:53 PM   #4
GTLS
High-roller
 
GTLS's Avatar
 
Join Date: Aug 2014
Location: India
Posts: 1,071
Reputation: 119
Default Re: Hello guys need your help again.

Quote:
Originally Posted by OwlIT View Post
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..
__________________

I don't help for rep. I help cuz I was helped in the past.


Retired from SAMP Scene. Might open SAMP Forums once in a while.

Some treats for ya. Click em
Basic House System
Simple Speedo
Base Login/Register Script

GTLS is offline   Reply With Quote
Old 11/01/2016, 02:00 AM   #5
Ankon
Little Clucker
 
Join Date: May 2015
Posts: 37
Reputation: 0
Default Re: Hello guys need your help again.

No guys.I wanted that for 10 seconds the camera will play and the sound too and then player will changeclass and then spawn...
__________________
Ankon is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help Me Guys! TwisTa98 Scripting Help 0 07/11/2013 03:26 PM
Help Me Guys Venice Help Archive 8 16/04/2011 02:57 AM
Little help, guys ? [CrC]reinixx Help Archive 4 08/04/2011 08:26 AM


All times are GMT. The time now is 01:50 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.