How can i make when player still have only 10 hp to say hi :)?
#3

pawn Код:
public OnPlayerUpdate(playerid)
{
    new Float:health;
    GetPlayerHealth(playerid,health);
    if (health < 10.0)
    {
        SendClientMessage(playerid, COLOR_RED, "Hi."); //Sending the message
        SetPlayerHealth(playerid, 11); //Setting hp to 11 so it wont spam him with the message
    }
    return 1;
}
Reply


Messages In This Thread
How can i make when player still have only 10 hp to say hi :)? - by Kapone21 - 07.09.2013, 23:00
Re: How can i make when player still have only 10 hp to say hi :)? - by Scenario - 07.09.2013, 23:13
Re: How can i make when player still have only 10 hp to say hi :)? - by SeniorGamer - 08.09.2013, 02:42

Forum Jump:


Users browsing this thread: 2 Guest(s)