23.05.2015, 09:16
I haave this code for hospital and the animation is not working
pawn Код:
TogglePlayerControllable(playerid, 0);
SetPlayerVirtualWorld(playerid, playerid);
SetPlayerInterior(playerid, 18);
SetPlayerPos(playerid, -219.265029,1410.590087,28.8);
ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
SetPlayerCameraPos(playerid, -220.265029,1410.590087,28.2);
SetPlayerCameraLookAt(playerid, -219.265029,1410.590087,28.0);
KillTimer(gHospitalTimer[playerid]);
PlayerHospitalized[playerid] = 1;
SendClientMessage(playerid, COLOR_LIGHTRED, "You have been killed and must spend some time in the hospital recovering.");
gHospitalTimer[playerid] = SetTimerEx("OnPlayerSpawn", 60000, 0, "d", playerid);
return 1;