19.07.2011, 19:26
Well, can you guys tell me when the player remains with 0hp, I get a block (It's like freezed) but I can still move the camera, after I get unfreezed, it kills me.
ClearAnimations(playerid); // OnPlayerDeath and OnPlayerSpawn
try this
pawn Код:
|
SetPlayerToTeamColor(playerid);
if(PlayerSpital[playerid] == 1)
{
SetPlayerInterior(playerid, 0);
new rand = random(sizeof(gMedicSpawns));
SetPlayerPos(playerid, gMedicSpawns[rand][0], gMedicSpawns[rand][1], gMedicSpawns[rand][2]); // Warp the player
SetPlayerFacingAngle(playerid, 92.3221);
TogglePlayerControllable(playerid, 0);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~y~Esti in spital pentru a-ti reface ~r~ranile~y~...", 35000, 3);
ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
PlayerSpital[playerid] = 0;
SetTimerEx("ReleaseFromHospital", 30000, 0, "i", playerid);
SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
}