31.01.2013, 22:19
Ok i added this and the player still gets teleported back to the place without an animation nor getting frozen.
pawn Код:
if(Dead[playerid] == 1 && PlayerInfo[playerid][pJailed] == 0)
{
new Float:pX, Float:pY, Float:pZ;
GetPlayerPos(playerid, pX, pY, pZ);
DeathPosX[playerid] = pX;
DeathPosY[playerid] = pY;
DeathPosZ[playerid] = pZ;
SetCameraBehindPlayer(playerid);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
ClearAnimations(playerid);
LoopingAnim(playerid,"PED","KO_skid_front",4.1,0,1,1,1,0);
TogglePlayerControllable(playerid, 0);
SetPlayerHealth(playerid, 25.00);
SendClientMessage(playerid, COLOR_RED, "You are dying, Type /acceptdeath or wait for a medic.");
IsDead[playerid] = 1;
return 1;
}