screenselection
#1

How do i set a background and animation on screen selection and a music


please help me!!
Reply
#2

An animation?

For the music, put in onplayerconnect
pawn Код:
PlayAudioStreamForPlayer(playerid, "music url here");
For the background, learn how to create some textdraws
Reply
#3

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.
Reply
#4

yea he dancing thanks
Reply
#5

i saw some servers screenn selection infront of an dj how do i do that
Reply
#6

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.
Reply
#7

how
Reply
#8

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)