05.04.2014, 10:24
Okay, I think I've got it.
You're calling case 1 before 0. It may be messing it up or, I'm not entirely sure.
Try this.
You're calling case 1 before 0. It may be messing it up or, I'm not entirely sure.
pawn Код:
switch(PlayerJustDied[playerid])
{
case 0:
{
GetPlayerPos(playerid, DeathStuff[playerid][DeathX], DeathStuff[playerid][DeathY], DeathStuff[playerid][DeathZ]);
GetPlayerFacingAngle(playerid, DeathStuff[playerid][DeathA]);
DeathStuff[playerid][DeathInt] = GetPlayerInterior(playerid);
DeathStuff[playerid][DeathHP] = 100;
for(new i = 0; i<13;i++)
{
GetPlayerWeaponData(playerid, i, DeathWeapons[playerid][i][0], DeathWeapons[playerid][i][1]);
}
PlayerJustDied[playerid] = 1;
AccountData[playerid][pHospitalized] = 0;
printf("0: Player %d is dieng | Just died? %d", playerid, PlayerJustDied[playerid]);
}
case 1:
{
PlayerJustDied[playerid] = 0;
AccountData[playerid][pHospitalized] = 1;
printf("1: Player %d is dieng | Just died? %d", playerid, PlayerJustDied[playerid]);
}
}
}
}