11.06.2014, 08:07
So I have heal command and I have upgrader armour to the house and when I was in the house it says no availbe upgrades
here is the code
here is the code
pawn Код:
if(h != -1)
{
if(IsPlayerInRangeOfPoint(playerid,20.0,HouseInfo[h][hexitX],HouseInfo[h][hexitY],HouseInfo[h][hexitZ]))
{
if(HouseInfo[h][hHel] == 1)
{
new Float:tempheal;
GetPlayerHealth(playerid,tempheal);
if(tempheal < 99.0)
{
SetPlayerHealth(playerid,99.0);
format(string,sizeof(string),"*You are healed.");
SendClientMessage(playerid,COLOR_BIJELA,string);
}
else SendClientMessage(playerid,COLOR_GRAD2,"{F81414}[Greska!] {C3C3C3}You are already healed!");
return 1;
}
if(HouseInfo[h][hArm] == 1 && !IsACop(playerid))
{
new Float:armour;
GetPlayerArmour(playerid,armour);
if(armour < 99.0)
{
SetPlayerArmour(playerid,99.0);
format(string,sizeof(string),"*You get armour.");
SendClientMessage(playerid,COLOR_BIJELA,string);
}
else SendClientMessage(playerid,COLOR_GRAD2,"{F81414}[Greska!] {C3C3C3}You already have armour!");
return 1;
}
else return SCM(playerid,COLOR_GRAD2,"{F81414}[Greska!] {C3C3C3}No availble upgrades!");
}
}