22.10.2013, 14:12
Hello, I created an intro for my server. In the end there is an animation but it isn't applying. Why?
pawn Код:
public OnFadeComplete(playerid,beforehold)
{
if (beforehold)
{
if (introstop[playerid] == 2)
{
TogglePlayerSpectating(playerid, 0);
TogglePlayerControllable(playerid, 1);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 1900.3048,-1600.3887,13.5526);
SetPlayerFacingAngle(playerid, 276.2729);
ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.1, 1, 0, 0, 0, 0, 1);
SetPlayerCameraPos(playerid, 1893.487548, -1602.461914, 19.122800);
SetPlayerCameraLookAt(playerid, 1896.553955, -1601.187622, 16.892684);
FadeColorForPlayer(playerid, 0, 0, 0, 255, 0, 0, 0, 0, 25, 0);
SCM(playerid, COLOR_YELLOW, "Дrkasid mдluauguga tдnaval ning kьsid endalt mхttes \"Mis juhtus?\".");
introstop[playerid] = 0;
}
else SetCameraBehindPlayer(playerid);
}
return 1;
}