21.06.2012, 18:59
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;
}