How would I do this ?
#1

Okay, for a while now I have had my dialog register thing pop up when a player connects but it's kinda boring, so i've tried to make a different background during the dialog, Ive tried putting SetPlayerCameraPos under OnPlayerConnect but that doesn't work. anyone tell me how to get this to work?
Reply
#2

maybe use timers and move camera
Reply
#3

SetPlayerCameraPos always comes together with SetPlayerCameraLookAt
Reply
#4

yes I have already tried a timer and i am using SetPlayerCameraLookAt, i should of mentioned that
Reply
#5

Put camera and lookat under Requestclass...

Example from my script
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    PreloadAnimLib(playerid,"INT_HOUSE");
    PreloadAnimLib(playerid,"PLAYIDLES");
    PreloadAnimLib(playerid,"MISC");
    PreloadAnimLib(playerid,"BOMBER");
    PreloadAnimLib(playerid,"CRACK");
    if(IsPlayerLoggedIn[playerid] == 0)
    {
        PlayerPlaySound(playerid, 1185, 0.0, 0.0, 0.0);
        SendEmptyLine(playerid,10);
        if(HaveAccount[playerid] == 1)
        {
            ShowPlayerDialog(playerid,LOGINDIALOG,DIALOG_STYLE_INPUT,"LOGIN","Please enter your password.","Login","Quit");
        }
        else
        {
            ShowPlayerDialog(playerid,REGISTER1DIALOG,DIALOG_STYLE_INPUT,"REGISTRATION","Please enter your password.","Register","Quit");
        }
        SetPlayerCameraPos(playerid,-2525.73,1407.38,74.88);
        SetPlayerCameraLookAt(playerid,-2669.00,1593.42,117.58);
        SetPlayerPos(playerid,-2525.73,1407.38,-10.88);
        return 1;
    }
    else if(IsPlayerLoggedIn[playerid] == 1)
    {
        SetPlayerCameraPos(playerid,925.7447,2560.0095,12.8203);
        SetPlayerCameraLookAt(playerid,967.5850,2572.6396,12.6806);
        SetSpawnInfo(playerid,Pinfo[playerid][Team],Pinfo[playerid][Skin],0,0,0,0,0,0,0,0,0,0);
        SpawnPlayer(playerid);
        return 1;
    }
    return 1;
}
Reply
#6

Moving camera?
Reply
#7

Okay, i fixed it, i set a timer of 1 second instead of 5 seconds, then on the timer i had the register and login menu pop up and the camera change, thanks alot guys
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)