13.02.2012, 04:12
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.
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.
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;
}