01.04.2009, 13:39
I was under the impression going through a door triggers this event. But that everywhere outside this room their helath and armor is normal? Incorrect? You could freeze their Health and Armor so that it appears to not change:
And change it to a 100 millisecond timer. You can't tell the script to actually freeze a player's health and armor.Any real solution would be an illusion to the player. But I'm no longer familiar with what you want, since I think you are describing it ambiguously and you haven't provided any sample code.
Код:
public OneSecondTimer() { for(new i = 0; i < MAX_PLAYERS; i++;) { if(PlayerIsInvincible[i] == 1) { SetPlayerHealth(playerid,HealthUponEntry[playerid]); SetPlayerArmour(playerid,ArmourUponEntry[playerid]); } } return 0; }