Anteik
Умник
Код:
Переменная уходит в 0, но не выпускает.Почему так?
Код:
if(pickupid == medicss[3]) {
if(PlayerInfo[playerid][pBolnica] == 0)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1176.2983,-1323.4597,14.0144);
SetPlayerFacingAngle(playerid, 270.0000);
SetPlayerVirtualWorld(playerid, 0);
}
}
Код:
forward BHP(playerid);public BHP(playerid)
{
new Float:health;
GetPlayerHealth(playerid, health);
if(health <= 40)
{
if(PlayerToPoint(4.0,playerid,1121.5546,-1305.6279,-11.7640) || PlayerToPoint(4.0,playerid,1131.0553,-1295.6064,-11.7640) ||
PlayerToPoint(4.0,playerid,1131.5852,-1315.9508,-11.7640) || PlayerToPoint(4.0,playerid,1140.4398,-1296.3145,-11.7555) || PlayerToPoint(4.0,playerid,1140.7677,-1315.1128,-11.7640))
{
SendClientMessage(playerid, COLOR_GREY,"{ffffff}Доктор: Вы идете на поправку{ff0000}(( +2 hp ))");
SetPlayerHealthAC(playerid, health + 2.0);
}
if(health >= 40)
{
PlayerInfo[playerid][pBolnica] = 0;
KillTimer(bol);
}
}
return true;
}
