SA-MP Forums Archive
How would I do this ? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How would I do this ? (/showthread.php?tid=176677)



How would I do this ? - PinkFloydLover - 14.09.2010

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?


Re: How would I do this ? - Leeroy. - 14.09.2010

maybe use timers and move camera


Re: How would I do this ? - Voldemort - 14.09.2010

SetPlayerCameraPos always comes together with SetPlayerCameraLookAt


Re: How would I do this ? - PinkFloydLover - 14.09.2010

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


Re: How would I do this ? - Voldemort - 14.09.2010

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;
}



Re: How would I do this ? - Retardedwolf - 14.09.2010

Moving camera?


Re: How would I do this ? - PinkFloydLover - 14.09.2010

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