- 0
OnPlayerConnect
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
r0bi
Nick:r0bi
Problema:InterpolateCamera
Erori / warnings: nu am
Lini/script:[pawn]if(fexist(UserPath(playerid)))
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
GivePlayerMoney(playerid, PlayerInfo[playerid][Money]);
SetPlayerScore(playerid, PlayerInfo[playerid][Level]);
SetTimer("Log", 1, false);
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD,""COL_LIGHTBLUE"Login",""COL_GREEN"Scrie parola sa te loghezi!","Login","Quit");
}
else
{
SetTimer("Log",1,false);
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD,""COL_LIGHTBLUE"Inregistrare",""COL_GREEN"Scrie parola sa te inregistrezi","Register","Quit");
}[/pawn]
[pawn]public Log(playerid);
{
SetPlayerCameraLookAt(playerid, 1421.4001,-858.5453,81.5651);
TogglePlayerSpectating(playerid, 1);
InterpolateCameraPos(playerid, 1298.7062,-1869.2241,18.8935, 1421.4001,-858.5453,81.5651, 35000, CAMERA_MOVE);
return 1;
}[/pawn]
Ai incercat sa rezolvi singur ?:Acele dialoguri de logare le am in public OnPlayerConnect!Cum nu merge sa bag camera miscatoare in acest public am facut un timer in care am bagat functiile camerei miscatoare.Problema este urmatoarea: Daca un player este deja logat pe serv si se logheaza altul, playerului care este deja logat ii apare din nou camera.Cum as putea sa rezolv aceasta problema?
4 answers to this question
Recommended Posts