[PLEASE NEED HELP] What's wrong with this?
#4

Sure :
pawn Код:
forward infectiontimer();
public infectiontimer()
{
    for(new i; i<MAX_PLAYERS; i++)
    {
    if(IsInfected[i] == 1)
    {
        if(!IsPlayerConnected(i)) continue;
        InfectionTime[i] ++;
        if(InfectionTime[i] == 2)
        {
            new Float:Health;
            GetPlayerHealth(i,Health);
            SetPlayerHealth(i, Health-6);
            SendClientMessage(i,COLOR_WHITE,"You Are infected ! go be cured by a Medic! or kill a Zombie!");
            InfectionTime[i] = 0;
        }
    }
    }

    return 1;
}
Reply


Messages In This Thread
[PLEASE NEED HELP] What's wrong with this? - by Saw® - 21.06.2012, 15:50
Re: [PLEASE NEED HELP] What's wrong with this? - by Saw® - 21.06.2012, 16:58
Re: [PLEASE NEED HELP] What's wrong with this? - by judothijs - 21.06.2012, 17:50
Re: [PLEASE NEED HELP] What's wrong with this? - by Saw® - 21.06.2012, 18:59
Re: [PLEASE NEED HELP] What's wrong with this? - by judothijs - 21.06.2012, 19:34
Re: [PLEASE NEED HELP] What's wrong with this? - by Saw® - 21.06.2012, 19:45

Forum Jump:


Users browsing this thread: 2 Guest(s)