screenselection - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: screenselection (
/showthread.php?tid=443776)
screenselection -
rockerman - 13.06.2013
How do i set a background and animation on screen selection and a music
please help me!!
Re: screenselection -
LilBob - 13.06.2013
An animation?
For the music, put in onplayerconnect
pawn Код:
PlayAudioStreamForPlayer(playerid, "music url here");
For the background, learn how to create some textdraws
Re: screenselection -
Juanxz - 13.06.2013
I think this is what you need.
pawn Код:
}
public SetupPlayerForClassSelection(playerid, classid)
{
SetPlayerPos(playerid, X,Y,Z);
SetPlayerCameraPos(playerid, X,-Y, Z);
SetPlayerCameraLookAt(playerid, X, Y, Z);
PlayerPlaySound(playerid, SoundID, X, Y, Z); //
}
What did you mean by animation? Are you talking about dancing?
If so check this
https://sampwiki.blast.hk/wiki/ApplyAnimation
On player spawn, you should probably disable the song for the player.
Re: screenselection -
rockerman - 14.06.2013
yea he dancing thanks
Re: screenselection -
rockerman - 14.06.2013
i saw some servers screenn selection infront of an dj how do i do that
Re: screenselection -
Th3b3ast5 - 14.06.2013
Quote:
Originally Posted by rockerman
i saw some servers screenn selection infront of an dj how do i do that
|
Basically When a Player connects, it sends them to a coordinate, now if you would like the DJ Spectating Coordinate, then you would simply change where it would SetPlayerPos, which is what you look at before you log in.
Sorry If I am wrong, just learned that today.
Re: screenselection -
rockerman - 14.06.2013
how
Re: screenselection -
Juanxz - 14.06.2013
For example...when the player is set up for class selection, you would add something like the below animation.
Something similar to the DJ would be chat.
pawn Код:
ApplyAnimation(playerid,"PED","IDLE_CHAT",1.800001, 1, 1, 1, 1, 13000);
Make sure you turn off the anim on spawn.
pawn Код:
ClearAnimations(playerid);
Check this as well:
https://sampwiki.blast.hk/wiki/ApplyAnimation