23.11.2013, 10:42
pawn Код:
public CheckPlayerInBank(playerid)
{
new playerInteriorBank;
playerInteriorBank = GetPlayerInterior(playerid);
if(playerInteriorBank!=2)
{
SendClientMessageToAll(COLOR_HOTORANGE, "The man who attempted to rob the bank has failed to do so,as he quit the bank.");
bankBeingRobbed=0;
}
else if(GetPlayerHealth(playerid)==0.0)//THIS LINE
{
SendClientMessageToAll(COLOR_HOTORANGE, "The man who attempted to rob the bank has failed to do so,as he has been killed");
bankBeingRobbed=0;
}
return 1;
}
But it's an if statement?