SetPlayerCameraLookAt/Pos Bug?
#1

Hello. I've implemented a login/register system with dialogs on my server. So under my OnPlayerConnect I decided to add something more cinematic than that plain ocean so this is my code.

pawn Код:
public OnPlayerConnect(playerid)
{
    SetPlayerCameraPos(playerid,1419.8225,-882.1562,50.2923);
    SetPlayerCameraLookAt(playerid,1415.6835,-807.9233,85.0602);
    if(fexist(UserPath(playerid)))
    {
        INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
        ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_WHITE"Type your password below to login.","Login","Quit");
       
    }
    else
    {
        ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COL_WHITE"Registering...",""COL_WHITE"Type your password below to register a new account.","Register","Quit");
    }
    return 1;
}
It compiles perfectly, it's just that when I connect, SetPlayerCameraPos/LookAt isn't doing what it's supposed to be doing. Any idea on what I'm doing wrong? This is driving me nuts.
Reply
#2

Bump, anyone?
Reply
#3

try to put
pawn Код:
SetPlayerPos(playerid, pos,pos,pos):
under the
pawn Код:
SetPlayerCameraLookAt(playerid,1415.6835,-807.9233,85.0602);
Reply
#4

Didn't work.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)