The player spawn before the dialog is being called
#1

Where should i put this
pawn Код:
if(PlayerInfo[playerid][pTut] == 0)
            {
                new Tut[] = "1\tI am male!\n2\tI am female!";
                ShowPlayerDialog(playerid, 5013,DIALOG_STYLE_LIST,"So,Are you a male or female?",Tut,"Select","Cancel");
            }
in order to make it show the player while he is still "spectating" ?
Reply
#2

Inside the callback OnPlayerConnect(playerid)
Reply
#3

OnPlayerConnect, then as soon as he connects, he will see the dialog, and only then spawn
Reply
#4

but the dialog is suposed to be seen after he login but before he spawn and if i put it in OnPlayerConnect it will be seen as soon as he connects and not after he have typed his password and login right?
Reply
#5

Quote:
Originally Posted by Don_Cage
Посмотреть сообщение
but the dialog is suposed to be seen after he login but before he spawn and if i put it in OnPlayerConnect it will be seen as soon as he connects and not after he have typed his password and login right?
Then you should make the new dialog after you check the password/login is correct, which will be still in the callback OnPlayerConnect(playerid).
Reply
#6

I put it last in onplayerconnect and it still show before i have logged in
Reply
#7

Quote:
Originally Posted by Don_Cage
Посмотреть сообщение
I put it last in onplayerconnect and it still show before i have logged in
You should put it under the dialog response where it checks if the login/password is correct or not.
Reply
#8

Could you show me on team viewer please?
Reply
#9

Put your login/password check function here, and I edit that to fit your needs.
Reply
#10

After they log in, show the dialog and when they response, spawn them.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)