#1

Код:
CMD:water(playerid, params[])
{
	for(new i=0; i<sizeof(WaterPos); i++)
	{
	    if(IsPlayerInRangeOfPoint(playerid, 2, WaterPos[i][0], WaterPos[i][1], WaterPos[i][2]))
	    {
	        new Float:health = GetPlayerHealth(playerid, health);
	        
	        if(health == 100.0)
	            return SendClientMessage(playerid, FactColor[11], "You already have 100 health !");
	            
	        SetPlayerHealth(playerid, 100.0);
	        SendClientMessage(playerid, FactColor[11], "You have been fully healed !");
		}
		else if(!IsPlayerInRangeOfPoint(playerid, 2, WaterPos[i][0], WaterPos[i][1], WaterPos[i][2]))
  			return SendClientMessage(playerid, FactColor[11], "You are not at the right place !");
	}
        
	return 1;
}
Why when i'm in range of that point it say to me "You are not at the right place" ? (Sometime it give me heal, sometime just that stupid message ... when it give me health spam my chat with ""You are not at the right place !" i-1 times ...
Reply


Messages In This Thread
Why - by Mariciuc223 - 26.07.2015, 13:22
Re: Why - by Vince - 26.07.2015, 13:27
Re: Why - by SoFahim - 26.07.2015, 13:32
Re: Why - by Mariciuc223 - 26.07.2015, 13:32
Re: Why - by Mariciuc223 - 26.07.2015, 13:35
Re: Why - by SoFahim - 26.07.2015, 13:42
AW: Why - by Macronix - 26.07.2015, 13:49
Re: AW: Why - by Mariciuc223 - 26.07.2015, 14:58

Forum Jump:


Users browsing this thread: 2 Guest(s)