4 Questions
#8

Quote:

This doesn't work cause the players health stays 100000 during the whole game, not just after he/ she spawns.

This Should be exactly what you need
Quote:

public invincible()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) == 1)
{
SetPlayerHealth(i,100000);
SendClientMessage(i, COLOR, "HEREYOURTEXT");
SetTimer("Notinvinc", 6000, 0);
}
}
return 1;
}

Quote:

public Notinvinc ()
{
for(new i=0; i < MAX_PLAYERS; i++)
{
SetPlayerHealth(i, 100);
SendClientMessage(i, COLOR, "HEREYOURTEXT");
}
}

REMEMBER TO CHANGE COLOR TO A GOOD COLOR AND CHANGE HEREYOURTEXT TO YOUR TEXT!!!!
Reply


Messages In This Thread
4 Questions - by DeltaAirlines12 - 23.12.2009, 20:47
Re: Questions - by Niixie - 23.12.2009, 21:00
Re: 4 Questions - by DeltaAirlines12 - 23.12.2009, 21:46
Re: 4 Questions - by Niixie - 23.12.2009, 22:10
Re: 4 Questions - by DeltaAirlines12 - 23.12.2009, 22:12
Re: 4 Questions - by DeltaAirlines12 - 24.12.2009, 16:39
Re: 4 Questions - by WThieves - 24.12.2009, 16:47
Re: 4 Questions - by WThieves - 24.12.2009, 17:00
Re: 4 Questions - by mansonh - 24.12.2009, 20:42

Forum Jump:


Users browsing this thread: 1 Guest(s)