Need some help on loop
#2

on top
Код:
new timer1;
( OnGameModeInit )
Код:
timer1 = SetTimer("MyCheckingFunction", 5000, true);
Код:
forward MyCheckingFunction(playerid);
public MyCheckingFunction(playerid)
{
    if (PlayerInfo[playerid][prodshp] == 1)
    {
        if(GetPlayerHealth(i))
        {
            new Float:health;
            GetPlayerHealth(playerid,health);
            if (health < 10.0)
            {
                (PlayerInfo[playerid][prodshp] == 0)
                SendClientMessage(playerid, COLOR_GREEN, "Don't forget to wear safety equipment, to prevent hurting yourself!");
            }
        }
    }
}
i don't know if its what you are asking for
Reply


Messages In This Thread
Need some help on loop - by Zigonja - 04.06.2013, 13:48
Re: Need some help on loop - by NvidiaForTheWin - 04.06.2013, 13:52
Re: Need some help on loop - by Zigonja - 04.06.2013, 14:09
Re: Need some help on loop - by [DOG]irinel1996 - 04.06.2013, 14:31
Re: Need some help on loop - by NvidiaForTheWin - 04.06.2013, 17:11

Forum Jump:


Users browsing this thread: 1 Guest(s)