05.04.2014, 09:31
pawn Код:
if (PlayerJustDied[playerid] == 1)
{
SetPlayerPos(playerid, DeathStuff[playerid][DeathX], DeathStuff[playerid][DeathY], DeathStuff[playerid][DeathZ]);
SetPlayerInterior(playerid, DeathStuff[playerid][DeathInt]);
SetPlayerFacingAngle(playerid, DeathStuff[playerid][DeathA]);
SetPlayerSkin(playerid, AccountData[playerid][pSkin]);
DeathStuff[playerid][DeathHP] = 100;
displayCenterHUDInfo(playerid, "~r~Injured~n~~w~/accept death or /service ems", 8);
SetPlayerArmour(playerid, 0.0);
SetPlayerHealth(playerid, 100.0);
ClearAnimations(playerid);
PlayerJustDied[playerid] = 0;
ApplyAnimation(playerid, "KNIFE", "KILL_Knife_Ped_Die",4.0,0,1,1,1,0,1);
for(new i = 0;i<13;i++)
{
GivePlayerValidWeapon(playerid, DeathWeapons[playerid][i][0], DeathWeapons[playerid][i][1]);
}
SetTimerEx("DeathTimer", 1000, false, "i", playerid);
return 1;
}