09.07.2015, 17:21
(
Последний раз редактировалось iTakelot; 10.07.2015 в 02:07.
)
Fiz este codigo para quando o player estiver fazendo login aparecer 4 lugares do servidor porйm so mostra primeiro lugar e os outros 4 nгo carregam.
Topo
Topo
PHP код:
forward CameraLogin(playerid);
PHP код:
public OnPlayerConnect(playerid)
{
SetTimerEx("CameraLogin", 100, false, "i", playerid);
return 1;
}
pawn Код:
public CameraLogin(playerid)
{
TogglePlayerSpectating(playerid, true);
new opening = random(3);
switch(opening)
{
case 0:
{
InterpolateCameraPos(playerid, 542.343933, -1901.457519, 2.008791, 544.523376, -1901.883666, 2.085470, 5000,CAMERA_MOVE);
InterpolateCameraLookAt(playerid, 544.995666, -1897.256958, 2.577868, 546.892395, -1897.521118, 2.681705, 5000,CAMERA_MOVE);
}
case 1:
{
InterpolateCameraPos(playerid, 542.343933, -1901.457519, 2.008791, 544.523376, -1901.883666, 2.085470, 5000,CAMERA_MOVE);
InterpolateCameraLookAt(playerid, 544.995666, -1897.256958, 2.577868, 546.892395, -1897.521118, 2.681705, 5000,CAMERA_MOVE);
}
case 2:
{
InterpolateCameraPos(playerid, 542.945800, -1863.699707, 4.435829, 539.996215, -1863.695556, 4.304386, 5000,CAMERA_MOVE);
InterpolateCameraLookAt(playerid, 537.950744, -1863.694213, 4.213245, 535.009887, -1863.990478, 4.081802, 5000,CAMERA_MOVE);
}
}
return 1;
}